Products
GG网络技术分享 2025-03-18 16:12 1
I have got my customised theme and upload to Wordress site. When it comes to upload the zip file at Appearance > Theme , it says The link you followed has expired.
Could you please tell what else I should after setting these parameters at wp-config.php ?
..
*/define(\'WP_DEBUG\', true);
define(\'WP_DEBUG_LOG\', true );
define(\'WP_ALLOW_REPAIR\', true);
define(\'WP_MEMORY_LIMIT\', \'259M\');
set_time_limit(400);
My zip upload size is 142 MB
You need to increase upload_max_filesize
. You can do this using any of the following methods:
1. htaccess file:
php_value upload_max_filesize 150Mphp_value post_max_size 150M
2. php.ini file:
upload_max_filesize = 150Mpost_max_size = 150M
3. Theme\'s function.php file or wp-config.php:
@ini_set( \'upload_max_size\' , \'150M\' );@ini_set( \'post_max_size\', \'150M\');
###
You could have tried it first in local wordpress installation. Then you may continue with uploading the entire content to server using FTP clients.
I can suggest another option to use file manager to upload the theme into wp-content/themes folder.
If they doesn\'t work, you can change the values in CPanel for max_file_upload and use a suitable value.
Demand feedback