You
must be annoyed by the errors coming to your Website. However, every error has
a solution. But if you know how error has arrived on the site and why it is
occurring, then we can plan troubleshooting steps for it. Have you heard of the
WordPress error log? Now we will talk about the error log and learn how to
enable it on the Website.
A WordPress Error Log is
a saved record of the error faced by a website or blog. The core configuration
file in WordPress is wp-config.php. Visit your WordPress file with the help of
CPanel admin or FTP credentials. Now find the wp-config.php inside the root
folder once you locate the file, not edit it with a text editor. Now find the
sentence that contains "Happy blogging.'
Place
the following after this sentence.
define ('WP_DEBUG', true );
After placing the above code, we now also need
to add another code below the upper system.
define( 'WP_DEBUG_LOG', true );
Both these codes will maintain an error log as
well as act as a debugging tool. Hence, if you ever want to see the errors of
the Website, you should inspect the wp-config.php file whenever you need it.
Whether it WordPress Parse Error,
white screen of death error, internal server error WordPress error 404, or
more, you can be able to see such errors stored in the log.
No comments:
Post a Comment