专家:
尝试在我的VPS中运行Symfony应用程序时出现错误消息:
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in /home/mgdatos/public_html/nival7/vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php on line 27
Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING)' in /home/mgdatos/public_html/nival7/vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php:27 Stack trace: #0 {main} Next exception 'Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException' with message 'Circular reference detected for service "ps_pdf.listener", path: "ps_pdf.listener -> ps_pdf.cache".' in /home/mgdatos/public_html/nival7/app/bootstrap.php.cache:2114 Stack trace: #0 /home/mgdatos/public_html/nival7/app/cache/prod/classes.php(2350): Symfony\Component\DependencyInjection\Container->get('ps_pdf.listener') #1 /home/mgdatos/public_html/nival7/app/cache/prod/classes.php(2338): Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->lazyLoad('kernel.controll...') #2 /home/mgdatos/public_html/nival7/app/bootstrap.php.cache(3091): Symfony\Component\EventDispatcher\ContainerAwa in /home/mgdatos/public_html/nival7/app/bootstrap.php.cache on line 2114
你能告诉我一个线索吗?
答案 0 :(得分:0)
谢谢,我不得不升级到5.6 php版本。