Hi Support,
Sometimes (I have not been able to get the pattern here), when editing a forum post and after clicking Update, someone WP(?), WP theme(?), wpForo(?) sends this error message:
Sorry, something wrong with your data.
And everything I was supposed to be "saving" is just gone forever. This happens under Chrome as well as under FireFox.
Is this message being sent by wpForo?
Hi @jorgew , Sofy answered your question which is directly related to the issue you are having. Â
"Sorry, something wrong with your data"
Its shortcut is explained "in code" in the "functions " file too.Â
I will highlight the wpForo issue being checked in blue, then the conditions in orange, and WordPress in green :Â
function wpforo_verify_form( $mode = 'full' ){
if( $mode == 'nonce' || $mode == 'full'){
if(!isset($_POST['wpforo_form']) || !wp_verify_nonce( $_POST['wpforo_form'], 'wpforo_verify_form' )) {
wpforo_phrase('Sorry, something wrong with your data.');
exit();
}
... etc etc...
do_action('wpforo_verify_form_end');
}
Â
This code in green IS WORDPRESS: "!wp_verify_nonce"
is also directly explained in the link that Robert provided, that Sofy also provided a link to:
https://codex.wordpress.org/WordPress_Nonces
You might want to review this link to Robert's explanation again at:Â
wpForo topic and post forms are also connected to this system and as far as I see the form validation doens't work. Something is wrong with your website sessions, cookies or cache. Please disable all plugins delete all caches and test it again. it should work fine.
When we need to refresh or "clear our cache" it is to erase "cookies" too that are conflicting, plugins have cookies, social media fills our devices with cookies, other website visitors fill our devices with cookies. Â
If you are seeing this behavior in Chrome, also clear your "Browsing Data" - (Control + Shift + Delete), or work in "Incognito Mode". Â
Software is created by "rules" - like "if this, then that". Maybe the better "automatic form feedback loop should be changed from Â
wpforo_phrase('Sorry, something wrong with your data.');
TO:
wpforo_phrase('Please check your plugins, or clear your cookies. Something is causing a conflict and will not pass WP Nonces. Sorry.'); :-)
The issue that caused the "Sorry, something wrong with your data" was also answered in this link. It was caused by a ANOTHER plugin.Â
I too have seen that "Sorry, something wrong with your data" and lost some posts, so I try to make it a habit to always clear cookies. Â
I keep getting same error message and wpForo is sending it.Â
Because you have not done or followed the solution provided, and wanted an explanation first. Software is very predictable. Whether or not it is explained to us, it will work and function the way it was designed to function. Â
And here's the explanation from WordPress, the same article that Sofy and Robert provided:Â
During that time period the same nonce will be generated for a given user in a given context. The nonce for that action will remain the same for that user until that nonce life cycle has completed.
Completed? The life cycles of some hard core cookies can last for one year! So, can you imagine if you had a conflicting plugin in your device that's causing software to not function properly? Â
We can shortcut it by also removing cookies and deleting browsing history or stored in temporary internet files. Testing by "deactivating" other plugins (created by other developers which might be conflicting with wpForo).Â
I hope highlighting the same explanation and solution provided by the Support Team would help you, or someone who might bump into the same issue. I wish that the Support Team would continue to "support" this wpForo for years to come! Â
P.S. Here's another link that explains the WordPress code:Â wp_verify_nonce,Â
https://codex.wordpress.org/Function_Reference/wp_verify_nonce
I mean no offense by responding here, I'm just a member here, but I'm just writing it as it is, the best way I know how, I felt compelled to chime in, coming from a technical perspective and empathizing with the Support Team here, who have given of their technical skills and time for free here, responding to inquiries and giving their best advise, always. And since they built this Software / Plugin - They are "the Subject Matter Experts (SME) on this. It would be wise to just follow their advise that they have freely and respectfully given. Especially when we've asked for solutions and they have generously provided it, for free.Â
Follow the standard debug procedures.
There is no other method to pinpoint the problem.
Is your DEBUG.log enabled and clean ?
Is your f12 browser console free of js errors ?
Also disable one by one the plugins and check.
etc etc