Roots Discourse

How to get a better stack trace when errors occur in Wordpress

Hi,

when an error occurs in my Wordpress install, I see something like the following:

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: syntax error, unexpected ';' in /home/.../wp-content/uploads/cache/3ba2b9e37fdda4ad03bb0fd989a1705775dbe336.php:21 Stack trace: #0 /home/.../wp-content/themes/ambea-2020/vendor/illuminate/view/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('....', Array) #1 /home/.../wp-content/themes/ambea-2020/vendor/illuminate/view/View.php(142): Illuminate\View\Engines\CompilerEngine->get('...', Array) #2 /home/.../wp-content/themes/ambea-2020/vendor/illuminate/view/View.php(125): Illuminate\View\View->getContents() #3 /home/.../wp-content/themes/ambea-2020/vendor/illuminate/view/View.php(90): Illuminate\View\View->renderContents() #4 /home/.../wp-content/uploads/cache/46d540248560f567295443281ace161bf0e15ca7.php(3): Illuminate\View\View->render in /home/…/wp-content/uploads/cache/3ba2b9e37fdda4ad03bb0fd989a1705775dbe336.php on line 21

Which is not really helpful since it refers to cached files.
Is it possible to enable a better stack trace which actually refers to the actual file template and code line?

Thanks

Maybe not the exact answer you are looking for but maybe Woops can be of help. How to disable caching of Blade templates on development enviroment?