CONTENT_DIR . '/php-error.php';
if ( is_readable( $php_error_pluggable ) ) {
require_once $php_error_pluggable;
return;
}
}
// Otherwise, display the default error template.
$this->display_default_error_template( $error );
}
/**
* Displays the default PHP error template.
*
* This method is called conditionally if no 'php-error.php' drop-in is available.
*
* It calls {@see wp_die()} with a message indicating that the site is experiencing technical difficulties and a
* login link to the admin backend. The {@see 'wp_php_error_message'} and {@see 'wp_php_error_args'} filters can
* be used to modify these parameters.
*
* @since 5.2.0
*
* @param array $error Error information retrieved from `error_get_last()`.
*/
protected function display_default_error_template( $error ) {
if ( ! function_exists( '__' ) ) {
wp_load_translations_early();
}
if ( ! function_exists( 'wp_die' ) ) {
require_once ABSPATH . WPINC . '/functions.php';
}
if ( ! class_exists( 'WP_Error' ) ) {
require_once ABSPATH . WPINC . '/class-wp-error.php';
}
if ( is_protected_endpoint() ) {
$message = __( 'The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.' );
} else {
$message = __( 'The site is experiencing technical difficulties.' );
}
$args = array(
'response' => 500,
'exit' => false,
);
/**
* Filters the message that the default PHP error template displays.
*
* @since 5.2.0
*
* @param string $message HTML error message to display.
* @param array $error Error information retrieved from `error_get_last()`.
*/
$message = apply_filters( 'wp_php_error_message', $message, $error );
/**
* Filters the arguments passed to {@see wp_die()} for the default PHP error template.
*
* @since 5.2.0
*
* @param array $args Associative array of arguments passed to `wp_die()`. By default these contain a
* 'response' key, and optionally 'link_url' and 'link_text' keys.
* @param array $error Error information retrieved from `error_get_last()`.
*/
$args = apply_filters( 'wp_php_error_args', $args, $error );
$wp_error = new WP_Error(
'internal_server_error',
$message,
array(
'error' => $error,
)
);
wp_die( $wp_error, '', $args );
}
}
Fatal error: Uncaught Error: Class 'WP_Fatal_Error_Handler' not found in /var/www/html/ticnews.com.br/web/wp-includes/error-protection.php:93
Stack trace:
#0 /var/www/html/ticnews.com.br/web/wp-settings.php(52): wp_register_fatal_error_handler()
#1 /var/www/html/ticnews.com.br/web/wp-config.php(83): require_once('/var/www/html/t...')
#2 /var/www/html/ticnews.com.br/web/wp-load.php(37): require_once('/var/www/html/t...')
#3 /var/www/html/ticnews.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/t...')
#4 /var/www/html/ticnews.com.br/web/index.php(17): require('/var/www/html/t...')
#5 {main}
thrown in /var/www/html/ticnews.com.br/web/wp-includes/error-protection.php on line 93