Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Saving profile not working
Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 14, 2017 - 4:47 am

I've found a way to replicate it (at least in my environment)

1. Housekeeping - resetting profile doesn't fix the saving issue so i ve uninstalled all translation via simple-press language page.

2. Resetting profiles now works and you can save your data.

3. Install the translations again

4. Reset profiles in housekeeping page

5. I ve the issue again

 

I think there is something that translates the slugs at housekeeping process. I'll probably check the code when i'm at home.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 14, 2017 - 6:34 am

As said over the last few posts - we have found the cause. Now it is just a matter of deciding the best way to fix it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 14, 2017 - 9:01 pm

those strings never should have been translatable...  the profile tab and menu panel was where translations or renaming was to have occurred... somewhere, I think, we noticed some untranslated strings and made them translatable and thus breaking it...  still discussing the fix, but likely we will remove them from the translations file - its the safest...  but may require users to retranslate them... no clear cut choice...

Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Jun 26, 2017 - 5:56 am

So you are aware of this issue right? Can you already say until when it will be fixed? Just to tell my client. I guess the fix comes with the next update then?

Thank you for taking care about this! 🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 26, 2017 - 6:02 am

The problem was fixed in the 5.7.5 version released last weekend.

But it does restore the way Profiles were intended to be translated all along which is by using the forum admin > profiles > profiles tabs and menus control panel. They should never have been added to the PO file for translation.

So to rectify, you need to use the toolbox housekeeping task to reset them and then the above admin panel to translate them. This allows for a much looser and personalised translation as well of course.

You will also need to update any Simple:Press plugins that may create profile panels before performing the reset.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Jun 29, 2017 - 10:05 am

Ok great! 

I made the updates and reset the profile. Looks good now! Thanks a lot!!!

But: I still have one issue where I hoped it would be fixed by this fix too. After updating any profile data and clicking to another menu item there is the message:

-------
Access denied - security check failed
Unable to complete the request

Please reload the page and retry the operation
-------

It works after reloading the page. But not directly after updating any profile data. Any idea what this could be?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 29, 2017 - 12:15 pm

It is that last bit that bothers me. Why it should work on a page refresh makes little sense when one considers the main reasons the call fails.

Basically the message is telling you that the WordPress 'nonce' has been checked by the post data routines and found to be incorrect. One reason could be that the URL we are sending is getting trashed by some third party process. We have seen this before now.

Another possibility would be the use of mod_security on the server which is the bane of any developers life! You should check with your hosting support on whether this module is active and could it be the culprit.

Bot then we come back to the fact that when you refresh the page again - the data gets saved and it works. Which it means it must be using the same url and the dame post-save routines. @mr-papa - any ideas on this one? it doesn't seem to make a lot of sense to me?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Jul 6, 2017 - 9:07 am

I thought about the "nonce" thing too. And I was hoping that as soon as the urls are fixed it would work again. Did you find a solution for this already?

I will check the "mod_security" thing with the hoster...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 6, 2017 - 9:46 am

not sure what solution we are looking for...  no known problem yet..  its an isolated case so far, so need to understand what might be going on specific to your server or configuration...  unless its just another symptom of a security or plugin trashing query args but this one reacts quite differently...

and as Andy said, not sure how it could possibly work on a refresh... shouldnt kick off the ajax request again....  doesnt make much sense..

when you get the security warning, what is the ajax response via the browser console?  the actual ajax request sent might be useful too just to verify its correct...

Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Aug 26, 2017 - 12:12 pm

Hey, I didn't text for a while but the issue is still there. 

So after changing the password in the profile settings and clicking somewhere else in the profile (here: Edit photos), this error occurs:

Access denied - security check failed
Unable to complete the request
Please reload the page and retry the operation

When I look to the error log it shows a nonce error:

Nonce Security Alert
profile: failed nonce check

action profile
tab profile
menu edit-photos
user 397
rand 1677665145
_wpnonce b34c921c10

Does this help to find a solution for this issue? 

Best,
Mike

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626