Demo Content Fails: Seems Like An Error Has Occurred or PHP upload limit
Why am I getting import/upload error when trying to upload demo files or theme on my Wordpress or site?
Error such as:
- Demo Content Fails: Seems Like An Error Has Occurred
Exceeds the maximum upload size for this site.
The uploaded file exceeds the upload_max_filesize directive in php.ini
The likely causes for import/upload errors:
- PHP memory, max file upload size has limitation by default from the hosting provider
- Need to update the configuration file to increase limit for your hosting account
How do you fix the issue? recommend steps
If you get a popup error about demo failed to import/upload or theme upload error, follow the steps below:
- Login to your cPanel account and under "FILES" click on "File Manager", click on the "public_html" folder in your root or top directory
- To see the hidden files, from the top right side, click on "Settings", then "Preferences", select "Show Hidden Files (dotfiles)
- Click save and you should see the hidden files, including the one we about to edit which is ".htaccess"
- Note: Backup your ".htaccess" file before you edit the file, this is very important should you need to rollback your changes
- From the lists of files in "public_html" folder click on ".htaccess" and click "Edit" from the top menu
- Once you click the Edit from the top menu, you will see a message, just click on "Edit" button below and that should allow you to edit the hidden file .htaccess
In the edit window, add the following lines to the bottom line:
Open it and added the following into a newline at the end of the file.
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000
Save your changes and overwrite the .htaccess file on your server.
Go back to your website and check if you can import/upload. If not, you should contact AkolagTech's tech support team assistance.