Domanda

When I go to site health this is what I am seeing.

Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be available on a publicly available website.

The value, WP_DEBUG_LOG, has been added to this website’s configuration file. This means any errors on the site will be written to a file which is potentially available to normal users.

What should the file be? I looked at https://wordpress.org/support/article/debugging-in-wordpress/ and I did not see what the file is support to be.

È stato utile?

Soluzione

You should be looking for the wp-config.php file in the root of your WordPress installation. From the documentation in the WP_Debug Section

WP_DEBUG is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout WordPress. It is assumed to be false by default and is usually set to true in the wp-config.php file on development copies of WordPress.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top