我有一个问题,我有一个应用程序使用zend franmework 2和doctrine.when我添加zendDevelopperTools我无法登录,应用程序停止工作。 我已将此添加到index.php:
define('REQUEST_MICROTIME', microtime(true));
我将ZendDevelopperTools复制到供应商目录,然后像这样编辑application.config.php:
'modules' => array(
'DoctrineModule',
'DoctrineORMModule',
'Application',
'ZendDeveloperTools',
),
'module_listener_options' => array(
'module_paths' => array(
'./module',
'./vendor',
),
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),
然后将ZendDeveloperTools/config/zenddevelopertools.local.php.dist
复制到
./config/autoload/zenddevelopertools.local.php
。
错误:
Additional information:
Zend\Session\Exception\RuntimeException
File:
C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\Session\SessionManager.php:111
Message:
Session validation failed
Stack trace:
#0 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\Session\AbstractContainer.php(78): Zend\Session\SessionManager->start()
#1 C:\wamp\www\mycoreg\module\Application\src\Application\Controller\AdminController.php(731): Zend\Session\AbstractContainer->__construct('mySession')
#2 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(83): Application\Controller\AdminController->tableauDeBordAction()
#3 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#4 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#5 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#6 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\Mvc\DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#8 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#10 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 C:\wamp\www\mycoreg\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(309): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 C:\wamp\www\mycoreg\public\index.php(13): Zend\Mvc\Application->run()
#13 {main}
我错过了什么吗?任何帮助,将不胜感激。
感谢。