understanding theWP_DEBUG_LOGconstant for turning on the WordPress debug log is very important. In this post, I’ll cover howWP_DEBUG_LOGis used, how to find hidden errors, and why we don’t recommend third-party WordPress debugging plugins. ...
define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); 要使此功能起作用,我们首先需要启用调试模式。然后,设置WP_DEBUG_LOG为true我们会强制WordPress将消息存储到debug.log文件中,而定义WP_DEBUG_DISPLAY为false即不会在屏幕上直接输出这些信息。最后...
wp-content/debug.logHowever, you can also specify a custom file path to write the log to a different location on your server.If you want to save problems to the log but not publicly display them within the HTML of your pages (like the example screenshot above), you can also use the ...
Debug Viewer Instead of messing with FTP,wp-config.phpfile and spending hours finding the error log file, use WP Reset to easily enable/disableWP_DEBUGmode and view PHP errors. Still installing your favorite 20 plugins one by one? That’s insane!
| WP_DEBUG | 1 | constant | | WP_DEBUG_LOG | 1 | constant | | WP_DEBUG_DISPLAY | | constant | | WP_ENVIRONMENT_TYPE | development | constant | | DISABLE_WP_CRON | | constant | | DISALLOW_FILE_EDIT | 1 | constant |
WP_DEBUG_LOG: No DISABLE_WP_CRON: Yes FORCE_SSL_ADMIN: Yes WP_CACHE: Yes CONCATENATE_SCRIPTS: - COMPRESS_SCRIPTS: - COMPRESS_CSS: - ENFORCE_GZIP: - WP_LOCAL_DEV: - DIEONDBERROR: - WPLANG: - ALTERNATE_WP_CRON: - WP_CRON_LOCK_TIMEOUT: 60 WP_DISABLE_FATAL_ERROR_HANDLER: - MATOMO...
Fix: WPAPP - Fail2ban - check an array to make sure it's not empty before attempting to iterate through it - this prevents a PHP warning in debug.log Fix: WPAPP - An issue with restarting NGINX with wildcard certificates Fix: VPNAPP - Call the proper function to get the list of ...
“Debugging” helps you debug a website that is not ready for viewing and being tested or developed. “Password Protection” specifies the password you will use to log in to WordPress from Plesk. “Take over wp-cron.php” helps you set up a regular run of wp-cron.php.Above...
...激活后,调试模式会将所有PHP响应记录在站点wp-content目录中名为debug.log的文件中。...您可以在此文件中搜索可能拦截WordPress连接到REST API并因此阻止发布或更新文章的错误。...要激活调试模式,请将以下代码添加到wp-config.php 文件中 “/* That’s all, stop editing!...
If they are large log files or other files you are sure you don’t need, you can delete them from the server. Let’s look at two examples: Example 1. Delete thedebug.logfile (location shown iswhere SpinupWP puts it by default): ...