Server Requirements
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.
Most hosting companies configure their servers to only have the maximum file upload size limit at 8-10 MB, some are less. Our theme ZIP is currently about 15 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.
If you don’t have access to the php.ini file, you can add the following values in your .htaccess
file:
Directive for wp-config.php
Be careful using these settings, some hosting companies don’t allow users to change php settings, if you experience any problem after making these changes, please revert these in your .htaccess file, using your FTP client.
Also, there is another way to prevent this error, you can upload your theme via FTP.
Information
We recommend to use PHP v5.6.x or later to avoid incompatibility issues. Also if you're using the latest PHP version such as v7.2.x, try switching to earlier version such as v7.1.x.
In the meantime, you can also add the following code into your wp-config.php file by replacing the line you already have define('WP_DEBUG', false);
.
This will create an error log file under your wp-content directory, with the name of debug.log
and also it will not display any errors for your visitors.
Last updated