我一直在我的wp配置的顶部添加。php命令关闭php logger,但不会对其产生任何影响。还有什么我应该做的吗?
error_reporting(0);
@ini_set(‘display_errors’, 0);
我一直在我的wp配置的顶部添加。php命令关闭php logger,但不会对其产生任何影响。还有什么我应该做的吗?
error_reporting(0);
@ini_set(‘display_errors’, 0);
也在wp-config.php
, 设置WP_DEBUG_DISPLAY
常数至FALSE
.
源代码段wp-includes/default-constants.php
:
// Add define(\'WP_DEBUG_DISPLAY\', null); to wp-config.php use the globally configured setting for
// display_errors and not force errors to be displayed. Use false to force display_errors off.
if ( !defined(\'WP_DEBUG_DISPLAY\') )
define( \'WP_DEBUG_DISPLAY\', true );
我添加了行define( \'WP_CONTENT_DIR\', $_SERVER[\'DOCUMENT_ROOT\'] . \'/blog/wp-content\' ); 和define( \'WP_CONTENT_URL\', \'example/blog/wp-content\';); 在我的wp配置中。php,然后我的网站崩溃了。甚至后端的一些小部件也不再显示。我立即从wp-config.php 然而,这并没有改变任何事情。请帮忙