try resaving your permalinks
Thread Starter
Gurth
(@gurth)
I set them to “standard” to try that, and instead of a 404, the pages now give a 500 Internal Server Error. Anything else than “Standard” causes a 404.
did you disable ALL plugins?
Thread Starter
Gurth
(@gurth)
Yep. I clicked the “check all” button at the top and then chose to deactivate them. What I find odd is that changing the permalinks causes the error code to change to 500, which suggests to me that the 404 might be a misleading error caused by the permalinks getting confused because of the actual problem that’s occurring. But what that problem would be, I haven’t got a clue 🙁
FWIW, I also just changed my site’s theme to Twenty Fifteen, as I remembered I hadn’t tried disabling my custom theme yet, and the users page still 404s.
The other thing to check is your .htaccess files and see if anything in there is doing a redirect. Remember you need to check from the wp root folder to all it’s parent folders as htaccess files are inclusive.
Thread Starter
Gurth
(@gurth)
I just got round to checking, and there are no .htaccess files in any directory in the path from wp-admin/ on up, so that’s not it either. (In case you’re going to ask: yes, I did make sure to have my FTP client show hidden files 🙂 This is getting seriously strange, if you ask me.
so with permalinks set to the default, if you try to go edit a user you get a 500 server error….
Have you contacted your host to see if they can help you out? This is something way out of the ordernary. Your host might be able to tell you what the 500 is all about.
Thread Starter
Gurth
(@gurth)
That seems to be the only recourse. Time to send an e-mail …
Thread Starter
Gurth
(@gurth)
Contacting the host pointed us in a new direction, but it’s not really resolved the issue yet. The web server’s logs contain the following errors:
[Sun Mar 15 12:27:34 2015] [error] [client [redacted]] SoftException in Application.cpp:351: Mismatch between target UID (500) and UID (504) of file “/home/[redacted]/domains/[redacted]/public_html/wp-admin/user-new.php”, referer: http://[redacted]/wp-admin/profile.php
[Sun Mar 15 12:27:34 2015] [error] [client [redacted]] Premature end of script headers: user-new.php, referer: http://[redacted]/wp-admin/profile.php
UID 500 is a generic user, 504 is the user for my site. So what seems to be going on, is that the files have a different user than they’re expected to have, which is why they “can’t be found”.
Googling these error turns up that it’s not an unknown problem, and isn’t restricted to WordPress — it appears to be related to suPHP, which (so the host informs me) is needed here because WordPress requires a setting that’s considered unsafe, but suPHP allows this to be set per user so it won’t compromise everybody’s security.
The commonly-recommended solution appears to be to do a chown recursively (so in my case, chown -R 504:504
in the user’s home directory), which I got the host to do for me, but it didn’t resolve the problem 🙁
My ideas are beginning to run out, though …
Your host should be able to fix this for you. Have them change the ownership based on the user name not the process ID
I found this on the web
Make sure that suPHP_UserGroup matches the actual user that the files are owned by.
Thread Starter
Gurth
(@gurth)
Thanks, I’ll pass it on and hope this does help.