当我使用其他计算机访问app_dev.php时出错。
错误1:
注意:require():1。h-> opened_path = [null] h-> filename = [/ var / www / trunk / app /../ vendor / symfony / src / Symfony / Component / ClassLoader第1197行/var/www/trunk/app/bootstrap.php.cache中的/DebugUniversalClassLoader.php]
错误2:
注意:第1197行的/var/www/trunk/app/bootstrap.php.cache中的require():apc_cache_find [1182224]
错误3:
注意:require():1。h-> opened_path = [null] h-> filename = [/ var / www / trunk / app /../ vendor / symfony / src / Symfony / Component / HttpKernel第55行/var/www/trunk/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php中的/Debug/ErrorHandler.php]
错误4:
注意:第55行的/var/www/trunk/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php中的require():apc_cache_find [1051245]致命错误:带有消息的未捕获异常'ErrorException'
错误5:
注意:require():1。h-> opened_path = [null] h-> filename = [/ var / www / trunk / app /../ vendor / symfony / src / Symfony / Component / HttpKernel / var / www / trunk / vendor / symfony / src / Symfony / Component中的/var/www/trunk/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php第55行中的/Debug/ExceptionHandler.php] /HttpKernel/Debug/ErrorHandler.php:67
堆栈追踪:
堆栈跟踪:#0 /var/www/trunk/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php(55):Symfony \ Component \ HttpKernel \ Debug \ ErrorHandler-> handle(8,'require():1。h ...','/ var / www / trunk / ...',55,数组)
堆栈跟踪:#1 /var/www/trunk/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php(55):Symfony \ Component \ ClassLoader \ DebugUniversalClassLoader :: loadClass()
堆栈跟踪:#2 [内部函数]:Symfony \ Component \ ClassLoader \ DebugUniversalClassLoader-> loadClass('Symfony \ Compone ...')
堆栈追踪:#3 /var/www/trunk/app/bootstrap.php.cache(491):spl_autoload_call('Symfony \ Compone ...')
第67行的堆栈跟踪:#4 / var / www / trunk / in /var/www/trunk/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php
在config.php上,没关系,app.php上的错误500
我如何解决此通知?
答案 0 :(得分:0)
尝试composer install
和app/console cache:clear
答案 1 :(得分:0)
试试这个
sudo rm -rf var/*
sudo chown -R username:www-data main-dir/
sudo chmod -R 777 var
sudo rm -rf vendor
composer install