Support Forum

After update, user profile changes are not saved

DP DAVIDE PETUCCO
DAVIDE PETUCCO
Member

Dear support,

After we updated to the latest version, the user profile changes are not saved anymore.

Steps:

  1. Go to the User profile
  2. Edit something, for example the signature
  3. Click to save
  4. Reload the page

You’ll see that the signature was not updated.

Checking the Chrome Inspector -> Network I can see that there’s an ajax call to index.php, but the reply from server is the whole homepage!

Already tried to disable the other plugins without success.

 

Thanks

20 Answers

New Answer

MP Mr Papa
Mr Papa
Member

when you updated to latest version, did you also update all our plugins with updates? 

how did you update?  wp updater or ftp?  perhaps try going to forum – toolbox – housekeeping and clear the combined js and css cache…

do you have link to site?

DP DAVIDE PETUCCO
DAVIDE PETUCCO
Member

Hi Papa,

We updated the core via WP, and the plugins/theme via FTP.

I tried clearing the combines JS/CSS but it didn’t help.

Please check the attached screenshot.

I can provide you access if you tell me how to send the credentials.

 

Thanks

YS Yellow Swordfish
Yellow Swordfish
Member

Can you check with the browser console (quick and simple guide here:  https://simple-press.com/documentation/codex/faq/how-to/how-to-use-your-web-browser-console/) 

Open the console and ensure the errors tab is selected – click on the forum profile button – note any errors shown in red). Click on profiles update button to see if any further errors are reported.

DP DAVIDE PETUCCO
DAVIDE PETUCCO
Member

No error in console.

I realized that the screenshot hasn’t been attached to my previous reply, here it is: 

Screenshot-from-2017-01-30-10-38-53.png
YS Yellow Swordfish
Yellow Swordfish
Member

So perhaps access would be a god idea.

Please create an account we can use and then send credentials in a PM. Please:

  • Send Pm to both my self and to @mr-papa 
  • Include the credentials for login
  • Include a link to your forum page
  • Include a link to this thread
  • Include a brief reminder of the problem
YS Yellow Swordfish
Yellow Swordfish
Member

OK – first thing we need to do, I think, is rule a few things out. This is not, of course, a general problem so we need to see what s unique about your environment that is causing this.

So first up is to check if your host has enabled mod_security on the server and if so, might there be a conflict causing the post action to be ignored. Usually, if they have, they are willing to disable it (then needs a server reboot) so you can test to see if this resolves it. If it does they can whitelist the call and then re-enable it. Mod_security is the number one bane of many a web developers life!

DP DAVIDE PETUCCO
DAVIDE PETUCCO
Member

Hi Yellow,

Today BlueHost disabled mod_security but the situation hasn’t improved.
We already tried to disable the other plugins to exclude an incompatibility, with no success.

How can we troubleshoot this further?

 

Thanks

YS Yellow Swordfish
Yellow Swordfish
Member

Well – a shame it was not that simple.
Somewhere along the line the AJAX looks like it is being ambushed. If this is the case then it should leave a trail in the server logs. Could you ask your hosting support to take a look – unless you can decipher them yourself of course?

DP DAVIDE PETUCCO
DAVIDE PETUCCO
Member

Hi Yellow,

I checked the error_logs already but nothing related to my IP.

As I said, the Ajax response is the whole homepage, so it doesn’t seem interrupted by an error.

Did you check the problem yourself?

 

Here is what I get in access_log:

78.14.186.205 – – [02/Feb/2017:06:06:57 -0700] “GET /wp-admin/admin-ajax.php?action=profile&tab=profile&menu=edit-profile&user=2803&rand=359310707&_wpnonce=e44bca56e2 HTTP/1.1” 200 2007 “http://metodopit.com/forum/profile/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36”
78.14.186.205 – – [02/Feb/2017:06:07:08 -0700] “POST /index.php?sp_ahah=profile-save&sfnonce=17d8e32433&form=edit-profile&userid=2803 HTTP/1.1” 200 7447 “http://metodopit.com/forum/profile/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36”
78.14.186.205 – – [02/Feb/2017:06:07:11 -0700] “GET /wp-content/themes/schema/fonts/fontawesome-webfont.ttf HTTP/1.1” 200 47816 “http://metodopit.com/wp-content/themes/schema/css/font-awesome.min.css?ver=4.7.2” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36”

YS Yellow Swordfish
Yellow Swordfish
Member

… which appear to be returning success status! Curiouser and curiouser…

Yet still a unique report. And yes – I saw it on your site.

Did you check the php error log? We didn’t ask about that yet. If you clear the SP error log (admin > toolbox) and then try the profile save operation – do any actual errors get recorded? Actually, in this case, any warnings as well.

DP DAVIDE PETUCCO
DAVIDE PETUCCO
Member

Nothing in the SP error logs 🙁

Can you connect and troubleshoot the problem?

YS Yellow Swordfish
Yellow Swordfish
Member

It’s not that simple or straightforward sadly. There are no known problems so we can’t point the finger at anything. There are no console/script errors or php errors reported so we can’t pin the blame anywhere. I know it happens – I have seen it happening – but there are no troubleshooting options available without clues.

I think – and I believe @mr-papa would agree with me here (not here until later) that the next stage is simply to start working through installed WP plugins – deactivating them one at a time – clearing the browser cache – testing the profile. See if we find some sort of unreported conflict that way. This would especially apply to any plugins that have been installed or upgraded just prior to the problem coming to light.

And then there is the WP theme, many of which, sadly, can be responsible for a large multitude of issues with other plugins.

MP Mr Papa
Mr Papa
Member

that is good next step…  see if still happens with default wp theme and all plugins deactivated… if working, then activate one by one until fails…