No log messages appearing—am I missing something?
-
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.
- The topic ‘No log messages appearing—am I missing something?’ is closed to new replies.