Troubleshooting / symptôme

WordPress displays a critical error after an update

The site or the administration displays "A critical error occurred" right after updating, a plugin, theme or WordPress.

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

Quick troubleshooting view

What you are seeing

The site or the administration displays "A critical error occurred" right after updating, a plugin, theme or WordPress.

Likely causes
  1. PHP incompatibility
  2. non-existent function or class
  3. plugin incompatible with a new version
First checks
  1. Identify the last modification
  2. Disable without deleting
  3. Read the log
Recommended actions
  1. return to previous version of the wrong plugin
  2. install a compatible corrected version
  3. correct code if plugin is internal
Start Symptom → Cause →
WordPressIntermediate.

The site or the administration displays "A critical error occurred" right after updating, a plugin, theme or WordPress.

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

  • PHP incompatibility
  • non-existent function or class
  • plugin incompatible with a new version
  • conflict between extensions

Diagnostic étape par étape

  1. 1

    Identify the last modification

    Note the plugin, theme or version updated just before the problem.

  2. 2

    Disable without deleting

    Rename the suspicious plugin folder via FTP if wp-admin is inaccessible.

  3. 3

    Read the log

    temporarily activate a debug log without showing any errors to visitors.

  4. 4

    Check PHP

    Compare PHP to the plugin requirements.

Solutions possibles

  • return to previous version of the wrong plugin
  • install a compatible corrected version
  • correct code if plugin is internal
  • test updates on preproduction before production
Quand escalader ?

Crack if the error persists even after deactivation of the last modified component or touches the WordPress heart.

♡ 0