Why I can’t finish the Demo Data import?

If you are on this page, it already means that you’ve encountered some issues with the Demo Data Import.

1. Increase PHP Limits: Fixing Timeout Issues

The most common issue is a timeout, caused by low values set for the upload_max_filesize and post_max_size directives.

Find this line in the php.ini file: upload_max_filesize = 2M (or another value) and replace it with a higher value, such as upload_max_filesize = 64M. You may also want to increase your max post size by finding the post_max_size directive and increasing it as well.

There is even a plugin that you can use in order to fix this.

In case you don’t have access to the php.ini file (which in most cases, it happens), you may want to ask your hosting in order to get this job done.

2. Resolve Compatibility Issues: Downgrade to PHP 7.4

If increasing the values in the php.ini file does not resolve the issue, the next step is to try downgrading your PHP version. PHP 8.0 and newer versions sometimes cause compatibility issues with certain functions.

You can usually request your hosting provider to temporarily downgrade your PHP version to 7.4 according to the Theme Requirements.

3. Adjust Function Visibility: Fixing PHP 8 Compatibility

Another solution involves modifying some theme files to comply with PHP 8 requirements. This is more technical, but it can be necessary for resolving the issue.

Follow these steps:

  1. Open the following files in your Pixelgrade Care plugin directory:
    • /plugins/pixelgrade-care/includes/modules/custom-post-types/class-pixelgrade_care-gallery.php
    • /plugins/pixelgrade-care/includes/modules/custom-post-types/class-pixelgrade_care-portfolio.php
  2. In each file, locate the function definition for register_post_types(). It will look something like this:
    • protected function register_post_types() { // function code }
  3. Change the protected keyword to public so that it looks like this:
    • public function register_post_types() { // function code }
  4. Save the changes and try running the Demo Data Import again.

Still struggling? We can help you setup WordPress and install your new theme along with demo data. Check out our theme installation service.

Updated on May 15, 2024

Can't find what you’re looking for? Ask a human.

We're a small team of real people providing real help. Send us an email at [email protected] and we will give you a helping hand.