Unable to activate plugins - link has expired
Hi there
no sure if this is new or was there for sometime but I have installed a new plugin on a Nami WordPress site, which already had various plugins installed, activated and updated over the time, and it always failed with the error "link has expired please try again" off course googling is not helpful
PS tried also on a different instance, hosted on a different server and same error thanks
Anything in your php_errors.log which might point to something more specific?
Based on the error you are seeing, I believe this to be a NONCE issue but without some error logs or other data we have no way to track it down. I have yet to see this behavior on any of the numerous sites I'm involved with.
thanks Patrick Unfortunately I have nothing related to the plugin activation (or deactivation as this also occurs when trying to deactivate) the php_error log
Hey... I had that problem this morning, it appears that the upload limit was exceeded. I placed a .user.ini file in the root folder of the site. The contents are as follows:
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
The file is at: https://raw.githubusercontent.com/PHuhn/ProjectNami-Windows-Install-Utils/master/.user.ini Good luck, hope it works. Phil
Thanks Phuhn Unfortunately this did not change anything; still having the 'link has expired' error
The problem I was having, I could not upload a large theme I was testing. I googled the error message and found the solution that worked for me, but I had to translate it Project Nami and IIS. The limit is displayed below an attempt to upload media. I also tried a web.config solution, but that did not pan out. Phil
I know but never had any issue with file upload This only applies to activating/deactivating plugins - or at least so far as I'm not testing everything When I searched before opening this one, all i found was related to the file size upload limit but this definitively not applies here
Hi there well I think I found something and this seems confirming this has something to do with the "activate" link shown below the plugin If I check the box on the left side and then use the bulk drop down menu and select Activate, the plugin is activated successfully with no "the link has expired" error
Yes, that's why I mentioned it was related to a nonce issue. You should be able to see a nonce parameter in the URL of those links.
well and how do we get ride of this error then?
Can you please post the URL?
not specific to one plugin; but here is 2 for activation and deactivation
It almost has to be a failure to write the nonce into the DB, or that something is wrong when comparing the nonce when resubmitted. I have no idea why either would occur, and therefore no advice to offer.
Nothing in the PHP error log? Anything off about the time and/or time zone on the server?
nope no error what so ever logged anywhere and no time or timezone issue on the server - tested on 2 different Nami WP instances running on 2 different Win 2019 servers