neilime / zf2-twb-bundle

Zend Framework module for easy integration of Twitter Bootstrap
http://neilime.github.io/zf2-twb-bundle/
MIT License
143 stars 94 forks source link

While attempting to create formelement(alias: form_element) an invalid factory was registered for this instance type. #172

Closed igor-krupa closed 7 years ago

igor-krupa commented 8 years ago

Same issue was reported (#146) but it was closed without solution.

Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotCreatedException' with message 'While attempting to create formelement(alias: form_element) an invalid factory was registered for this instance type.' in /zend/library/Zend/ServiceManager/AbstractPluginManager.php:209 Stack trace: #0 /zend/library/Zend/ServiceManager/ServiceManager.php(612): Zend\ServiceManager\AbstractPluginManager->createFromFactory('formelement', 'form_element') #1 /zend/library/Zend/ServiceManager/ServiceManager.php(572): Zend\ServiceManager\ServiceManager->doCreate('form_element', 'formelement') #2 /zend/library/Zend/ServiceManager/ServiceManager.php(504): Zend\ServiceManager\ServiceManager->create(Array) #3 /zend/library/Zend/ServiceManager/AbstractPluginManager.php(103): Zend\ServiceManager\ServiceManager->get('form_element', true) #4 /zend/library/Zend/View/Renderer/PhpRenderer.php(37 in /zend/library/Zend/ServiceManager/AbstractPluginManager.php on line 209

neilime commented 8 years ago

Which version of zf2 and zf2-twb-bundle are you using ?

igor-krupa commented 8 years ago

ZF 2.4.9 and TwBundle 2.6.0

neilime commented 8 years ago

Please can you post the entire stacktrace of the error to understand this issue

igor-krupa commented 8 years ago

Well, only this in 1st post.

neilime commented 8 years ago

Hum, If you're using ZF2 the last trace should be index.php. I can't help you to debug if I can't have a look at the full stack trace.