If you fail to import demo data and get "internal server error (500)", this usually indicates a poor server configuration, usually on a cheap shared hosting (low values for PHP settings, missing PHP modules, and so on). You can follow one of the solutions below to get rid of the issue.


Solution 1

Please make sure your server settings not lower than:

  • upload_max_filesize (256M)
  • max_input_time (300)
  • memory_limit (256M)
  • max_execution_time (300)
  • post_max_size (512M)

You can ask your hosting to increase these settings for you. Then you try to reimport again.




Solution 2


Change the default time of one AJAX call

Plugin default is 25 seconds. Add this code at the end of your theme functions.php file:

function ocdi_change_time_of_single_ajax_call() {
return 10;
}
add_action( 'pt-ocdi/time_for_one_ajax_call', 'ocdi_change_time_of_single_ajax_call' );


This will "slice" the requests to smaller chunks and it might bypass the low server settings (timeouts and memory per request).

Disable the generation of smaller images during the import


While importing, smaller versions of images are being generated, which takes up a lot of server memory, so you can disable that in the plugin with a line of code. Add this code at the end of your theme functions.php file:


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


If the import is complete and you used the above solution, please install this plugin: https://wordpress.org/plugins/regenerate-thumbnails/ and run it in Tools -> Regen. Thumbnails. This will then create the smaller versions of images, that we skipped in the import.

After the import, you should remove the added code from the functions.php file.


If none of the solutiosn helped, please open ticket with the credentials(ftp and admin panel access details) to your website, and one of our support team will help you.