Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The link you followed has expired.Please try again.in wordpress

i am trying to install a new theme in WordPress.I get a message that says "The link you followed has expired. Please try again."No matter what theme I try to install.

i add the following line to the code according to some solution on the internet but still, I get the same error"The link you followed has expired. Please try again"

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

You can also check http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/

thanks

like image 495
Mohamed.cmc Avatar asked Jul 30 '18 17:07

Mohamed.cmc


2 Answers

i solve this error by change a PHP.ini file. to do so go to wamp>PHP>php.ini file change the configuration to :

post_max_size = 750M 
upload_max_filesize = 750M 
max_execution_time = 5000
max_input_time = 5000  
memory_limit = 1000M

- save the changes.

click on wamp icon and restart all the services

like image 121
Mohamed.cmc Avatar answered Sep 30 '22 00:09

Mohamed.cmc


You just need to update the .htaccess and the wp-config.php files

.htaccess

php_value memory_limit 256
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000

above the:

# END WordPress

wp-config.php

@ini_set('upload_max_size' , '100M' );
@ini_set('memory_limit' , '256' );
@ini_set('upload_max_filesize' , '100M' );
@ini_set('post_max_size' , '100M' );
@ini_set('max_execution_time' , '300' );
@ini_set('max_input_time' , '1000' );

above the:

/* That's all, stop editing! Happy blogging. */
like image 45
Foudhil Gharout Avatar answered Sep 30 '22 01:09

Foudhil Gharout