• Resolved wpuser10

    (@wpuser10)


    Hi,

    I was trying to import a bit larger data (about 3MB) and experienced errors due to used up max_execution_time, which was set to 300 (without possibility to change to larger on hosting).

    In your changelog there is info:

    The setting for generation of multiple image sizes in the content import is again enabled by default,

    Could you please write how to disable it? Is there possibility to make it enabled/disable via option (like in default Importer)? (perhaps in my case it could help to speed up import and avoid errors). Later I could use this plugin https://www.ads-software.com/plugins/regenerate-thumbnails/ to regenerate images.

    By the way could you suggest the recommended file size of dummy.xml or any other solution to use, so that plugin could run correctly on most hostings/servers (to avoid problem with max_execution_time, 500 errors, etc.)?

    Thanks!

    https://www.ads-software.com/plugins/one-click-demo-import/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    which version of the plugin are you using?

    The latest version of this plugin (v 1.1.0) imports the data with multiple AJAX calls, so you should not get the server timeout errors… Please try the import with the latest version of this plugin and let me know if you still get the 500 error…

    If you still want to disable generation of multiple image sizes during the import process, please use this filter:

    add_filter( 'pt-ocdi/regenerate_thumbnails_in_content_import', '__return_false' );

    That will disable the regeneration of other smaller images and the import will finish much faster. However please try the latest version of this plugin on a fresh WP install, because the server timeout issues should not occur anymore and this test would really help me out…

    Take care!

    Thread Starter wpuser10

    (@wpuser10)

    Thank you for quick response. I was actually using the latest version – that’s the reason I asked how to disable the option. I remember that at the end of log I got info about (max_execution_time = 300) and after import actions were not processed.

    Was this related to max_execution_time or some other things?

    Thanks!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    That’s just the log output of the “max_execution_time” PHP setting, for debugging reasons, so that’s not an error…

    When you import the demo with this plugin, do you get any errors during the import or at the end of the import? Or does the import finish with “That’s it, all done! The demo import has finished …” (without errors).

    Could you maybe send me the import file, so I can test it out?

    Take care!

    Thread Starter wpuser10

    (@wpuser10)

    Hi,

    Yes, there was error at the end (after about 5 minutes of importing) and link to error log.

    The demo import has finished, but there were some import errors.
    More details about the errors can be found in this log file

    In the log file there were lot of errors related to images, but URLs for images in dummy.xml were not correct, so the reason with errors for images is not related to plugin.

    There were also lot of warnings like this:

    [WARNING] Could not find the author for “bbPress Forum Closed Topic” (post #5230)

    I was using custom xml file with different data included: https://bbpress.trac.www.ads-software.com/attachment/ticket/2516/bbpress-unit-test-data.xml and default dummy data from WooCommerce https://github.com/woothemes/woocommerce/blob/master/dummy-data/dummy-data.xml mixed with regular posts and pages.

    I wonder if there are lot of errors with images then can it slow down importing a lot and be the reason of problem with full import and skipping after import action?

    I will correct the URLs for images and try to replicate the problem on different hosts and if it will be the same without success then I could send you the full export for testing if necessary.

    Thanks!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    these warnings can be ignored:

    [WARNING] Could not find the author for “bbPress Forum Closed Topic” (post #5230)

    I would disable them, but they are outputted by the content importer we are using and there is no easy way to disable them. These warnings are because we don’t import authors (no need for that) and then the author can not be found… Anyway, just ignore these warnings.

    If there is an error in the content import, the widgets and after import action will not execute and the errors should also be outputted above the finished message and in the error log file.

    If the images are not correct/missing (404 URL errors), then the image import would be skipped and it should not delay the import.

    If you could, please send me the exact import file that you were using, so I can test it out. Also you can send me the log files from your imports located in (wp-content/uploads/2016/05/)

    Take care!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    I hope you already found a solution to your problem. Since it has been more than 4 weeks, I will close this ticket for now, but, if you have any additional issues, just respond to this ticket, or open a new one.

    Take care!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable generation of multiple image sizes?’ is closed to new replies.