Support Forum

Advanced Search
Forum Scope


Forum Options

Minimum search word length is 3 characters - maximum search word length is 84 characters
Turning on WordPress DEBUG flags
Simple Press
sp_UserOfflineSmall Offline
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 (

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17356
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10122
Posts: 79610