Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZF2 skeleton application is throwing 500 error

When trying to deploy the skeleton application using the following commands:

git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install

I get 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 /home/web/www/zftests/ZendSkeletonApplication/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:302\nStack trace:\n#0 /home/web/www/zftests/ZendSkeletonApplication/vendor/zendframework/zendframework/library/Zend/ServiceManager/Config.php(126): Zend\\ServiceManager\\ServiceManager->addAbstractFactory('Zend\\Cache\\Serv...')\n#1 /home/web/www/zftests/ZendSkeletonApplication/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 /home/web/www/zftests/ZendSkeletonApplication/vendor/zendframework/zendframework/library in /home/web/www/zftests/ZendSkeletonApplication/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 302

like image 964
cyber2200 Avatar asked Jan 27 '26 19:01

cyber2200


1 Answers

This worked just fine. The problem is that there are two files missing from the ZF2.5 Framework.

  'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
  'Zend\Log\LoggerAbstractServiceFactory',

Thanks, Gary

like image 78
g-man Avatar answered Jan 31 '26 06:01

g-man



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!