• Resolved Vitzkrieg

    (@vitzkrieg)


    With version 1.5.2, the Debug Log view has a constant spinner and when I refresh the page I notice a Network error. The WP error logs show the error below. I am running WP 6.5.0 in Docker locally.

    [16-Apr-2024 11:34:24 UTC] PHP Fatal error:  Uncaught Exception: Config file is empty. in /var/www/html/wp-content/plugins/debug-log-config-tool/app/vendor/WPConfigTransformer.php:71
    Stack trace:
    #0 /var/www/html/wp-content/plugins/debug-log-config-tool/app/Controllers/ConfigController.php(85): DebugLogConfigTool\vendor\WPConfigTransformer->exists('constant', 'SCRIPT_DEBUG')
    #1 /var/www/html/wp-content/plugins/debug-log-config-tool/app/Controllers/ConfigController.php(90): DebugLogConfigTool\Controllers\ConfigController->exists('SCRIPT_DEBUG')
    #2 /var/www/html/wp-content/plugins/debug-log-config-tool/app/Controllers/SettingsController.php(15): DebugLogConfigTool\Controllers\ConfigController->getValue('SCRIPT_DEBUG')
    #3 /var/www/html/wp-content/plugins/debug-log-config-tool/app/Router.php(98): DebugLogConfigTool\Controllers\SettingsController->get()
    #4 /var/www/html/wp-content/plugins/debug-log-config-tool/app/Router.php(75): DebugLogConfigTool\Router->callAction(Object(DebugLogConfigTool\Controllers\SettingsController), 'get')
    #5 /var/www/html/wp-content/plugins/debug-log-config-tool/app/Classes/AjaxHandler.php(23): DebugLogConfigTool\Router->direct('get_settings', 'GET')
    #6 /var/www/html/wp-includes/class-wp-hook.php(324): DebugLogConfigTool\Classes\AjaxHandler->handleRequest('')
    #7 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #8 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /var/www/html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_dlct_lo...')
    #10 {main}
      thrown in /var/www/html/wp-content/plugins/debug-log-config-tool/app/vendor/WPConfigTransformer.php on line 71
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Vitzkrieg

    (@vitzkrieg)

    Some other errors I’ve noticed:

    [16-Apr-2024 20:17:53 UTC] PHP Warning:  Undefined array key "SCRIPT_DEBUG" in /var/www/html/wp-content/plugins/debug-log-config-tool/app/vendor/WPConfigTransformer.php on line 109
    [16-Apr-2024 20:17:53 UTC] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/debug-log-config-tool/app/vendor/WPConfigTransformer.php on line 109
    Plugin Author Lukman Nakib

    (@pyrobd)

    Thanks for reporting I will fix it asap.
    In the meantime can you let me know if you have script debug constant declared in your wp config file ?

    • This reply was modified 11 months, 1 week ago by Lukman Nakib.
    Thread Starter Vitzkrieg

    (@vitzkrieg)

    define( 'WP_DEBUG', !!getenv_docker('WORDPRESS_DEBUG', '') );

    I think it may have been set to true

    Plugin Author Lukman Nakib

    (@pyrobd)

    I dont think it will work like this it can set value of wp-config.php file constant value like true or false, but not set docker enviroment, I will see if I can enabled support for this. Hope you understand.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Constant spinner – config file missing’ is closed to new replies.