WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Error 20004 Invalid nounce after plugin update
- AuthorPosts
- 9 June, 2020 at 10:48 am #49763
Version 3.12.10
I get this error after updating to the above version. I have disabled all pluggins that I think might get in the way of placing order but I still gett this. This happened on our live server but we reverted back a version and things are running ok there. But I run the project locally with the updated version and I get the error.
Any ideas?
9 June, 2020 at 12:25 pm #49764nonces are used throughout wordpress
what version did you update from ?
as you did not provide a url / run things on localhost i can only point you in the general direction as to why nonces might be invalid and perhaps this will helphttps://www.google.co.uk/search?q=wordpress+error+invalid+nonce
it is impossible for me to guess where your problem may be without at least a url where i can see this
10 June, 2020 at 9:03 am #49772Oh dear. My head was on backwards yesterday…
I am spinning up a staging server to show you what going on and this error only occurs when trying to checkout the order. I have disabled all gateway pluggins and am just using the Pay on pickup option for the test order. I will send you a private msg when I have the staging running with passwords and whatnot.10 June, 2020 at 9:11 am #49773This reply has been marked as private.10 June, 2020 at 12:28 pm #49774you are using some gateway in know nothing about
namely something called “avista_is-avista-wppizza-gateway-50726f33a922”
and it’s throwing errors (see your browser console)
first thing i’d suggest is deactivate this and see if you still have the same issue10 June, 2020 at 12:35 pm #49775PS: i would also suggest you enable debug like so
https://docs.wp-pizza.com/troubleshooting/10 June, 2020 at 1:49 pm #49776Im sorry I thought I had disabled that plugin. (it is built on the gateway demo within the wp-pizza plugin) and is causing some troubles. But I have set the debug mode to true and I did encounter some warnings that I have taken care of. The errors in the console were actually reminders for myself to have the gateway pluggin turned on but those are gone now since I disabled the “avista_is-avista-wppizza-gateway-50726f33a922” plugin but still the error persists
10 June, 2020 at 2:48 pm #49777it’s actually quite simple.
something on your site is removing the nonces, so of course, it will say invalid nonce
i somewhat suspect you have some custom coding somewhere / edited some templates (?)10 June, 2020 at 4:07 pm #49778Hm the only time I ever configure a nounce is when I am building a custom Ajax call and I am not doing so on this website. (Im not implementing the wp_create_nonce(‘some_nounce_secret_string’) method )
The site works with the wp-pizza version 3.12.1 but the error occurs after the update to 3.12.10 so apparently nounces are not missing before that.
The live site is using v. 3.12.1 and we are able to check out.
No templates have been messed with just this update.
10 June, 2020 at 4:14 pm #49779using any wppizza related filters/actions in you (child)theme or dedicated plugin ?
10 June, 2020 at 4:35 pm #49781> I disabled the “avista_is-avista-wppizza-gateway-50726f33a922” plugin but still the error persists
doesnt look like it . it is still loading it’s scripts etc from what i can see (so who knows what else it is doing)
10 June, 2020 at 6:14 pm #49787Ok never mind I’ll figure it out.
- AuthorPosts
- The topic ‘Error 20004 Invalid nounce after plugin update’ is closed to new replies.