Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony - Fatal error: Uncaught exception 'Twig_Error_Loader'

Tags:

twig

symfony

I want to deploy a symfony project to production but I get the following exception

Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'The "/home/technqoc/public_html\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views" directory does not exist.' in /home/technqoc/public_html/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:93

I suspect it's because of the way the server is trying to access the directory. How can I change the backslash to forward slash in the directory path?

like image 729
CodeSlave Avatar asked Jan 08 '23 22:01

CodeSlave


1 Answers

Simply clear any file and folder in cache directory.

like image 196
saeed asalisaf Avatar answered Jan 10 '23 20:01

saeed asalisaf