WordPress Themes
Documentation
Search for articles about the Audio Player and WordPress Theme

When installing the Sonaar theme it says “Are you sure you want to do this ? / the link you followed has expired”

If you are installing your theme from the WordPress theme dashboard, but get a message that says “Are you sure you want to do this OR the link you followed has expired ?”, most likely your web server is configured with PHP settings that are too low to allow the theme ZIP file to upload. Specifically, PHP is configured to a maximum file upload size limit at 8 megabytes or less. The theme ZIP is currently about 34 MB. Thus, the web server is rejecting the upload. WordPress is giving you a rather ambiguous message in response.

This is not a theme fault or bug.

SOLUTION 1 – Use a plugin to raise your Max Upload File Size limit. #

The first thing you can try to allow WordPress to accept big files size upload, is to use the plugin called Increase Maximum Upload File Size Plugin.

Step 1 – Go to WP-Admin > Plugins > Add New

Step 2 – Search for Increase Maximum Upload File Size.

Step 3 – Install it and activate it.

Step 4 – Go to WP-Admin > Upload Filesize. Enter 64 for the Max Upload Filesize limit and save changes. See screenshot https://d.pr/i/4nmHkc

Step 5 – Check the setting has worked by going to WP-Admin > Media > Add New. You will see the maximum upload file size limit set to WordPress: https://d.pr/i/AtWi1f

SOLUTION 2 – Increase PHP limits #

We recommend contact your webhosting for this solution. Your hosting provider deals with this kind of issue everyday! It will take them 1 minute to do it for you. Since every server is configured differently, there are 3 ways to do this. You can try to do it yourself but if you don’t have the skill, just ask your web host and they usually will do it for you.

To raise the PHP limits, try one of the solutions below:

Step 1 –  Add this in the .htaccess file of your server:

php_value memory_limit 128M
php_value post_max_size 128M
php_value upload_max_filesize 128M
php_value max_execution_time 1800

Step 2 –  Add this to wp-config.php:

define(‘WP_MEMORY_LIMIT’, ’64M’);

Step 3 –  Create a text file and name it php.ini then upload php.ini file in your root folder by FTP. In the php.ini file, add:

upload_max_filesize = 64M
post_max_size = 64M

— 

If it still doesn’t work, you can ask your web host to raise the upload and memory limit . Just tell them you are trying to upload a WordPress theme file that is around 35MB.

SOLUTION 3 – Install the theme manually with FTP #

You can upload your theme via an FTP client. Please read this article for more info: http://codex.wordpress.org/Using_Themes#Adding_New_Themes_Manually_.28FTP.29

Recommanded PHP Settings #

The Recommended PHP configuration limits are as follows:

max_execution_time 600

memory_limit 256M

post_max_size 64M

upload_max_filesize 64M

ADDITIONAL INFO:

Sometimes, you might be trying to upload the whole theme package zip file (which contain the PSD, Licence, Theme, etc..), instead of only the theme zip file.

If that’s the case, make sure you unzip the theme package zip file on your computer, then look into the /Theme/ folder. Make sure you are uploading sonaar.zip that is located in that theme folder.

Updated on February 24, 2022
Was this article helpful?
Still Stuck?
How can we help?