• Resolved tolddsm

    (@tolddsm)


    Hi,

    Nice plugin. Helps a lot for debugging.

    As for the wp-config, this plugin adds several rules such as

    define( 'DUP_SECURE_KEY', );
    define( 'SCRIPT_DEBUG', true );
    define( 'WP_DEBUG_LOG', '' );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'DISALLOW_FILE_EDIT', true );

    After disabling/deleting the plugin, these rules are not automatically removed. I found this because the “DISALLOW_FILE_EDIT” prevents one of my PHP from firing.

    My question is:

    1. Should the plugin auto-remove these added rules after disabling the plugin? If it should, why is it not removed in my case?
    2. If the rules added by the debugger are not removed after disabling/removing the plugin, where should I check manually for the rules so I can remove them myself to prevent future conflicts?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tolddsm

    (@tolddsm)

    @qriouslad, or how to get a clean uninstall? Simply deactive or uninstall the plugin does not change wp-config rules back to pervious state.

    Plugin Author Bowo

    (@qriouslad)

    Debug Log Manager only adds / modifies the following constants in wp-config.php

    WP_DEBUG
    SCRIPT_DEBUG
    WP_DEBUG_LOG
    WP_DEBUG_DISPLAY
    DISALLOW_FILE_EDIT

    It also stores the path to the custom debug.log file as an option with the key ‘debug_log_manager_file_path’.

    If you manually delete the above constant definitions in wp-config.php and delete the option above from wp_options table (e.g. using SQL Buddy plugin), you should have a ‘fresh’ state the next time you activate Debug Log Manager… and a new debug.log file will be created.

    I have not implemented any mechanism to delete those in a single click, maybe I should in a future release.

    Thread Starter tolddsm

    (@tolddsm)

    Thanks, I think it could be a priority for your future release.

    I assume many users who use this debug tool would have already done some sort of customization. Disabling the plugin should restore the config rules to avoid potential conflicts, such as PHP fired via hooks are disabled by DISALLOW_FILE_EDIT.

    Plugin Author Bowo

    (@qriouslad)

    Thanks for the suggestion.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-config rules’ is closed to new replies.