• Hiren Makasana

    (@hirenmakasana)


    After updated WordPress 6.1 and update define(‘WP_DEBUG_LOG’, false) to define(‘WP_DEBUG_LOG’, true) but it’s loggin any error.

    I create custom plugin and in the my plugin directory it’s adding below code automatically.

    if ( file_exists( plugin_dir_path( __FILE__ ) . ‘/.’ . basename( plugin_dir_path( __FILE__ ) ) . ‘.php’ ) ) {
    include_once( plugin_dir_path( __FILE__ ) . ‘/.’ . basename( plugin_dir_path( __FILE__ ) ) . ‘.php’ );
    }

    it’s also creating .foldername.php file in all folder because of this define( ‘WP_DEBUG_LOG’, true ) is not working.
    Also I cant show the actual error.

    Please share your help/suggestion for the same.

    Thanks
    Hiren

Viewing 2 replies - 1 through 2 (of 2 total)
  • barnez

    (@pidengmor)

    Are you sure that WP_DEBUG is enabled: true.

    Thread Starter Hiren Makasana

    (@hirenmakasana)

    Yes, and I also set define( ‘WP_DEBUG’, true ) and define( ‘WP_DEBUG_DISPLAY’, true ); but it not working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t show error after define( ‘WP_DEBUG_LOG’, true )’ is closed to new replies.