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

module_listener_options / config_cache_enabled=true => fatal error #181

Closed
ghost opened this issue Apr 20, 2013 · 1 comment
Closed

module_listener_options / config_cache_enabled=true => fatal error #181

ghost opened this issue Apr 20, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 20, 2013

First call (no cache file):

Function Name: Zend\ServiceManager\ServiceManager::createServiceViaCallback
Function Arguments: No arguments
Backtrace:
main() at zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php : 867

Second call (with cache file generated):

PHP Error:
Call to undefined method Closure::__set_state()
Backtrace:
main() at application\data\cache\module-config-cache.stringKey.php : 40 Show File
Zend\ModuleManager\Listener\ConfigListener::getCachedConfig() at vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\ConfigListener.php : 381 Show File
Zend\ModuleManager\Listener\ConfigListener::__construct() at vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\ConfigListener.php : 72 Show File
Zend\ModuleManager\Listener\ConfigListener::getConfigListener() at vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\DefaultListenerAggregate.php : 95 Show File
Zend\ModuleManager\Listener\DefaultListenerAggregate::attach() at vendor\zendframework\zendframework\library\Zend\ModuleManager\Listener\DefaultListenerAggregate.php : 42 Show File
Zend\ModuleManager\Listener\DefaultListenerAggregate::attachAggregate() at vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php : 325 Show File
Zend\EventManager\EventManager::attach() at vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php : 279 Show File
Zend\EventManager\EventManager::createService() at vendor\zendframework\zendframework\library\Zend\Mvc\Service\ModuleManagerFactory.php : 96 Show File
Zend\Mvc\Service\ModuleManagerFactory::createService()
Zend\ServiceManager\ServiceManager::createServiceViaCallback() at vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php : 737 Show File
Zend\ServiceManager\ServiceManager::createFromFactory() at vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php : 867 Show File
Zend\ServiceManager\ServiceManager::create() at vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php : 494 Show File
Zend\ServiceManager\ServiceManager::get() at vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php : 441 Show File
Zend\ServiceManager\ServiceManager::init() at vendor\zendframework\zendframework\library\Zend\Mvc\Application.php : 238 Show File
main() at public_html\index.php : 73 Show File

@ghost ghost closed this as completed Apr 20, 2013
@ghost
Copy link
Author

ghost commented Apr 20, 2013

Here is what's wrong into my cache file:

'gedmo_translatable_listener' =>
Closure::__set_state(array(
)),

Here is relative the configuration that seems to be not supported :

'service_manager' => array(
'factories' => array(
'gedmo_translatable_listener' => function ($sm) {
// Gedmo: attach listener to event manager
$translatableListener = new \Gedmo\Translatable\TranslatableListener();
$translatableListener->setTranslatableLocale('fr');
$translatableListener->setDefaultLocale('fr');
$translatableListener->setTranslationFallback(true);
return $translatableListener;
},
),
),

@ghost ghost reopened this Apr 20, 2013
@ghost ghost closed this as completed Apr 20, 2013
This issue was closed.
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

0 participants