Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Issue on Master - Uncaught exception 'Zend\\ServiceManager\\Exception\\InvalidArgumentException' #184

Closed
aaronholmes opened this issue May 3, 2013 · 3 comments

Comments

@aaronholmes
Copy link

After trying to pull from master and get the example running I am receiving the following error:

PHP Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\InvalidArgumentException' with message 'Provided abstract factory must be the class name of an abstract factory or an instance of an AbstractFactoryInterface.' in /var/www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:302\nStack trace:\n#0 /var/www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ServiceManager/Config.php(126): Zend\ServiceManager\ServiceManager->addAbstractFactory('Zend\Cache\Serv...')\n#1 /var/www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ModuleManager/Listener/ServiceListener.php(223): Zend\ServiceManager\Config->configureServiceManager(Object(Zend\ServiceManager\ServiceManager))\n#2 [internal function]: Zend\ModuleManager\Listener\ServiceListener->onLoadModulesPost(Object(Zend\ModuleManager\ModuleEvent))\n#3 /var/www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(472): call_user_func(Array, Object(Zend\ModuleManager\Module in /var/www/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 302

This is running on Ubuntu 13.04 Apache 2.2.22 PHP 5.4.9. I'm using the sample http conf and newest version of composer.

Pulling release tag 2.1 of the skeleton app works fine.

@Nokardron
Copy link

It's out of order after commit that was on Thursday, May 2.
To get rid of it, edit module.config.php which is located in module/Application/config, go to line 56 and delete/comment the following lines:
'abstract_factories' => array(
'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
'Zend\Log\LoggerAbstractServiceFactory',
),

It should works now. No idea about after effects.

@aaronholmes
Copy link
Author

Thank you Nokardron! I'll give it a try and see if I run into any other issues.

@weierophinney
Copy link
Member

Fixed with #186

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants