Notifications
Clear all

wpForo 1.x.x [Solved] Error message "Sorry, something wrong with your data"

6 Posts
4 Users
2 Reactions
2,791 Views
JorgeW
Posts: 107
Topic starter
(@jorgew)
Estimable Member
Joined: 6 years ago

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?

5 Replies
Sofy
Posts: 4866
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @jorgew,

Please read this support topic:

https://wpforo.com/community/how-to-and-troubleshooting-2/cant-add-topic-to-wpforo-keep-getting-error-message-sorry-something-wrong-with-your-data/#post-15808

1 Reply
JorgeW
(@jorgew)
Joined: 6 years ago

Estimable Member
Posts: 107

Hi @sofy,

Sorry but I don't find any relation to my topic there.

I keep getting same error message and wpForo is sending it. 

functions.php is sending it here:

 
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(); 

 

Why should an "edit post" generate (and only sometimes!) an error?

Could you explain a little?

Posts: 281
(@crisw)
Reputable Member
Joined: 6 years ago

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. 

1 Reply
JorgeW
(@jorgew)
Joined: 6 years ago

Estimable Member
Posts: 107
Hi @crisw,
 
Thank you so much for your wide and generous explanation!!
 
My situation is this:
- Error occurs very seldom, but it does occur.
- I can't do without current active plugins, no way.
- I'm just a WP user, not much coding knowledge. 
 
I just wanted to know a bit more on what might be going on, in a way that I could tell my other forum users what they might do to avoid it.
 
Now I know, a way more, thanks again CrisW.
 
And my gratitude to wpForo's team for an amazing plugin and to @sofy and @robert for a superb support!!
 
> and rate wpForo 5 stars  
Did already, time ago.
 
🙂
Posts: 1602
(@anonymous20)
Noble Member
Joined: 9 years ago

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