further.' ) ); /* translators: Do not translate LINK, EXPIRES, CAUSE, DETAILS, SITEURL, PAGEURL, SUPPORT: those are placeholders. */ $message = __( 'Howdy! Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. ###CAUSE### First, visit your website (###SITEURL###) and check for any visible issues. Next, visit the page where the error was caught (###PAGEURL###) and check for any visible issues. ###SUPPORT### If your site appears broken and you can\'t access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. ###LINK### To keep your site safe, this link will expire in ###EXPIRES###. Don\'t worry about that, though: a new link will be emailed to you if the error occurs again after it expires. ###DETAILS###' ); $message = str_replace( array( '###LINK###', '###EXPIRES###', '###CAUSE###', '###DETAILS###', '###SITEURL###', '###PAGEURL###', '###SUPPORT###', ), array( $url, human_time_diff( time() + $rate_limit ), $cause ? "\n{$cause}\n" : "\n", $details, home_url( '/' ), home_url( $_SERVER['REQUEST_URI'] ), $support, ), $message ); $email = array( 'to' => $this->get_recovery_mode_email_address(), /* translators: %s: site name */ 'subject' => __( '[%s] Your Site is Experiencing a Technical Issue' ), 'message' => $message, 'headers' => '', ); /** * Filter the contents of the Recovery Mode email. * * @since 5.2.0 * * @param array $email Used to build wp_mail(). * @param string $url URL to enter recovery mode. */ $email = apply_filters( 'recovery_mode_email', $email, $url ); $sent = wp_mail( $email['to'], wp_specialchars_decode( sprintf( $email['subject'], $blogname ) ), $email['message'], $email['headers'] ); if ( $switched_locale ) { restore_previous_locale(); } return $sent; } /** * Gets the email address to send the recovery mode link to. * * @since 5.2.0 * * @return string Email address to send recovery mode link to. */ private function get_recovery_mode_email_address() { if ( defined( 'RECOVERY_MODE_EMAIL' ) && is_email( RECOVERY_MODE_EMAIL ) ) { return RECOVERY_MODE_EMAIL; } return get_option( 'admin_email' ); } /** * Gets the description indicating the possible cause for the error. * * @since 5.2.0 * * @param array $extension The extension that caused the error. * @return string Message about which extension caused the error. */ private function get_cause( $extension ) { if ( 'plugin' === $extension['type'] ) { if ( ! function_exists( 'get_plugins' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $plugins = get_plugins(); $name = ''; // Assume plugin main file name first since it is a common convention. if ( isset( $plugins[ "{$extension['slug']}/{$extension['slug']}.php" ] ) ) { $name = $plugins[ "{$extension['slug']}/{$extension['slug']}.php" ]['Name']; } else { foreach ( $plugins as $file => $plugin_data ) { if ( 0 === strpos( $file, "{$extension['slug']}/" ) || $file === $extension['slug'] ) { $name = $plugin_data['Name']; break; } } } if ( empty( $name ) ) { $name = $extension['slug']; } /* translators: %s: plugin name */ $cause = sprintf( __( 'In this case, WordPress caught an error with one of your plugins, %s.' ), $name ); } else { $theme = wp_get_theme( $extension['slug'] ); $name = $theme->exists() ? $theme->display( 'Name' ) : $extension['slug']; /* translators: %s: theme name */ $cause = sprintf( __( 'In this case, WordPress caught an error with your theme, %s.' ), $name ); } return $cause; } }
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Fatal error: Uncaught Error: Class 'WP_Recovery_Mode_Email_Service' not found in /var/www/html/ticnews.com.br/web/wp-includes/class-wp-recovery-mode.php:83 Stack trace: #0 /var/www/html/ticnews.com.br/web/wp-includes/error-protection.php(133): WP_Recovery_Mode->__construct() #1 /var/www/html/ticnews.com.br/web/wp-settings.php(356): wp_recovery_mode() #2 /var/www/html/ticnews.com.br/web/wp-config.php(83): require_once('/var/www/html/t...') #3 /var/www/html/ticnews.com.br/web/wp-load.php(37): require_once('/var/www/html/t...') #4 /var/www/html/ticnews.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/t...') #5 /var/www/html/ticnews.com.br/web/index.php(17): require('/var/www/html/t...') #6 {main} thrown in /var/www/html/ticnews.com.br/web/wp-includes/class-wp-recovery-mode.php on line 83

Fatal error: Uncaught Error: Class 'WP_Recovery_Mode_Email_Service' not found in /var/www/html/ticnews.com.br/web/wp-includes/class-wp-recovery-mode.php:83 Stack trace: #0 /var/www/html/ticnews.com.br/web/wp-includes/error-protection.php(133): WP_Recovery_Mode->__construct() #1 /var/www/html/ticnews.com.br/web/wp-includes/class-wp-fatal-error-handler.php(44): wp_recovery_mode() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /var/www/html/ticnews.com.br/web/wp-includes/class-wp-recovery-mode.php on line 83