Skip to content
Knowledge

/

Drupal

Drupal and outages

500 error in Drupal: a safe diagnostic sequence.

A 500 code means an unhandled server-side problem, but doesn’t point to its source. The fastest route to the cause is the first error matching the time of the outage, set against the latest change and the scope of unavailability.

Last updated: 9 August 2026

Owner: Gotoweb technical team.

Author: Kamil Michno

Next step

Record the time, the URL, the user and the latest change. Don’t enable public debugging, and don’t delete the cache and logs without a plan.

01

Establish the exact scope

Check the home page, the admin panel, a specific form, a view, the API and automated tasks. Note whether the problem affects everyone, one user, one language or one process. This narrows down the layer responsible for the error.

02

Correlate the time with the latest change

Record any deployment, Composer update, PHP change, configuration import, update hooks or hosting change made before the outage. Matching timing isn’t proof, but it identifies the right part of the log.

03

Read the first critical error

Check the Drupal, PHP-FPM and web server logs. The first exception with a full stack trace is usually worth more than the messages that follow as a result. Don’t publish logs containing tokens, user data or private paths.

04

Composer, autoload and modules

An incomplete vendor, a constraint conflict, a faulty patch or an enabled module without its class can stop the bootstrap. Compare the lockfile and the deployment artefact with the repository. Don’t run a random composer update in production.

05

Configuration, the database and update hooks

Importing incompatible configuration or an interrupted database update can leave the code and the schema in different states. Verify pending updates and configuration dependencies on a restorable copy.

06

PHP, the server and resources

Check the actual web and CLI runtime, extensions, memory, time, disk, permissions, server rules and the database connection. Just raising the limits can hide a loop or a heavy query.

07

Repair and acceptance

Remove the confirmed cause in a test environment, go through the critical scenarios and only then deploy. Agree monitoring, the rollback condition and actions to prevent a repeat.

Is a 500 error blocking Drupal or the admin panel?

Give the Drupal and PHP versions, when it happened, the latest change and the impact on users. Remove secrets from log excerpts.

Only 3 required fields · reply within 1 business day · no obligation