WordPress

How to enable WordPress debug mode

When something breaks, debug mode reveals the real error instead of a blank page. It is the fastest way to find a faulty plugin or theme.

In the DirhamHost File Manager, open 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);

With these settings, errors are written to a log file at wp-content/debug.log instead of showing to visitors — important on a live site. Reproduce the problem, then open debug.log to read the exact file and line causing it.

The log usually points straight to the guilty plugin or theme, which you can then update, replace or disable. Turn debug off again when you are done by setting WP_DEBUG back to false, and delete the log file, so error details are never exposed.

Not sure how to read the log? Copy the last few lines and send them to support@dirhamaday.ae or message WhatsApp +971 58 553 6767 — our team will interpret them for you.

Still need a hand? Our UAE-based team is here 24/7.

Related articles

How to install WordPress with 1-clickHow to log in to your WordPress dashboard (wp-admin)How to choose and install a WordPress themeEssential plugins for a new WordPress siteHow to update WordPress, themes and plugins safely