• Trying to edit a user’s settings just now, I found I can’t access /wp-admin/users.php and /wp-admin/user-new.php — both give a 404 “Not found” error:

    Not Found

    Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.

    • I first checked the files to see if they’re there at all, and whether they contained code they shouldn’t, but both exist and seem to be in order.
    • Checking file permissions, I found them to be 644 and thus, it’s not like the file can’t be read; it’s also not like /wp-admin isn’t readable, because all other admin pages I tried load fine.
    • I then re-installed WordPress using the button on the updates screen, but again nothing changed.
    • After that I disabled all addons and tried again, and both pages still keep refusing to load.
    • Changing the filename of users.php to something else with extension .php also causes the same error, but if I replace .php by .html the page loads fine — though obviously without being usable. However, this proves the file can be found and read. So why does it 404?

    Any help would be much appreciated … it’s not as if I need to add or modify users often, but I would like to have the ability to do so if I have to 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘users.php and user-new.php give 404 error’ is closed to new replies.