حل مشكلة عند رفع ملف على الورد بريس




Are you sure you want to do this? Please try again.

If you are installing your theme from the WordPress theme installer, but get a message that says Are you sure you want to do this?, most likely your web server is configured with low PHP settings that only allow a certain size ZIP file to be uploaded via WP admin.

You can get your web host to increase your PHP limits so a larger zip file is allowed to be uploaded. They will know which limits to set if you explain the issue.

You can upload your theme via FTP. View our video tutorial in the Video section of the forum to learn how to install your theme via FTP. It is very easy and efficient.

Most hosting companies configure their servers to only have the maximum file upload size limit at 8-10 MB, some are less. If theme ZIP is currently about 34 MB in size which is due to the included plugins and all the demo content. So if you get this error, your web server is rejecting the upload due to the overall size of the zip file.

WordPress is unfortunately giving you a rather ambiguous message in response. This is not a theme issue or bug.
Causes

There are two likely causes that will prevent the importation of the theme demo sample data:

  • 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.

Solution

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. You should contact your web host and ask them to increase those limits to a minimum as follows:

1. Upgrade latest version of WordPress, PHP version 5.6 or higher..
2. Increase memory limits. You can follow guideline to do this by yourself or contact your server provider to ask for the help to increase following PHP limits:

max_execution_time 3000
memory_limit 256M
post_max_size 100M
upload_max_filesize 81M