"Call to a member function hasProperty() on boolean" 重置密码后

"Call to a member function hasProperty() on boolean" after resetting password

我正在使用 Symfony 2.6.6 以及最新的 FOSUserBundle 和 aequasi/cache-bundle(以及更多捆绑包,在 github 上找到我的 composer.json(link 下面))

除密码重置表单外,一切都很顺利。

请求新密码时,您会收到一封带有令牌 link 的电子邮件。然后单击 link,您将被定向到重置表单,您可以在其中输入新密码。然后提交此表单时,会发生这种情况:

我收到 500 服务器错误以及 503 服务不可用:

[01-May-2015 09:09:36 Europe/Berlin] PHP Fatal error:  Call to a member function hasProperty() on boolean in /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/PropertyMetadata.php on line 62
[01-May-2015 09:09:36 Europe/Berlin] PHP Stack trace:
[01-May-2015 09:09:36 Europe/Berlin] PHP   1. {main}() /srv/www.linuxcounter.net/web/app.php:0
[01-May-2015 09:09:36 Europe/Berlin] PHP   2. Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() /srv/www.linuxcounter.net/web/app.php:33
[01-May-2015 09:09:36 Europe/Berlin] PHP   3. Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:207
[01-May-2015 09:09:36 Europe/Berlin] PHP   4. Symfony\Component\HttpKernel\HttpCache\HttpCache->pass() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:278
[01-May-2015 09:09:36 Europe/Berlin] PHP   5. Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:261
[01-May-2015 09:09:36 Europe/Berlin] PHP   6. Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:60
[01-May-2015 09:09:36 Europe/Berlin] PHP   7. Symfony\Component\HttpKernel\Kernel->handle() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:490
[01-May-2015 09:09:36 Europe/Berlin] PHP   8. Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle() /srv/www.linuxcounter.net/app/bootstrap.php.cache:2384
[01-May-2015 09:09:36 Europe/Berlin] PHP   9. Symfony\Component\HttpKernel\HttpKernel->handle() /srv/www.linuxcounter.net/app/bootstrap.php.cache:3140
[01-May-2015 09:09:36 Europe/Berlin] PHP  10. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /srv/www.linuxcounter.net/app/bootstrap.php.cache:2991
[01-May-2015 09:09:36 Europe/Berlin] PHP  11. call_user_func_array:{/srv/www.linuxcounter.net/app/bootstrap.php.cache:3029}() /srv/www.linuxcounter.net/app/bootstrap.php.cache:3029
[01-May-2015 09:09:36 Europe/Berlin] PHP  12. Syw\Front\MainBundle\Controller\ResettingController->resetAction() /srv/www.linuxcounter.net/app/bootstrap.php.cache:3029
[01-May-2015 09:09:36 Europe/Berlin] PHP  13. Symfony\Component\Form\Form->handleRequest() /srv/www.linuxcounter.net/src/Syw/Front/MainBundle/Controller/ResettingController.php:149
[01-May-2015 09:09:36 Europe/Berlin] PHP  14. Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler->handleRequest() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:498
[01-May-2015 09:09:36 Europe/Berlin] PHP  15. Symfony\Component\Form\Form->submit() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php:116
[01-May-2015 09:09:36 Europe/Berlin] PHP  16. Symfony\Component\EventDispatcher\ImmutableEventDispatcher->dispatch() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:665
[01-May-2015 09:09:36 Europe/Berlin] PHP  17. Symfony\Component\EventDispatcher\EventDispatcher->dispatch() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php:43
[01-May-2015 09:09:36 Europe/Berlin] PHP  18. Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() /srv/www.linuxcounter.net/app/cache/prod/classes.php:2126
[01-May-2015 09:09:36 Europe/Berlin] PHP  19. call_user_func:{/srv/www.linuxcounter.net/app/cache/prod/classes.php:2193}() /srv/www.linuxcounter.net/app/cache/prod/classes.php:2193
[01-May-2015 09:09:36 Europe/Berlin] PHP  20. Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener->validateForm() /srv/www.linuxcounter.net/app/cache/prod/classes.php:2193
[01-May-2015 09:09:36 Europe/Berlin] PHP  21. Symfony\Component\Validator\Validator\LegacyValidator->validate() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php:64
[01-May-2015 09:09:36 Europe/Berlin] PHP  22. Symfony\Component\Validator\Validator\RecursiveValidator->validate() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/LegacyValidator.php:52
[01-May-2015 09:09:36 Europe/Berlin] PHP  23. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validate() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveValidator.php:116
[01-May-2015 09:09:36 Europe/Berlin] PHP  24. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateObject() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:144
[01-May-2015 09:09:36 Europe/Berlin] PHP  25. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateClassNode() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:354
[01-May-2015 09:09:36 Europe/Berlin] PHP  26. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateInGroup() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:562
[01-May-2015 09:09:36 Europe/Berlin] PHP  27. Symfony\Component\Form\Extension\Validator\Constraints\FormValidator->validate() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:863
[01-May-2015 09:09:36 Europe/Berlin] PHP  28. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validate() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php:54
[01-May-2015 09:09:36 Europe/Berlin] PHP  29. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateObject() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:144
[01-May-2015 09:09:36 Europe/Berlin] PHP  30. Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateClassNode() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:354
[01-May-2015 09:09:36 Europe/Berlin] PHP  31. Symfony\Component\Validator\Mapping\PropertyMetadata->getPropertyValue() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php:586
[01-May-2015 09:09:36 Europe/Berlin] PHP  32. Symfony\Component\Validator\Mapping\MemberMetadata->getReflectionMember() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/PropertyMetadata.php:53
[01-May-2015 09:09:36 Europe/Berlin] PHP  33. Symfony\Component\Validator\Mapping\PropertyMetadata->newReflectionMember() /srv/www.linuxcounter.net/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/MemberMetadata.php:235

您可以试试这个 hgere:https://www.linuxcounter.net/resetting/request(您可能需要先注册一个帐户)

应用程序的代码可以在这里找到:https://github.com/alexloehner/linuxcounter.new

奇怪的是:本地一切正常,密码重置和生产模式也是如此。

好的...在删除我最近两天的更改并一个接一个地读取它们之后,包括在每次更改后重新启动内存缓存,它现在可以工作了。

所以我想,我可能只是忘了重新启动内存缓存....