How to enable WP_DEBUG in WordPress
Debug mode shows PHP errors, which helps track down problems.
Edit wp-config.php and find define( 'WP_DEBUG', false );. Replace it with:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
This records errors in wp-content/debug.log without showing them to visitors. To see errors on screen instead, set WP_DEBUG_DISPLAY to true, but only briefly on a live site.
When finished
Set WP_DEBUG back to false and delete debug.log, which can reveal information about your site and grow very large.
Related Articles
How to enable auto-updates for WordPress plugins
In WordPress, go to Plugins › Installed Plugins. In the Automatic Updates column, click Enable auto-updates for each plugin. To enable for all at once, tick the checkbox at the top of the list, choose Enable Auto-updates from Bulk actions and click ...
How to install WordPress
You can install WordPress in a few clicks from cPanel. Option 1: WordPress Toolkit (recommended) In cPanel, open WordPress Management (WP Toolkit) in the Domains section. Click Install. Choose the domain and, if needed, a sub-folder. Leave the folder ...
How to disable WP-Cron and set up a cron job in cPanel
WordPress normally runs scheduled tasks (WP-Cron) when someone visits the site. On busy sites this wastes resources; on quiet sites tasks may run late. A real server cron job is more reliable. Step 1: Disable WP-Cron Edit wp-config.php and add above ...
How to enable and manage AccelerateWP
AccelerateWP speeds up WordPress sites with caching and optimisation, built into your hosting. In cPanel, open AccelerateWP in the Software section. Find your WordPress site in the list. Click the settings icon beside AccelerateWP and switch it on. ...
How to reset your WordPress password
Option 1: Lost password link Go to yourdomain.co.uk/wp-login.php and click Lost your password? Enter your username or email address. Follow the link in the email to set a new password. If the email doesn't arrive, check spam, then try one of the ...