Forums

Howto get Debug running (4 posts)

  1. ceesvandongen
    Member
    Posted 1 year ago #

    I am having a problem getting the debug mode operational.
    Entered the next at the bottom of the wp-config.php
    /* start debug settings in wp-config.php */
    @ini_set('display_errors',0);
    @ini_set('log_errors',1);
    define('WP_DEBUG', true); // Turn debugging ON
    define('WP_DEBUG_DISPLAY',false); // Turn forced display OFF
    define('WP_DEBUG_LOG', true); // Turn logging to wp-content/debug.log ON
    /* end debug settings */

    but the debug.log file is not created.

    What could be wrong?
    Thanks for yr support, Cees

  2. Mark / t31os
    Moderator
    Posted 1 year ago #

    Where are you expecting the file to be?

    It should be in the wp-content directory (since we can generally assume that folder has write permissions - needed for uploads).

    See Nacins blog here.
    http://www.andrewnacin.com/2010/03/22/deprecated-functions-and-wp_debug/

    Point of interest.
    http://core.trac.wordpress.org/browser/trunk/wp-includes/load.php?rev=13780#L220

    Hope that helps.. :)

  3. ceesvandongen
    Member
    Posted 1 year ago #

    Thanks Mark for yr reply. Although very interesting links it did not helped me solving the issue.
    I do expect the debug.log file to be created in the wp_content directory. The folder has write permission, but for an unknown reason the file is still not created.
    I am puzzled.
    rgrds,
    Cees

  4. Mark / t31os
    Moderator
    Posted 1 year ago #

    Seems to be working just fine for me.... :)

    Of course there needs to be errors occuring for the log to be created / updated..

    I changed the callback function name in an add_action for testing, eg..

    add_action('some_action','some_non_existant_function');

    Which produced a warning (i leave error display on), and the appropriate debug.log file was created, and note, i also tested with display errors set to false (to see if there was any difference, there wasn't - the file was created in both instances).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags