F
F
frontendo2017-07-09 11:08:09
symfony
frontendo, 2017-07-09 11:08:09

Why is Symfony not finding directories on the server?

uploaded freshly installed symfony 3.3 to the hosting, everything is as it should, in folders. Locally on OpenServer (win 7) everything works, but on the server there is such an error

Fatal error: Uncaught Twig_Error_Loader: The "/home/u12342nm2/domains/u12342nm2.ha002.t.justns.ru\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views" directory does not exist ("/ home/u12342nm2/domains/u12342nm2.ha002.t.justns.ru\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views"). in /home/u12342nm2/domains/u12342nm2.ha002.t.justns.ru/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:101 Stack trace: #0 /home/u12342nm2/domains/u12342nm2.ha002 .t.justns.ru/var/cache/prod/appProdProjectContainer.php(2629): Twig_Loader_Filesystem->addPath('/home/u12342nm2...', 'Framework') #1 /home/u12342nm2/domains/u12342nm2. ha002.t.justns.ru/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(341): appProdProjectContainer->

does not find the directory, although it exists. + the second moment, when requested, it creates a folder joxi.ru/krD0qYDC00lOMr - because it probably does not find the one that exists. I guess the problem is in the slashes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
frontendo, 2017-07-09
@frontendo

The situation was resolved by installing symfony directly on the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question