A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
general-topic
Turning on WordPress DEBUG flags
RSS
Avatar
Simple Press
385 Posts
(Offline)
1
Mar 6, 2019 - 12:39 pm
Print

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)

Building out your membership site can be a lot of work. Easy Membership Sites has pre-configured all the Simple:Press plugins and tools you need to build a complete membership site in a fraction of the usual time. Check them out: Easy Membership Sites

Forum Timezone: America/New_York
All RSS Show Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 629
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Andy Cenoz
Kundan Dheevar
Wally Harvey
n1 n2
James Schwinn
Jaroslaw Balczewski
Lu Hunter
Jocelyne McGeever
Matthew Wolze
Forum Stats:
Groups: 7
Forums: 17
Topics: 10053
Posts: 79333

 

Member Stats:
Guest Posters: 606
Members: 16890
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
7
Currently Browsing this Page

1 Guest(s)