首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >zend2:网站部署错误

zend2:网站部署错误
EN

Stack Overflow用户
提问于 2013-05-24 15:17:34
回答 1查看 965关注 0票数 0

我正在尝试部署我的网站,但即使在2天后,大量的搜索也找不出是什么导致了这个错误。

代码语言:javascript
复制
 Uncaught exception 'Zend\ModuleManager\Listener\Exception\InvalidArgumentException' with message 'Config being merged must be an array, implement the Traversable interface, or be an instance of Zend\Config\Config. integer given.' in vendor/zendframework/zendframework/library/Zend/ModuleManager/Listener/ConfigListener.php:324 Stack trace: 
#0 vendor/zendframework/zendframework/library/Zend/ModuleManager/Listener/ConfigListener.php(355): Zend\ModuleManager\Listener\ConfigListener->addConfig('config/autoload...', 1) 
#1 vendor/zendframework/zendframework/library/Zend/ModuleManager/Listener/ConfigListener.php(147): Zend\ModuleManager\Listener\ConfigListener->addConfigByPath('config/autoload...', 'glob_path') 
#2 [internal function]: Zend\ModuleManager\Listener\ConfigListener->onLoadModulesPost(Object(Zend\ModuleManager\ModuleEvent))  
#3 vendor/zendframework/zendframework/library/Zend/ModuleManager/Listener/ConfigListener.php on line 324
EN

回答 1

Stack Overflow用户

发布于 2014-09-29 08:56:50

这也发生在我身上,问题是我的一个配置文件没有返回任何东西。我无意中将我的local.php文件设为空,因为它返回的是空数组。

确保您的配置文件local.php、global.php、module.config.php返回数组(即使是空的)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16729584

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档