plugin-check icon indicating copy to clipboard operation
plugin-check copied to clipboard

Plugin "Check it!" button fails silently with nonce error

Open rtpHarry opened this issue 9 months ago • 3 comments

If the tab is left open, and you come back after a while and want to rescan, it can fail.

It will show the spinner for a second and then just disappear, with no feedback.

In the console there are these errors:

Failed to load resource: the server responded with a status of 403 ()
plugin-check-admin.js?=1741816233:83 

Error: Invalid nonce
    at handleDataErrors (plugin-check-admin.js?=1741816233:334:10)
Image

But there is not feedback for the user as to what's gone wrong.

Perhaps it should just automatically trigger a page reload, and show a message saying security check failed, please try again?

rtpHarry avatar Mar 13 '25 13:03 rtpHarry

how can i recreate this issue?? so that i can have a look

tamimhasan19702 avatar Mar 18 '25 10:03 tamimhasan19702

Not an easy one to recreate I guess, I just left the tab open. Maybe there is a snippet that can be used to manually invalidate the nonce?

I had been doing dev in the morning, when I returned to it in the afternoon and pressed Check It, nothing happened.

Looking at the console I saw the screenshot above.

rtpHarry avatar Mar 19 '25 00:03 rtpHarry

I can try to look into this.

iyut avatar Jun 05 '25 09:06 iyut