Updated
The short answer
PHP errors happen on your server, and WordPress keeps them in three places:
- WooCommerce → Status → Logs — the
fatal-errorslog and your payment gateway's log; - wp-content/debug.log — warnings and notices, once
WP_DEBUG_LOGis on; - your host's error log — in the hosting control panel.
The file path in each error names the plugin or theme responsible. Fix fatal errors and anything on the checkout first; most notices can wait.
The kinds of PHP error
- Fatal error — the request stopped. On a page, shoppers see “There has been a critical error on this website” or a blank screen; in the background, a checkout that never completes.
- Warning — something went wrong and PHP carried on. The page may work, or may be missing part of what it should show.
- Notice and deprecation — code that works today but is written in a way PHP or WordPress plans to stop supporting. Mostly harmless, and the most numerous by far.
Where to find them
- WooCommerce → Status → Logs. Pick the
fatal-errorssource for fatal errors, and your payment gateway's source for payment problems. - The WordPress debug log. In
wp-config.php, set:
Errors are then written todefine( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );wp-content/debug.logand never shown to shoppers. - Your host's error log, usually in the hosting control panel — useful when WordPress itself can't start.
- The recovery-mode email. After a fatal error, WordPress usually emails the site's admin address with the plugin or theme responsible and a link to log in with it paused.
Reading an error
A PHP error line has a type, a message, a file and a line:
PHP Fatal error: Uncaught Error: Call to undefined function foo()
in /wp-content/plugins/some-plugin/includes/class-cart.php:142/wp-content/plugins/<name>/is that plugin;/wp-content/themes/<name>/is the theme;/wp-includes/or/wp-admin/is WordPress, usually called wrongly by something else further down the stack.- Allowed memory size exhausted — the request needed more memory than allowed. Raise
WP_MEMORY_LIMIT, and look for the plugin that needs it. - Call to undefined function or class not found — a plugin depends on another one that is missing, inactive or out of date.
- Errors that start right after a PHP upgrade — a plugin or theme not yet compatible with the new PHP version.
When the error is on the checkout
A fatal error while an order is being placed rarely shows the shopper a clear message. The checkout spins, or returns a generic error, and the order may or may not exist. If shoppers report a checkout that never finishes, look in the fatal-errors log for entries at the times they tried, and read the gateway's log beside it.
Collecting them with StorePilot
- Fatal errors and uncaught exceptions are reported from every plugin, the theme and WordPress itself, grouped into issues with the file, line and stack.
- Warnings and notices only from the plugins you choose to watch, so the issue list isn't buried in other people's deprecations.
- The checkout behind it. A fault while a classic WooCommerce checkout is placing an order is linked to that shopper's visit and its recording.
- Failures your code handles — a shipping rate API that silently falls back — can be reported on purpose with
storepilot_capture(). - Alerts for new errors and spikes, by email, Slack, Telegram or webhook.
Install the WordPress plugin, see how error tracking works, or read about PHP errors in the docs.

