Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP/Wordpress错误报告赢得';不要打开_Php_Wordpress - Fatal编程技术网

PHP/Wordpress错误报告赢得';不要打开

PHP/Wordpress错误报告赢得';不要打开,php,wordpress,Php,Wordpress,我正在编写PHP脚本,其中包括wp load.PHP。每当我的PHP代码中出现错误时,我只得到500个错误,没有输出。我添加到我的wp config.php(和我的脚本文件): 但仍然没有收到任何错误消息。这些不是web服务器的错误配置。它们总是只是PHP错误。也没有错误.log。更改WP-config.php文件中的参数“WP\u DEBUG”。将参数设置为true 定义('WP_DEBUG',true) 另请参见定义('WP_DEBUG_DISPLAY',true);并定义('WP_DEBU

我正在编写PHP脚本,其中包括
wp load.PHP
。每当我的PHP代码中出现错误时,我只得到500个错误,没有输出。我添加到我的
wp config.php
(和我的脚本文件):

但仍然没有收到任何错误消息。这些不是web服务器的错误配置。它们总是只是PHP错误。也没有错误.log。

更改WP-config.php文件中的参数“
WP\u DEBUG
”。将参数设置为
true

定义('WP_DEBUG',true)

另请参见定义('WP_DEBUG_DISPLAY',true);并定义('WP_DEBUG_LOG',true);对于日志文件
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(E_ALL|E_STRICT);