致命错误:未捕获错误:类' Sensio \ Bundle \ FrameworkExtraBundle \ EventListener \ HttpCacheListener Symfony

时间:2018-02-01 14:35:30

标签: php symfony

我遇到symfony 2.5.12应用程序的问题。只有在生产版本中我才会收到错误:



admin@00:/home/users/adevo/public_html/przykladowastrona.pl$ php app/console cache:clear --no-warmup --env=prod
PHP Fatal error:  Uncaught Error: Class 'Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener' not found in /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php:145
Stack trace:
#0 /home/users/adevo/public_html/przykladowastrona.pl/app/cache/prod/appProdProjectContainer.php(455): Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->addSubscriberService('sensio_framewor...', 'Sensio\\Bundle\\F...')
#1 /home/users/adevo/public_html/przykladowastrona.pl/app/bootstrap.php.cache(2090): appProdProjectContainer->getEventDispatcherService()
#2 /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(86): Symfony\Component\DependencyInjection\Container->get('event_dispatche...')
#3 /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(124): Symfony\Bundle\FrameworkBundle\Console\Application->do in /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php on line 145

Fatal error: Uncaught Error: Class 'Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener' not found in /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php:145
Stack trace:
#0 /home/users/adevo/public_html/przykladowastrona.pl/app/cache/prod/appProdProjectContainer.php(455): Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->addSubscriberService('sensio_framewor...', 'Sensio\\Bundle\\F...')
#1 /home/users/adevo/public_html/przykladowastrona.pl/app/bootstrap.php.cache(2090): appProdProjectContainer->getEventDispatcherService()
#2 /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(86): Symfony\Component\DependencyInjection\Container->get('event_dispatche...')
#3 /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(124): Symfony\Bundle\FrameworkBundle\Console\Application->do in /home/users/adevo/public_html/przykladowastrona.pl/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php on line 145
admin@00:/home/users/adevo/public_html/przykladowastrona.pl$




当我尝试清除prod版本的缓存时,我也会收到此错误

php app/console cache:clear --no-warmup --env=prod

1 个答案:

答案 0 :(得分:0)

我使用FTP Serwer删除文件夹缓存