Sometimes I get a "HTTP ERROR 500" on loading a page.
The first time it happened the very first load of the website. Looking in the log the error is:
PHP Fatal error: APCuIterator::__construct(): Could not compile regular expression: [bdb9e21fd62195c66628e3356990c7b9::bdb9e21fd62195c66628e3356990c7b9::sp::stash_default::dic::di\\definition\\group_tools::*] in /vendor/tedivm/stash/src/Stash/Driver/Apc.php on line 123, referer: https://mydomain/admin
if I comment line 123 it can load the page. And everything goes on then even if I decomment the line 123. But sometime the error returns, always when I flush the cache.
It also works if I leave
$it = new \APCUIterator('user',$keyRegex, \APC_ITER_KEY, $chunkSize);
instead of
$it = $this->apcu ? new \APCUIterator($keyRegex, \APC_ITER_KEY, $chunkSize) : new \APCIterator('user', $keyRegex, \APC_ITER_KEY, $chunkSize);
I cannot figure out how to set up the problem, can you help me, please?
Giorgio
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- Florian DANIEL aka Facyla@Facyla

Florian DANIEL aka Facyla - 0 likes
You must log in to post replies.Never tried APC but maybe a new release of vendor can fix this issue.
Try to test it: replace a new version with existing vendor\tedivm\stash\
Hello,
I encounter the same error on a brand new install of Elgg 3.1.3 (Ubuntu 18.04, PHP 7.2, nginx) :
The error appeared after upgrading from a brand new 3.1.2 install (which broke because of the DB bug corrected in 3.1.3), from zip packaged version.
I also read https://elgg.org/discussion/view/2740445/cli-composer-install-issue and particularly https://github.com/Elgg/Elgg/issues/12289 and made some tests with various Stash versions (original packaged tedivm Stash version (0.14), but also with latest version 0.15.1).
It also works if i comment line 123 in Stash.php, but that is not a sustainable option... i still can't figure what's happening?
Any other feedbacks or information on this ?