If the import stalls and fails to respond after a few minutes, or it fails with a simple error message like Import failed.
You are suffering from PHP configuration limits that are set too low to complete the process.

Likely Causes For Demo Import Failing

  • Your PHP memory, file upload size, and/or execution limits are set too low
  • Your web host uses process watching software that prevents bulk processing on their web servers.
  • You have wp_debug = true, please change that to wp_debug = false for the import in your WP config file
  • The import uses a JSON file which is loaded from the frontend of the website, this will not work when the domain is not connected to the WordPress installation.

Recommended PHP Configuration Limits

You should contact your web host and ask them to increase those limits to a minimum as follows:

  • max_execution_time  3600
  • max_input_time 3600
  • memory_limit 256M
  • post_max_size 64M
  • upload_max_filesize 64M
  • max_input_vars 3000 


How To Verify Your Current PHP Limits

The uploaded file exceeds the upload_max_filesize directive in php ini error Meals that something wrong with a php.ini file is going. First, let’s find out what this file is for.

The php.ini file is the main PHP configuration file. WordPress uses the PHP programming language, and this file controls everything. Some hosting providers set up its configuration to the maximum parameters and do not allow to change it globally. However, in most cases it is possible.

If you do not know where the php.ini file is located on the server, do the following steps:

Start a text editor and type the following line of code in it:

<?php phpinfo(); ?>

Save the created file and name it info.php

Via the FTP manager, connect to the hosting server where your site is located and copy the info.php file to the website root directory.

Now, in the address bar of your browser type http://example.com/info.php, where instead of example.com type in your website address.


Among other settings, check the value of the following three parameters:


memory_limit — the maximum memory size allowed by the hoster to run scripts on the website;

post_max_size — allowed size of a one-time file import request;

upload_max_filesize — the maximum amount of data that can be uploaded to the site per time.

To increase the allowed maximum file size, you need to adjust the values specified in upload_max_filesize and post_max_size parameters. If you use the virtual hosting, most likely you will not have full access to the global server settings. As a rule, full access to this file is available on the local server or on a VPS hosting.

If you have access, open the php.ini file in edit mode and set the new upload_max_filesize and post_max_size values. The upload_max_filesize value should be less than post_max_size, and the post_max_size value should not be higher than the memory_limit. Do not forget to back up the site and save a backup copy of the php.ini file before you make any changes.


It must look like the following:

If you do not have access to the php.ini file, adjust the necessary values in the user.ini file. The path to it is indicated in the “Additional .ini files parsed” section when opening the info.php file. This method works for PHP version 5 or higher.

  1. Run a text or code editor and name the file user.ini.
  2. Add the necessary parameters to memory_limit, post_max_size and upload_max_filesize.
  3. Using the file manager, copy the user.ini file to the root directory of the site, upload the page and try to upload the file again.

Contact the hosting support

In many cases, it will be much easier to contact the technical support of your hosting provider and ask them to solve the issue. Remember that they may possibly not be able to change the parameters if your plan does not allow to do that. In that case, you may require to change it.


Please note though that many hosts will try to keep the PHP limits low without reason. However you are paying for it, and therefore should be getting your money worth.

After doing this you can reset your database using the WordPress Database Reset Plugin and try to re-import the demo data 

WARNING: Reset the database will make you lost all the data of your current WordpPress 


You can create a file name php.ini insert above values in that file and upload it on your WP root folder and WP-Admin folder.


If demo data importer fails, upload attached xml file via WP ADMIN / TOOLS / IMPORT / WORDPRESS.

Then go to wp admin / ultimate addons / icon manager - > upload icon pack zips.