• Resolved bigcloudmedia

    (@bigcloudmedia)


    I installed the plugin for the first time a couple months back on a project I was working on and was impressed by how well it worked, but every site I’ve installed it on since it just sits there and says there’s nothing in the log, which has me perplexed and a bit disappointed, as I spend a *lot* of time in the WP Debug logs.

    Using the most reccent site as an example, I set up the plugin to diagnose an issue with a recent site migration where a plugin is causing the theme to crash on the front end. It read that error logging was turned off, so I flipped the switch to turn it on and proceeded to reproduce the error; nothing happened.

    Wondering if I needed to activate WP_DEBUG manually, I added the following to wp-config.php:

    define('WP_DEBUG', TRUE);           // Turns on error tracking
    define('WP_DEBUG_DISPLAY', FALSE);  // Suppresses displaying errors on site
    define('WP_DEBUG_LOG', TRUE);       // Records errors in /wp-content/debug.log (unless other location specified)

    Which created the debug.log file and added an entry with the fatal error shown in the code block below:

    [04-Mar-2024 10:25:02 UTC] PHP Fatal error:  Uncaught LogicException: The template folder "theme" was not found. in wp-content/plugins/age-gate/vendor/league/plates/src/Template/Folders.php:60
    Stack trace:
    #0 wp-content/plugins/age-gate/vendor/league/plates/src/Template/Name.php(111): League\Plates\Template\Folders->get('theme')
    #1 wp-content/plugins/age-gate/vendor/league/plates/src/Template/Name.php(83): League\Plates\Template\Name->setFolder('theme')
    #2 wp-content/plugins/age-gate/vendor/league/plates/src/Template/Name.php(45): League\Plates\Template\Name->setName('theme::partials...')
    #3 wp-content/plugins/age-gate/vendor/league/plates/src/Template/Template.php(83): League\Plates\Template\Name->__construct(Object(League\Plates\Engine), 'theme::partials...')
    #4 wp-content/plugins/age-gate/vendor/league/plates/src/Engine.php(291): League\Plates\Template\Template->__con in wp-content/plugins/age-gate/vendor/league/plates/src/Template/Folders.php on line 60

    The error does not show up in the plugin, however.

    Is there some critical setup step that I’m missing? I *really* want to use this plugin to assist with these sorts of tasks.

    • This topic was modified 8 months, 3 weeks ago by bigcloudmedia.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bowo

    (@qriouslad)

    Your wp-config should contain the following lines, which would be added automatically when you toggle on debuggin in Debug Log Manager (DLM):

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );
    define( ‘WP_DEBUG_LOG’, ‘/path/to/debug.log’ );

    Notice thath WP_DEBUG_LOG needs to point to the debug.log file path. Try deleting those lines in wp-config, and then disable and re-enable error logging in DLM and see if you now have the file path (in wp-confign) to the debug.log created by DLM in a custom location, so it’s a bit more secure.

    If that doesn’t work, you can try adding the path to your current debug.log for WP_DEBUG_LOG.

    Thread Starter bigcloudmedia

    (@bigcloudmedia)

    Ah, that seems to have fixed it. Thank you very much!

    Plugin Author Bowo

    (@qriouslad)

    Great to hear that. Hope you find DLM useful in your dev work! Please consider leaving a quick review for it. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No log messages appearing—am I missing something?’ is closed to new replies.