Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to activate plugins - link has expired #335

Open
benoithamet opened this Issue Mar 17, 2019 · 14 comments

Comments

Projects
None yet
3 participants
@benoithamet
Copy link

benoithamet commented Mar 17, 2019

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

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Mar 17, 2019

Anything in your php_errors.log which might point to something more specific?

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Mar 17, 2019

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.

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 17, 2019

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

@PHuhn

This comment has been minimized.

Copy link

PHuhn commented Mar 22, 2019

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

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 25, 2019

Thanks Phuhn
Unfortunately this did not change anything; still having the 'link has expired' error

@PHuhn

This comment has been minimized.

Copy link

PHuhn commented Mar 26, 2019

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

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 27, 2019

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

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 28, 2019

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

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Mar 28, 2019

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.

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 28, 2019

well and how do we get ride of this error then?

@PHuhn

This comment has been minimized.

Copy link

PHuhn commented Mar 29, 2019

Can you please post the URL?

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 29, 2019

not specific to one plugin; but here is 2 for activation and deactivation
/wp-admin/plugins.php?action=activate&plugin=amp%2Famp.php&plugin_status=all&paged=1&s&_wpnonce=f4e2da04de
/wp-admin/plugins.php?action=deactivate&plugin=image-watermark%2Fimage-watermark.php&plugin_status=all&paged=1&s&_wpnonce=4cdf66825e

@patrickebates

This comment has been minimized.

Copy link
Member

patrickebates commented Mar 30, 2019

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?

@benoithamet

This comment has been minimized.

Copy link
Author

benoithamet commented Mar 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.