=5.3.3", "zf-commons-6ren">
gpt4 book ai didi

php - ZF2 - 运行时异常 : Module (ZfcUserDoctrineORM) could not be initialized

转载 作者:行者123 更新时间:2023-12-03 09:05:49 26 4
gpt4 key购买 nike

只需从 Composer 下载安装程序。这就是我在 composer.json 上的内容:

"require": {
"php": ">=5.3.3",
"zf-commons/zfc-user": "dev-master",
"zendframework/zendframework": "2.3.*",
"zendframework/zend-developer-tools":"dev-master",
"doctrine/doctrine-orm-module":"dev-master",
"bjyoungblood/bjy-authorize": "1.4.*"
}

执行命令 php composer.php self-update 和 php install composer.phar,成功。

在我的 application.config 中有以下模块:
'modules' => array(
'Base',
'DoctrineModule',
'DoctrineORMModule',
'ZendDeveloperTools',
'ZfcBase',
'ZfcUser',
'ZfcUserDoctrineORM',
'ZendDeveloperTools',
'BjyAuthorize',
'Users',
'Facebook'
),

当我尝试运行我的应用程序时会出现问题:总是返回带有堆栈跟踪的状态 500:
Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (ZfcUserDoctrineORM) could not be initialized.' in /home/triangulum/workspace-php/apegueme/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:195
Stack trace:
#0 /home/triangulum/workspace-php/apegueme/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php(169): Zend\ModuleManager\ModuleManager->loadModuleByName(Object(Zend\ModuleManager\ModuleEvent))
#1 /home/triangulum/workspace-php/apegueme/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php(96): Zend\ModuleManager\ModuleManager->loadModule('ZfcUserDoctrine...')
#2 [internal function]: Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent))
#3 /home/triangulum/workspace-php/apegueme/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent))
#4 /home/triangulum/workspace-ph in /home/triangulum/workspace-php/apegueme/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php on line 195

已经重做了几次这个过程,总是得到相同的结果。

有人可以帮助我吗?

最佳答案

我找到了解决方案。
我正在提供此维护代码,并看到以前的开发人员从 Composer 下载了。

关于php - ZF2 - 运行时异常 : Module (ZfcUserDoctrineORM) could not be initialized,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32953623/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com