ZF2 - Runtimeexception: Module (Zfcuserdoctrineorm) could not be initialized

Asked

Viewed 173 times

0

I just downloaded the Composer installer. This is what I have in my 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.*"
    }

I ran php Composer.php self-update and php Composer.phar install, I was successful.

In my application.config I have the following modules:

  'modules' => array(
        'Base',
        'DoctrineModule',
        'DoctrineORMModule',
        'ZendDeveloperTools',
        'ZfcBase',
        'ZfcUser',
        'ZfcUserDoctrineORM',
        'ZendDeveloperTools',
        'BjyAuthorize',
        'Users',
        'Facebook'
      ),

The problem happens when I try to run my application: it always returns 500 status with stack trace:

 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

I’ve gone over this process a few times, and I always get the same result.

Someone could help me?

1 answer

0


I found the solution. I am maintaining this code, and I saw that the previous developer downloaded outside of Composer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.