WordPress · HTTP 500
500 error in WordPress: a safe diagnostic sequence.
HTTP 500 says the server didn’t fulfil the request, but it doesn’t tell you whether the problem lies in PHP, WordPress, a plugin, the theme, the database, the server configuration or a resource limit. Diagnosis starts with the scope and the logs.
Next step
Record the time, the URL, the response code, the latest change and whether the error affects all users. Don’t turn on public display of PHP details.
01
Confirm the status and scope
Check the code without redirects and several representative URLs: the front end, wp-admin, login, the REST API and a static file. An error on one endpoint needs a different order than an entirely unavailable host.
02
Correlate with the latest change
Record any update, change to PHP, server rules, certificate, permissions, cache, the database or hosting. Matching timing narrows the area, but must be confirmed by a log or a repeatable test.
03
Read the right logs
Compare the web server, PHP-FPM, WordPress and any proxy layer logs. The first fatal error or exception that matches the timing is usually worth more than later entries generated by retries.
04
PHP, plugins and the theme
Check the runtime version, extensions, limits and the file path in the error. Don’t disable many plugins at random in production; reproduce the configuration and test one hypothesis on a copy.
05
Server rules and permissions
A bad directive, an unsupported syntax, the file owner, no disk space or the PHP configuration can return a 500 even before WordPress. Compare with a working state instead of copying configuration from the internet.
06
Database and resources
Connection problems, a corrupted table, a long query, a loop or exhausted workers can look similar. Measure and read the logs before raising limits.
07
Acceptance after the repair
Once you get a 200 back, test the admin panel, saving, forms, email, cron, REST, cache and integrations. Monitor 5xx errors after deployment, because intermittent errors may not appear in a manual test.
Related materials and sources
Has a 500 error stopped WordPress?
Give the scope of the outage and the first log message with secrets removed. We’ll start with a hypothesis that can be checked safely.
Only 3 required fields · reply within 1 business day · no obligation
