Troubleshooting / symptôme

WordPress displays « A critical error occurred »

WordPress encounters a fatal PHP error and can no longer normally display a page or the administration.

⌚ About 3 min read
View my favorites
Real-world problem · V2

Quick troubleshooting view

What you are seeing

WordPress encounters a fatal PHP error and can no longer normally display a page or the administration.

Likely causes
  1. Plugin incompatible
  2. Defective theme
  3. PHP version incompatible
First checks
  1. View WordPress Recovery email
  2. Enable debug logs in a controlled manner
  3. Disable suspicious plugin
Recommended actions
  1. Update or replace the wrong component
  2. Return to compatible version from backup
  3. Correct the custom code concerned
Start Symptom → Cause →
WordPressIntermediate.

WordPress encounters a fatal PHP error and can no longer normally display a page or the administration.

Important: relevez toujours le message d’erreur exact et l’heure du problème avant de modifier la configuration. Les actions proposées doivent être adaptées à votre environnement.

Causes probables

  • Plugin incompatible
  • Defective theme
  • PHP version incompatible
  • Insufficient PHP memory
  • Custom code error

Diagnostic étape par étape

  1. 1

    View WordPress Recovery email

    WordPress can indicate the component in question.

  2. 2

    Enable debug logs in a controlled manner

    Save errors without showing them publicly.

  3. 3

    Disable suspicious plugin

    Rename his folder if wp-admin is inaccessible.

  4. 4

    Check PHP version

    Compare with the prerequisites of the theme and plugins.

Commands utiles

(g) the number of persons in the register;
(g) the number of persons in the register;
(g)"WP_DEBUG_Dish PhaY', (f)

Solutions possibles

  • Update or replace the wrong component
  • Return to compatible version from backup
  • Correct the custom code concerned
Quand escalader ?

Escalad if the error touches the WordPress heart, base or persists after deactivation of third party components.

♡ 0