ProcessMigrator icon indicating copy to clipboard operation
ProcessMigrator copied to clipboard

Issue importing a large site, can not define the issue myself.

Open dewwwald opened this issue 9 years ago • 3 comments

I think the issue might have to do with images being loaded before a page is save, however this is just a guess based on function names. Here is some more information

Reason for suspission

In the linked topic soma talks about saving a page before you can load images as the files where the images will be saved to wont exist.

Running the importer a second time by reloading the error page successfully loads the page with no errors.

https://processwire.com/talk/topic/352-creating-pages-via-api/

Stack Trace

(ProcessInstall replacing directory of the project)

( ! ) Notice: Trying to get property of non-object in ProcessInstall/site/modules/ProcessMigrator/ProcessMigrator.module on line 1568 Call Stack

Time Memory Function Location

1 0.0006 292368 {main}( ) .../index.php:0 2 0.0823 10787240 execute ( ) .../index.php:214 3 0.0823 10787592 Wire->__call( ) .../index.php:214 4 0.0823 10787592 Wire->runHooks( ) .../Wire.php:344 5 0.0823 10790248 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 6 0.0823 10790584 ProcessPageView->___execute( ) .../Wire.php:389 7 0.0979 11858528 render ( ) .../ProcessPageView.module:171 8 0.0979 11858712 Wire->__call( ) .../ProcessPageView.module:171 9 0.0979 11858712 Wire->runHooks( ) .../Wire.php:344 10 0.0980 11863696 renderPage ( ) .../Wire.php:411 11 0.0980 11864048 Wire->__call( ) .../Wire.php:411 12 0.0980 11864048 Wire->runHooks( ) .../Wire.php:344 13 0.0980 11866176 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 14 0.0980 11866512 PageRender->___renderPage( ) .../Wire.php:389 15 0.0986 11933672 render ( ) .../PageRender.module:356 16 0.0986 11933856 Wire->__call( ) .../PageRender.module:356 17 0.0986 11933856 Wire->runHooks( ) .../Wire.php:344 18 0.0986 11935984 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 19 0.0986 11936152 TemplateFile->___render( ) .../Wire.php:389 20 0.0987 11962144 require( 'ProcessInstall/site/templates/admin.php' ) .../TemplateFile.php:169 21 0.0987 11963816 require( 'ProcessInstall/wire/modules/AdminTheme/AdminThemeDefault/controller.php' ) .../admin.php:13 22 0.0990 11998728 require( 'ProcessInstall/wire/core/admin.php' ) .../controller.php:13 23 0.1018 12337720 execute ( ) .../admin.php:85 24 0.1018 12337904 Wire->__call( ) .../admin.php:85 25 0.1018 12337904 Wire->runHooks( ) .../Wire.php:344 26 0.1019 12340032 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 27 0.1019 12340200 ProcessController->___execute( ) .../Wire.php:389 28 0.1061 13118384 executeImport ( ) .../ProcessController.php:204 29 0.1061 13118568 Wire->__call( ) .../ProcessController.php:204 30 0.1061 13118568 Wire->runHooks( ) .../Wire.php:344 31 0.1061 13120704 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 32 0.1061 13120872 ProcessMigrator->___executeImport( ) .../Wire.php:389 33 1.5922 15090216 ProcessMigrator->processImportForm2( ) .../ProcessMigrator.module:139

( ! ) Fatal error: Call to a member function get() on a non-object in ProcessInstall/site/modules/ProcessMigrator/ProcessMigrator.module on line 2583 Call Stack

Time Memory Function Location

1 0.0006 292368 {main}( ) .../index.php:0 2 0.0823 10787240 execute ( ) .../index.php:214 3 0.0823 10787592 Wire->__call( ) .../index.php:214 4 0.0823 10787592 Wire->runHooks( ) .../Wire.php:344 5 0.0823 10790248 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 6 0.0823 10790584 ProcessPageView->___execute( ) .../Wire.php:389 7 0.0979 11858528 render ( ) .../ProcessPageView.module:171 8 0.0979 11858712 Wire->__call( ) .../ProcessPageView.module:171 9 0.0979 11858712 Wire->runHooks( ) .../Wire.php:344 10 0.0980 11863696 renderPage ( ) .../Wire.php:411 11 0.0980 11864048 Wire->__call( ) .../Wire.php:411 12 0.0980 11864048 Wire->runHooks( ) .../Wire.php:344 13 0.0980 11866176 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 14 0.0980 11866512 PageRender->___renderPage( ) .../Wire.php:389 15 0.0986 11933672 render ( ) .../PageRender.module:356 16 0.0986 11933856 Wire->__call( ) .../PageRender.module:356 17 0.0986 11933856 Wire->runHooks( ) .../Wire.php:344 18 0.0986 11935984 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 19 0.0986 11936152 TemplateFile->___render( ) .../Wire.php:389 20 0.0987 11962144 require( 'ProcessInstall/site/templates/admin.php' ) .../TemplateFile.php:169 21 0.0987 11963816 require( 'ProcessInstall/wire/modules/AdminTheme/AdminThemeDefault/controller.php' ) .../admin.php:13 22 0.0990 11998728 require( 'ProcessInstall/wire/core/admin.php' ) .../controller.php:13 23 0.1018 12337720 execute ( ) .../admin.php:85 24 0.1018 12337904 Wire->__call( ) .../admin.php:85 25 0.1018 12337904 Wire->runHooks( ) .../Wire.php:344 26 0.1019 12340032 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 27 0.1019 12340200 ProcessController->___execute( ) .../Wire.php:389 28 0.1061 13118384 executeImport ( ) .../ProcessController.php:204 29 0.1061 13118568 Wire->__call( ) .../ProcessController.php:204 30 0.1061 13118568 Wire->runHooks( ) .../Wire.php:344 31 0.1061 13120704 call_user_func_array:{ProcessInstall/wire/core/Wire.php:389} ( ) .../Wire.php:389 32 0.1061 13120872 ProcessMigrator->___executeImport( ) .../Wire.php:389 33 1.5922 15090216 ProcessMigrator->processImportForm2( ) .../ProcessMigrator.module:139 34 11.6868 54486296 ProcessMigrator->idImagePath( ) .../ProcessMigrator.module:1587

Error Message at the bottom of the stack trace:

Error: Call to a member function get() on a non-object (line 2583 of ProcessInstall/site/modules/ProcessMigrator/ProcessMigrator.module) This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.

dewwwald avatar Apr 24 '15 14:04 dewwwald

Thanks for the detailed report. I don't think I have ever seen an issue in Migrator where images have caused an issue with pages not created yet. It is supposed to deal with all that. Although it is interesting that it worked when you imported again - are all the pages and all the content now imported?

Am I correct in assuming you are importing a Wordpress site, rather than content from another PW site?

Any chance you could PM me the file you are trying to import so I can test?

adrianbj avatar Apr 24 '15 18:04 adrianbj

Hi. @adrianbj. Thanks for the swift reply.

Sorry I havent gotten back to you yet. I was away from my computer and internet for the weekend. I am using the wordpress plugin by nico to import a wordpress site. Might this be an issue on the plugin instead of the migrator?

About the file, I am sorry, I don't think I can do that. I might be able to recreate the data. Or at least the issue with Lorem data and Lorem images.

This will take me a while. Give me a day or 2.

dewwwald avatar Apr 28 '15 06:04 dewwwald

Before you go to any trouble recreating data, can you please try upping your php memory limit and maybe even the max_execution_time - this is actually set at the top of the migrator file as well. I know that Joss had some similar issues to you, but on my setup it worked fine.

Also, what version of PW are you running? That "Trying to get property of non-object" error might be related to this: https://github.com/ryancramerdesign/ProcessWire/issues/813 which Ryan fixed in PW dev.

adrianbj avatar Apr 28 '15 15:04 adrianbj