現在symfony2でアプリケーションを作っているものです。
ローカルで完成したのでロリポップの本番サーバーにアプリケーションをアップロードしたのですが、下記のようなエラーが出てしまいます。
Fatal error: Class Twig_Loader_Filesystem contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Twig_LoaderInterface::getSource) in /home/users/0/main.jp-kazutaka/web/yotei-kun/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 17
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Error: Class Twig_Loader_Filesystem contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Twig_LoaderInterface::getSource) in /home/users/0/main.jp-kazutaka/web/yotei-kun/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:17 Stack trace: #0 {main} Next Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "twig.controller.exception", path: "twig.controller.exception -> twig -> twig.loader". in /home/users/0/main.jp-kazutaka/web/yotei-kun/app/bootstrap.php.cache:2226 Stack trace: #0 /home/users/0/main.jp-kazutaka/web/yotei-kun/app/cache/prod/classes.php(2577): Symfony\Component\DependencyInjection\Container->get('twig.controller...') #1 /home/users/0/main.jp-kazutaka/web/yotei-kun/app/cache/prod/classes.php(2194): Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->createController('twig.controller...') #2 /home/users/0/mai in /home/users/0/main.jp-kazutaka/web/yotei-kun/app/bootstrap.php.cache on line 2226
ローカル環境ではこのようなエラーは出ないのですが、ロリポップのサーバーにアップロードした時のみこういったエラーが出てしまいます。
ロリポップではPHP7.1のCGI版を使っています。
どなたか解決方法がわかる方、ご教授いただけないでしょうか。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/02/10 13:22