Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
APCU error on property accessor#25819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Sometime I see this kind of error in my logs:apache error logs:Got error 'PHP message: PHP Notice: apcu_fetch(): Error at offset 0 of 426 bytes in .../vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/ApcuAdapter.php on line 53Followed by a symfony logUncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getLength() on null" at .../vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php line 194Once this problem occured theses errors are repeated until the apcu cache is cleared (which can take hours).As this problem occured randomly, I can not repeat it when I want.Serveur Debian 9 / apache 2.4.25 with php-fpm / PHP 7.0.27 / apcu 5.1.3
nicolas-grekas commentedJan 17, 2018
The issue is in the Cache component to me. isHit should return false when this happens in the first place. So 👎 for the patch as it is, but definitely 👍 for the report, thanks for it. We now need to figure out a proper way to fix the issue in Cache. |
nicolas-grekas commentedJan 17, 2018
…s-grekas)This PR was merged into the 3.3 branch.Discussion----------[Cache] Fix handling of apcu_fetch() edgy behavior| Q | A| ------------- | ---| Branch? | 3.3| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | -| License | MIT| Doc PR | -Replaces#25819. Cannot be tested as I don't know how to trigger this behavior.Commits-------c707c4c [Cache] Fix handling of apcu_fetch() edgy behavior
arno14 commentedJan 18, 2018
As this happen randomly, I can not recreate the bug. |
Sometime I see this kind of error in my logs:
apache error logs:
Got error 'PHP message: PHP Notice: apcu_fetch(): Error at offset 0 of 426 bytes in .../vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/ApcuAdapter.php on line 53
Followed by a symfony log
Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getLength() on null" at .../vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php line 194
Once this problem occured theses errors are repeated until the apcu cache is cleared (which can take hours).
As this problem occured randomly, I can not repeat it when I want.
Serveur Debian 9 / apache 2.4.25 with php-fpm / PHP 7.0.27 / apcu 5.1.3