• Resolved huubl

    (@huubl)


    Hi,

    I’m encountering an 500 fatal error on /wp-admin/user-new.php when creating a new user. The error disappears when Wordfence is disabled.

    I’ve enabled WP_DEBUG (with logging and display enabled) and verified that PHP error logging is working—test errors are logged, but no errors appear in debug.log or the php error log file during this process. In Wordfence my IP is whitelisted, nothing is blocked and no problems are found under tools / diagnostics .

    Steps I’ve taken so far:

    • Disabled the WAF and set it to Learning Mode.
    • Removed the /wp-content/wflogs directory.
    • Completely removed Wordfence (including its DB tables) and reinstalled it.

    Any insights or further troubleshooting suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @huubl, thanks for getting in touch.

    I’ve not seen an issue mentioning /wp-admin/user-new.php being blocked in the past, even as a false-positive. It could be possible for a block during the loading process to potentially cause a fatal error resulting in a 500 though.

    Visit the Live Traffic page immediately after seeing the 500 error. If there is a block at the current timestamp, check the block reason after expanding the entry with the eye icon in the corner. You may find a specific firewall rule or Wordfence setting stated here after expanding the entry. The reason is shown in red text. Feel free to paste that reason here if you’re unable to manually allowlist it successfully using the “ADD PARAM TO FIREWALL ALLOWLIST” button on the Live Traffic page.

    If there’s nothing in Live Traffic, it would suggest Wordfence isn’t blocking anything during the process so my next test would be to see if Wordfence as the only enabled plugin with a default theme such as Twenty Twenty-Five allows this page to work. If it does, reenable your other plugins and theme one-by-one until the issue returns to identify the cause of the conflict.

    Many thanks,
    Peter.

    Thread Starter huubl

    (@huubl)

    Hi @wfpeter,

    Thank you for your help. I managed to pinpoint the issue—it turns out that a code snippet was interfering with the process, leading to the 500 error when creating new users. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.