Getting errors recorded rather than hidden.
WHY
A live site should not display errors, because they expose file paths and code structure.
But they must be recorded somewhere, or diagnosis is guesswork.
IN WORDPRESS
Add to wp-config.php above the stop editing line:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);Errors then write to wp-content/debug.log without appearing on the page.
Remove or set to false when finished, since the log grows.
IN OTHER APPLICATIONS
Most have an equivalent setting. Laravel uses APP_DEBUG and a log level; Joomla and Drupal have their own.
Set logging on and display off on a live site, always.
IN PHP GENERALLY
cPanel > MultiPHP INI Editor. Set display_errors to Off and log_errors to On.
WHERE TO READ THEM
cPanel > Metrics > Errors, or the application's own log file.
WATCHING LIVE
Over SSH, tail the log while reproducing the problem.