Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Disable the method of handling fatal errors in WordPress WSOD

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you the way to disable WordPress fatal error WSOD processing, I hope you read this article after the harvest, let us discuss it together!

WordPress 5.2 has a new feature built into it that automatically sends an email to notify the site administrator when a plugin or theme error is detected, and even in cases where the backend is completely inaccessible (such as a so-called "white screen crash"), the administrator still has the opportunity to log in and take action on the problem.

If you want to disable this feature, you can do the following:

method one

Open the WordPress configuration file wp-config.php and add:

define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );

methodology II

Add the following code to the current topic function template functions. php:

add_filter ('wp_fatal_error_handler_enabled','__return_false'); After reading this article, I believe you have a certain understanding of the method of disabling WordPress fatal error WSOD processing. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 235

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report