Skip to content
Diamond Sierra

PB-2201: Fatal PHP error

Paul Bunyan code PB-2201 (Error): Fatal PHP error. What it means and what to do.

Updated · By Diamond Sierra

On this page

What it means

PHP stopped the request. The visitor saw an error or a blank page.

What to do

The message gives the file, line and owning plugin. Fix or disable that code.

Common causes

  • A plugin or theme calling a function that doesn't exist on this site: a missing dependency, a plugin loaded in the wrong order, or code written for a newer version of WordPress, WooCommerce or PHP.
  • A PHP upgrade: functions removed in PHP 8 (such as create_function or each), or stricter type checks that now throw a TypeError.
  • Running out of memory ("Allowed memory size exhausted") or time ("Maximum execution time exceeded").
  • A syntax error left by a manual edit or a half-finished update.
  • Two plugins declaring the same function or class.

How to find and fix it

  1. Read the message: it names the file, the line and the plugin or theme that owns it.
  2. If a site is down, rename that plugin's folder in wp-content/plugins/ by FTP or the hosting file manager. WordPress deactivates it and the site comes back.
  3. Update the plugin, or roll back the update that started it. Check whether it supports your PHP version.
  4. If you only have a log file, paste it into the free debug log analyzer to group the fatal errors and see which plugin they come from.
  5. Report it to the plugin's author with the message and the PHP, WordPress and plugin versions.

Details

CodeSeverityGroup
PB-2201ErrorPHP