• Hey, i am trying to troubleshoot about my wordpress. When i migrate my wordpress to another domain or localhost, debugging works fine. Thats probably about some core files i’ve made changes or some plugin did. When i migrate website i don’t deactivate any plugins but debugging still works. Here is the command lists what i added to wp-config.php but did not get any response.

    defined( 'WP_DEBUG' ) or defined( 'WP_DEBUG', TRUE );
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', true);
    error_reporting(E_ALL);
    ini_set('display_errors', 1);

    writing these codes above “Happy blogging bla bla..” line.
    Tried to deactivate all plugins, did not work.
    Tried to call wp_debug_mode() by manual, website got down.

    it also does not create a error-log file. it creates on migrated wordpress but not in original wordpress. definetly i should change something but can not find what.

    What else i can try to fix it?

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    Thats probably about some core files i’ve made changes

    As the adage goes, don’t modify core files (unless you know what you are doing in there and are aware of the limitations and drawbacks this imposes). Modifications can cause:
    – security risks,
    – performance degradation,
    – broken plugins/themes,
    – you will lose all changes when you next update the WordPress, etc.

    Therefore, if there are no hook present in a function you want to modify, it’s better to copy the function you need and change it in your Child Theme or plugin, rather than modifying the core files directly.

    WordPress has documentation on debug at See: https://www.ads-software.com/support/article/debugging-in-wordpress/

Viewing 1 replies (of 1 total)
  • The topic ‘WP_DEBUG does not work no matter what’ is closed to new replies.