我正在尝试部署我的网站,但即使经过 2 天的大量搜索,也无法找出导致此错误的原因。
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