Zend Framework 2 Skeleton App FATAL错误 [英] Zend framework 2 Skeleton App FATAL error

查看:72
本文介绍了Zend Framework 2 Skeleton App FATAL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过composer安装了骨骼应用,当将浏览器指向带有虚拟主机的公用文件夹时,我得到了错误:

I've installed skeleton app via composer and when pointing the browser to the public folder with virtual host I get the error:


致命错误:/var/www/vhosts/ddns.net中带有消息 Autoloader类Zend\Loader\StandardAutoloader必须实现Zend\Loader\SplAutoloader的未捕获异常'Zend\Loader\Exception\InvalidArgumentException'第91行的/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php Zend\Loader\Exception\InvalidArgumentException:Autoloader类Zend\Loader\StandardAutoloader必须实现Zend\Loader\ /第91行的/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php中的SplAutoloader调用堆栈:0.0003 635952 1. {main}()/ var /www/vhosts/ddns.net/subdomains/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 30 51872 3. Zend\ModuleManager\ModuleManager-> loadModules()/var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:252 0.0304 3051952 4 Zend\EventManager\EventManager-> trigger()/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-> trigger()/ 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。净/子域/ gameotic /供应商/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/zendfr amework / zendframework / library / Zend / ModuleManager / Listener / AutoloaderListener.php:34

Fatal error: Uncaught exception 'Zend\Loader\Exception\InvalidArgumentException' with message 'Autoloader class Zend\Loader\StandardAutoloader must implement Zend\Loader\SplAutoloader' in /var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php on line 91 Zend\Loader\Exception\InvalidArgumentException: Autoloader class Zend\Loader\StandardAutoloader must implement Zend\Loader\SplAutoloader in /var/www/vhosts/ddns.net/subdomains/gameotic/vendor/zendframework/zendframework/library/Zend/Loader/AutoloaderFactory.php on line 91 Call Stack: 0.0003 635952 1. {main}() /var/www/vhosts/ddns.net/subdomains/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.0304 3051952 4. Zend\EventManager\EventManager->trigger() /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->trigger() /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面板(Centos 6.6)中使用php 5.6

What can I do? I use Php 5.6 in Plesk panel (Centos 6.6)

推荐答案

您的PHP版本和Zend Framework版本不兼容。
我了解到PHP 5.3.3仅支持2.2版以下的Zend Framework,在Zend Framework文档中(显然)未作此说明。

Your PHP version and Zend Framework version are incomatible. I've learned that PHP 5.3.3 only supports Zend Framework up to version 2.2, this is not meantioned (clearly) in the Zend Framework documentation.

这篇关于Zend Framework 2 Skeleton App FATAL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆