Forum Scope


Forum Options

Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
Turning on WordPress DEBUG flags
Simple Press
395 Posts
Mar 6, 2019 - 12:39 pm

When debugging issues it is often useful to see what errors are being generated by WordPress.  Normally, these errors are not logged anywhere. However, a log can be generated by turning on WordPress debug flags in the WP-CONFIG.php.

The WP-CONFIG.PHP file is located in the root folder of your WordPress install and can usually be accessed and updated with any FTP client such as Filezilla.

Once you have the file open, you need to add the following items in it:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );


It is important that you place these entries anywhere ABOVE the line with the words /* That’s all, stop editing! Happy blogging.  */

Save the updated file back to your server.  Once saved, the error messages will be written out to a text file called debug.log.

The debug.log file will usually be generated in the wp-content folder.  However, some hosts will move the file to a more secure location – in which case you will need to contact them to access it.   The file will not be generated until an error occurs.

You should try whatever actions is causing you an issue and then see if this file contains new data in it.  You can also delete the file completely before trying your operation – it will usually be generated again when an error or notice occurs (unless the host has remove file creation privileges for the webserver user account.

More Information

Read more about debugging in WordPress:

Using the WordPress debug log (Elegant Themes)

Debugging in WordPress (wordpress.org)

Forum Timezone: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Josette Robison
Clint Noskowski
Leilani Warner
Blaine Bisdee
Annetta Conlon
Darnell Corbitt
Jeannette Leckie
Franklin Schwing
Nadine Bonnett
Forum Stats:
Groups: 7
Forums: 17
Topics: 10068
Posts: 79386


Member Stats:
Guest Posters: 608
Members: 16970
Moderators: 0
Admins: 3

Most Users Ever Online
Currently Online
Annetta Conlon, Blaine Bisdee
Currently Browsing this Page

1 Guest(s)