Home › Forums › ACF PRO › Warnings with clean install of ACF Pro 5.0.9 and WP 4 › Reply To: Warnings with clean install of ACF Pro 5.0.9 and WP 4
I get this error as well. If i make some changes to an existing post and hit “Update” or create a new post and hit “Publish” the error occurs.
Doing a debug_backtrace, it seems to originate from acf_verify_nonce() in api/api-helpers.php where wp_verify_nonce() is called on line 1034. The value of $_POST[‘_acfnonce’] is an int with the ID of the post. The error disappears if i typecast it to a string by changing line 1034 to
if( wp_verify_nonce((string)$_POST['_acfnonce'], $nonce) )
.
This is kind of the same solution as @jurajk proposed in the previous post but it feels better to edit a plugin than WP core 🙂 It might even cause a security issue since we are validating nonces. Someone with more insight can maybe shed a light on this.
@elliot Whether the error originates from another plugin or if it’s ACF that causes the problem in the first place I do no know but if you want some more info about my setup, I’d be happy to provide it.
Thanks for an awesome, game changing, plugin!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.