Error on tutorial example

For programming and general questions on Zend Framework

Error on tutorial example

Postby dgarozzo on Mon Nov 19, 2012 6:41 pm

I follow tutorial instruction
but when i go on zf2-tutorial.localhost
the page return this message

Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\InvalidArgumentException' with message '$initializer should be callable.' in /Users/Nico/__Lavoro/Progetti/MosaicoAdv/zf2tutorial/httpdocs/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:336 Stack trace: #0 /Users/Nico/__Lavoro/Progetti/MosaicoAdv/zf2tutorial/httpdocs/vendor/zendframework/zendframework/library/Zend/Mvc/Service/ServiceManagerConfig.php(144): Zend\ServiceManager\ServiceManager->addInitializer() #1 /Users/Nico/__Lavoro/Progetti/MosaicoAdv/zf2tutorial/httpdocs/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(119): Zend\Mvc\Service\ServiceManagerConfig->configureServiceManager(Object(Zend\ServiceManager\ServiceManager)) #2 /Users/Nico/__Lavoro/Progetti/MosaicoAdv/zf2tutorial/httpdocs/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(240): Zend\ServiceManager\ServiceManager->__construct(Object(Zend\Mvc\Service\ServiceManagerConfig)) #3 /Users/Nico/__Lavoro/Progetti/ in /Users/Nico/__Lavoro/Progetti/MosaicoAdv/zf2tutorial/httpdocs/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 336

How can i fix it?
Thank you
dgarozzo
 
Posts: 1
Joined: Mon Nov 19, 2012 6:38 pm

Re: Error on tutorial example

Postby zone1980 on Wed Dec 05, 2012 11:02 am

Hi!

The same error at me:
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\InvalidArgumentException' with message '$initializer should be callable.' in D:\!ApacheHTDocs\zf2_Apps\TestApplication\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php:336 Stack trace: #0 D:\!ApacheHTDocs\zf2_Apps\TestApplication\vendor\zendframework\zendframework\library\Zend\Mvc\Service\ServiceManagerConfig.php(144): Zend\ServiceManager\ServiceManager->addInitializer() #1 D:\!ApacheHTDocs\zf2_Apps\TestApplication\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(119): Zend\Mvc\Service\ServiceManagerConfig->configureServiceManager(Object(Zend\ServiceManager\ServiceManager)) #2 D:\!ApacheHTDocs\zf2_Apps\TestApplication\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(239): Zend\ServiceManager\ServiceManager->__construct(Object(Zend\Mvc\Service\ServiceManagerConfig)) #3 D:\!ApacheHTDocs\zf2_Apps\TestApplication\public\index.php(12): Zend\Mvc\Application::init(Array) #4 {main} in D:\!ApacheHTDocs\zf2_Apps\TestApplication\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php on line 336

Running on:
Windows 7 Ultimate,
Apache 2.2
PHP 5.4.8
zone1980
 
Posts: 1
Joined: Wed Dec 05, 2012 11:00 am

Re: Error on tutorial example

Postby fl0rian77 on Sun Dec 16, 2012 5:55 pm

I have the same Problem... :(
On my localhost everythings ok, but on Server-Enviroment it throws this exception...
fl0rian77
 
Posts: 2
Joined: Sun Dec 16, 2012 5:54 pm

Re: Error on tutorial example

Postby fl0rian77 on Sun Dec 16, 2012 5:59 pm

The eAccelerator was the problem. Everythings fine now ;)
fl0rian77
 
Posts: 2
Joined: Sun Dec 16, 2012 5:54 pm

Re: Error on tutorial example

Postby lisbeth01 on Thu Dec 20, 2012 6:14 am

Are there many errors and gliches in Zend that can slow down my learning process or is it a very stable platform?
lisbeth01
 
Posts: 1
Joined: Thu Dec 20, 2012 6:11 am


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 2 guests

cron