我已经通过composer安装了骨架应用程序,当使用虚拟主机将浏览器指向公共文件夹时,我收到错误:
致命错误:未捕获的异常'Zend \ Loader \ Exception \ InvalidArgumentException',消息'Autoloader class Zend \ Loader \ StandardAutoloader必须在/var/www/vhosts/ddns.net/subdomains/gameotic中实现Zend \ Loader \ SplAutoloader'第91行上的/vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php Zend \ Loader \ Exception \ InvalidArgumentException:Autoloader类Zend \ Loader \ StandardAutoloader必须在/ var / www / vhosts / ddns中实现Zend \ Loader \ SplAutoloader第91行上的.net / subdomains / gameotic / vendor / zendframework / zendframework / library / Zend / Loader / AutoloaderFactory.php调用堆栈:0.0003 635952 1. {main}()/ var / www / vhosts / ddns.net / sububmains / gameotic / public / index.php:0 0.0051 948360 2. Zend \ Mvc \ Application :: init()/var/www/vhosts/ddns.net/subdomains/gameotic/public/index.php:17 0.0304 3051872 3. Zend \ ModuleManager \ ModuleManager-> loadModules()/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:252 0.03 04 3051952 4. Zend \ EventManager \ EventManager->触发器()/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:115 0.0305 3052128 5 .Zend \ EventManager \ EventManager-> triggerListeners()/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:207 0.0311 3078984 6. call_user_func( )/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468 0.0311 3079016 7. Zend \ ModuleManager \ ModuleManager-> onLoadModules()/ var /www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468 0.0311 3079368 8. Zend \ ModuleManager \ ModuleManager-> loadModule()/ var / www / vhosts / ddns.net / subdomains / gameotic / vendor / zendframework / zendframework / library / Zend / ModuleManager / ModuleManager.php:96 0.0319 3091176 9. Zend \ EventManager \ EventManager-> trig ger()/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:174 0.0319 3091216 10. Zend \ EventManager \ EventManager-> triggerListeners() /var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:207 0.0320 3094016 11. call_user_func()/ var / www / vhosts / ddns.net / subdomains / gameotic / vendor / zendframework / zendframework / library / Zend / EventManager / EventManager.php:468 0.0320 3094048 12. Zend \ ModuleManager \ Listener \ AutoloaderListener-> __ invoke()/var/www/vhosts/ddns.net/subdomains /gameotic/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468 0.0320 3095168 13. Zend \ Loader \ AutoloaderFactory :: factory()/var/www/vhosts/ddns.net/subdomains/gameotic/vendor /zendframework/zendframework/library/Zend/ModuleManager/Listener/AutoloaderListener.php:34
我该怎么办?我在Plesk面板中使用Php 5.6(Centos 6.6)
答案 0 :(得分:1)
您的PHP版本和Zend Framework版本不可用。 我已经了解到PHP 5.3.3仅支持版本2.2的Zend Framework,这在Zend Framework文档中并未明确表示。