Skip to main content

WP Error Fix - The Link You Followed Has Expired

 WP Error Fix - The Link You Followed Has Expired

 


 



This WordPress error is common and mostly it comes when we try to upload a theme or plugins. WordPress gives this error because by default our server have fixed limit for max file upload , post size etc and because of this reason , when we try to upload a large size file PHP generates error like this.

How to solve this error WP Error Fix - The Link You Followed Has Expired


To solve this issue, we need to increase php size limit and we have several ways to do this

1. fix 'The Link You Followed Has Expired' wp error using .htaccess file


This is the best and easy solution to fix this error and increase memory limit, post size, upload size etc.

First go to your root directory of your project and check if you have .htaccess file exist or not, if its exist then edit it and add below code at the end of the file or if you do not have a .htaccess file in root directory then create a new one and edit and paste below code in it.


php_value post_max_size 128M
php_value upload_max_filesize 128M
php_value max_input_time 300
php_value max_execution_time 300

Now save the file and try to upload theme now. Great now it will work :)


2. Solve 'The Link You Followed Has Expired' wp error using functions.php file


We can solve this error by theme's function.php file. Unzip your theme file and edit functions.php and add below code in it


@ini_set( 'post_max_size', '120M');
@ini_set( 'upload_max_size' , '120M' );
@ini_set( 'max_execution_time', '300' );

Now save , zip it again and upload it on your wordpress admin panel. Now it will upload and install.

3. Increase memory limit, post size through php.ini


If you have server access and can edit php.ini file then open it and search for below values one by one and increase values and save php.ini.


upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300


If you have shared hosting then you do not have access of php.ini so check in cpanel , if your server provider company providing you option to edit php.ini file or if not then create a php.ini in your root directory and your server will read it automatically.


Thanks for reading.

Related Links

WP Error Fix - The Link You Followed Has Expired
How to solve The Link You Followed Has Expired error in wordpress
Wordpress increase memory limit
WP How to solve theme upload error









Comments

Post a Comment

Popular posts from this blog

Run and compile sass scss file to css using node

  Today we learn how to use scss and generate css using node  or Run and compile sass scss file to css using node   So please follow simple  steps :-   Today we will create a project that can read scss file and generates css with it  Note: Make sure you have installed node in your system. If you want to help to install node js based on your system then check our other tutorial or check node js official website. Now create a blank folder and open  terminal(linux) or cmd(windows) and navigate to your current project folder by using cd command Now run below command npm init after enter it will ask you some package info that you can fill according to you or just keep enter until it finished. The above command will generate package.json file Now  we will install npm module that will convert our scss to css Run below command: npm install node-sass So we have installed node-sass package . Now open package.json file in your editor and add below code into it into

How to retrieve Facebook Likes, share , comment Counts

function facebook_count($url){     // Query in FQL     $fql  = "SELECT share_count, like_count, comment_count ";     $fql .= " FROM link_stat WHERE url = '$url'";     $fqlURL = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode($fql);     // Facebook Response is in JSON     $response = file_get_contents($fqlURL);     return json_decode($response); } $fb = facebook_count('https://www.facebook.com/BahutHoGyiPadhai'); // facebook share count echo $fb[0]->share_count;  echo "like"; // facebook like count echo $fb[0]->like_count ; echo "comment"; // facebook comment count echo $fb[0]->comment_count;  ?>

jQuery Datatable add date range filter

jQuery Datatable add date range filter Datatable is most useful jQuery plugin that helps to make our html tables more powerful and give powers to user to filter , search, sort, pagination etc, But Data table provides a common filter only and yes we can customize and add filter for each column, but still sometimes we need an advance filter like show results only between a date range, So today we will learn how to create a minimum and maximum date range fields and show date picker on it, and user can fill dates by selecting dates and data table will auto filter records based on it. Keep follow below steps :- I am using Bootstrap if you want to use any other framework then you can use. Create a new index.php file  and paste below code in it, i have used all required CDN like bootstrap, datatable, datepicker etc. <!DOCTYPE html> <html> <head>     <title>Datatable Date Range Filter Example</title>     <link rel="stylesheet" href="https://maxcd