New life in design.

Web Designing.

Dan Eastes

Website Designer

Helping people with their websites

How do you enable

debug mode in WP?If you want to check for PHP errors yourself or I asked you to send me

the list of PHP errors, you can follow these steps.1. Open

wp-config.phpLog in to your FTP account and search for the wp-config.php  file in the

main directory of your WordPress installation.Download the file and open it on your computer or edit it online

(depending on your FTP editor).2. Check for

WP_DEBUGGo down to the line where WP_DEBUG is defined. This normally looks like

this:define( ‘WP_DEBUG’,

false );If the line is missing, search for the comment that says /*

That’s all, stop editing! Happy blogging. */.We are going to operate above that line.3. Insert WP_DEBUG

codesYou have basically two options now. Either display all errors to the

frontend or log them in a file so that no one sees them while visiting the

page.This is the code that you should include in your wp-config.php  file

to display all errors:define(‘WP_DEBUG’,




E_ALL);It is obvious that you shouldn’t display the errors on a website that is

already publically available and visited by real users.In order to log the errors, use this block instead.define(‘WP_DEBUG’,



false);@ini_set(‘display_errors’,0);Please save the file now. If you downloaded it before, upload it again

to replace the existing version.4. Provoke the

errorNow go to the page where the problem happens. This can be the frontend

page or a page in the admin. If you performed a specific action, e.g. sending a

form, then also do it now.If you opted for the frontend output and want to let me know about an

error message then please make a screenshot now.5. Disable WP_DEBUGNow go back to your wp-config.php file and

disable WP_DEBUG. You can also decide to keep it on if you are working on a

development environment or keep the logging for a while to catch bugs with

other plugins or themes that you might not be aware of.However, if you want to disable error output again, change WP_DEBUG to

false, like in the line below.define(‘WP_DEBUG’,

false);And remove this line, if you included it before.@ini_set(‘display_errors’,

E_ALL);Please save the file again.6. Download

debug.logGo back to your FTP account and search for the wp-content  folder in

the base folder of your WordPress installation.There should be a file called debug.log. If there isn’t,

there could be two reasons:


was simply no error

you don’t have the permission to create new

files. In this case, create an empty file called debug.log and upload it. Set the

file permissions to 777.

If the file was created then download it.7. Check for errorsOpen debug.log  now and check for errors. If I

asked you to check this file then you can also send it to me right away.Please be aware that the file contains all PHP errors, so even if there

is plenty of stuff in it then it must still not be related to Advanced Ads.However, it is definitely an error related to Advanced Ads if one of the

paths mentioned in the error messages contains the string advanced-ads. 

Dan E

Let’s get started on your project!

Get in touch for a chat

No locked in contracts with the right to cancel anytime. You will be safe in our hands as we build a long relationship.

100% Google safe

Every website we build is fully optimised with Google’s best practice guidelines.

Regular Reporting on how all your projects are going and if you need more, just ask away. We are happy to talk.

Our websites are designed and built right here in the UK by our

in-house design team. With fast lead times.

Connect with us:


We use cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Click to learn more