由于mongodb错误Symfony 2,页面无法收费

时间:2013-08-07 10:04:21

标签: mongodb symfony

我做了一个清晰的缓存后,我刷新了我的页面,但这次浏览器看起来他没有找到任何东西或者他在某个地方被阻止,因为它显示在他正在搜索或加载页面的地址附近但是它保持这样长时间甚至几个小时我都可以告诉。我查了错误日志,我发现这个错误,但我是新手,我没有解释如何解决它们:

  [Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP Fatal error:  Doctrine\\ODM\\MongoDB\\Hydrator\\HydratorFactory::getHydratorFor(): Failed opening required 'C:/wamp/www/Symfony/app/cache/dev/doctrine/odm/mongodb/Hydrators\\dcBundleDocumentCategoryHydrator.php' (include_path='.;C:\\php\\pear') in C:\\wamp\\www\\Symfony\\vendor\\doctrine\\mongodb-odm\\lib\\Doctrine\\ODM\\MongoDB\\Hydrator\\HydratorFactory.php on line 152, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP Stack trace:, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   1. {main}() C:\\wamp\\www\\Symfony\\web\\app_dev.php:0, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   2. Symfony\\Component\\HttpKernel\\Kernel->handle() C:\\wamp\\www\\Symfony\\web\\app_dev.php:25, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   3. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() C:\\wamp\\www\\Symfony\\app\\bootstrap.php.cache:411, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() C:\\wamp\\www\\Symfony\\app\\bootstrap.php.cache:1101, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() C:\\wamp\\www\\Symfony\\app\\bootstrap.php.cache:975, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   6. call_user_func_array() C:\\wamp\\www\\Symfony\\app\\bootstrap.php.cache:1001, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   7. bul\\CrsBundle\\Controller\\CrssController->AllAction() C:\\wamp\\www\\Symfony\\app\\bootstrap.php.cache:1001, referer: http://localhost/Symfony/web/app_dev.php/gps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   8. Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller->render() C:\\wamp\\www\\Symfony\\src\\bul\\CrsBundle\\Controller\\CrsController.php:38, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP   9. Symfony\\Bundle\\TwigBundle\\TwigEngine->renderResponse() C:\\wamp\\www\\Symfony\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller.php:106, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  10. Symfony\\Bundle\\TwigBundle\\Debug\\TimedTwigEngine->render() C:\\wamp\\www\\Symfony\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\TwigBundle\\TwigEngine.php:108, referer: http://localhost/Symfony/web/app_dev.php/groups/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  11. Symfony\\Bundle\\TwigBundle\\TwigEngine->render() C:\\wamp\\www\\Symfony\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\TwigBundle\\Debug\\TimedTwigEngine.php:52, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  12. Symfony\\Bridge\\Twig\\TwigEngine->render() C:\\wamp\\www\\Symfony\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\TwigBundle\\TwigEngine.php:79, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  13. Twig_Template->render() C:\\wamp\\www\\Symfony\\vendor\\symfony\\symfony\\src\\Symfony\\Bridge\\Twig\\TwigEngine.php:53, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  14. Twig_Template->display() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:6039, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  15. Twig_Template->displayWithErrorHandling() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:6032, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  16. __TwigTemplate_a9e184d390123fbf02da00b3fedfe39c->doDisplay() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:6051, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  17. Twig_Template->display() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\twig\\a9\\e1\\84d390123fbf02da00b3fedfe39c.php:25, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  18. Twig_Template->displayWithErrorHandling() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:6032, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  19. __TwigTemplate_d7c51e8360cebc4fc46062c39aca8151->doDisplay() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:6051, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  20. Twig_Template->displayBlock() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\twig\\d7\\c5\\1e8360cebc4fc46062c39aca8151.php:120, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  21. call_user_func() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:5999, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  22. __TwigTemplate_a9e184d390123fbf02da00b3fedfe39c->block_body() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:5999, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  23. Doctrine\\ODM\\MongoDB\\Cursor->current() C:\\wamp\\www\\Symfony\\app\\cache\\dev\\classes.php:60, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  24. Doctrine\\ODM\\MongoDB\\UnitOfWork->getOrCreateDocument() C:\\wamp\\www\\Symfony\\vendor\\doctrine\\mongodb-odm\\lib\\Doctrine\\ODM\\MongoDB\\Cursor.php:118, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  25. Doctrine\\ODM\\MongoDB\\Hydrator\\HydratorFactory->hydrate() C:\\wamp\\www\\Symfony\\vendor\\doctrine\\mongodb-odm\\lib\\Doctrine\\ODM\\MongoDB\\UnitOfWork.php:2540, referer: http://localhost/Symfony/web/app_dev.php/grps/
[Wed Aug 07 12:08:34.948850 2013] [:error] [pid 7800:tid 1016] [client ::1:56347] PHP  26. Doctrine\\ODM\\MongoDB\\Hydrator\\HydratorFactory->getHydratorFor() C:\\wamp\\www\\Symfony\\vendor\\doctrine\\mongodb-odm\\lib\\Doctrine\\ODM\\MongoDB\\Hydrator\\HydratorFactory.php:419, referer: http://localhost/Symfony/web/app_dev.php/grps/

2 个答案:

答案 0 :(得分:7)

问题解决了:我手动删除了缓存,然后我重新启动了我的电脑。现在可以使用了

答案 1 :(得分:0)

您的错误说:

  

无法打开所需的'C:/ wamp / www / Symfony / app / cache / dev / doctrine / odm / mongodb / Hydrators \ dcBundleDocumentCategoryHydrator.php'(include_path ='。; C:\ php \ pear')

你有这个档案吗?