Search
Other Cache Cleaner questions
Forum

9.1.1PRO-dev2897308 - 500 error

Jacob Hodara's Avatar Jacob Hodara
Hi Peter, you gave this version to help deal with the psr4 cache file. We ran it for a week without issue, on Saturday we got this error.

"RegularLabs\Component\Conditions\Administrator\Model\ItemModel::getGroups(): Return value must be of type array, bool returned"

Entire site went down, we had to disable the plugin.

Any ideas what may have caused this?
Peter van Westen's Avatar Peter van Westen ADMIN
Weird, shouldn't happen.

Try deleting the cache manually (/cache and administrator/cache folders).
If it still gives the error:
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Jacob Hodara's Avatar Jacob Hodara
Peter, the issue happened randomly, no one was working on the site Saturday morning (client's site). CacheCleaner was not triggered manually.

I'm working on logins for you.
Jacob Hodara's Avatar Jacob Hodara
Confidential information:
(hidden)
Jacob Hodara's Avatar Jacob Hodara
Peter, I need to send you SSH Key file. Can't attach it here it seems.
Peter van Westen's Avatar Peter van Westen ADMIN
The Conditions error has nothing to do with Cache Cleaner.
The conditions are used (on your setup) by Advanced Module Manager and ReReplacer.

Please make sure you have your extensions updated.

If you still have the issue, try narrowing it down to what module or ReReplacer condition is causing this.
If you cannot, see if you can give me an (s)ftp account (instead of SSH), that doesn't require a keyfile.
Please post a rating at the Joomla! Extensions Directory
Jacob Hodara's Avatar Jacob Hodara
The issue is so random, we have yet to replicate it. Any tips or advice on how we can narrow down the issue.
Peter van Westen's Avatar Peter van Westen ADMIN
Enable error reporting and debug mode to see if you can trigger the error and see the full error trace.
Please post a rating at the Joomla! Extensions Directory
Jacob Hodara's Avatar Jacob Hodara
Our clients site is security related, he can only offer access with a key file. I can send it to you over email.

For the debug/error reporting, would you know if the output would narrow down a module ID# or a ReReplacer item ID#?
Peter van Westen's Avatar Peter van Westen ADMIN
No, it wouldn't. But it would tell you if it is from Advanced Module Manager or ReReplacer.
Maybe you can already find this information in your php error log files.
Please post a rating at the Joomla! Extensions Directory
Jacob Hodara's Avatar Jacob Hodara
Hi Peter, here is some logs from the time of crash. Could it be a ReReplacer rule that use a RegEx? We're jut not sure why its so random, the site not gone down since Saturday. Our client also said that once he disabled Cache Cleaner plugin the site came back up again.
16-Mar-2024 05:01:10]  [pool linuxsecurity] pid 1472309
script_filename = /var/www/www.linuxsecurity.com-443/html/index.php
[0x00007f2611613ca0] mb_check_encoding() /var/www/www.linuxsecurity.com-443/html/libraries/regularlabs/src/StringHelper.php:153
[0x00007f2611613c30] detectUTF8() /var/www/www.linuxsecurity.com-443/html/libraries/regularlabs/src/RegEx.php:93
[0x00007f2611613b80] preparePattern() /var/www/www.linuxsecurity.com-443/html/libraries/regularlabs/src/RegEx.php:25
[0x00007f2611613aa0] match() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Item.php:261
[0x00007f26116139f0] replaceFinal() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Item.php:251
[0x00007f2611613980] RegularLabs\Plugin\System\ReReplacer\{closure}() /var/www/www.linuxsecurity.com-443/html/libraries/regularlabs/src/StringReplacer.php:248
[0x00007f26116138c0] run() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Item.php:250
[0x00007f2611613840] replaceAsString() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Item.php:60
[0x00007f26116137c0] replace() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Replace.php:107
[0x00007f2611613730] replaceItemList() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Replace.php:85
[0x00007f2611613680] replaceInArea() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/src/Replace.php:25
[0x00007f2611613610] replaceInAreas() /var/www/www.linuxsecurity.com-443/html/plugins/system/rereplacer/rereplacer.php:92
[0x00007f26116135b0] changeFinalHtmlOutput() /var/www/www.linuxsecurity.com-443/html/libraries/regularlabs/src/SystemPlugin.php:139
[0x00007f2611613540] onAfterRender() /var/www/www.linuxsecurity.com-443/html/libraries/src/Plugin/CMSPlugin.php:289
[0x00007f2611613490] Joomla\CMS\Plugin\{closure}() /var/www/www.linuxsecurity.com-443/html/libraries/vendor/joomla/event/src/Dispatcher.php:486
[0x00007f26116133e0] dispatch() /var/www/www.linuxsecurity.com-443/html/libraries/src/Application/EventAware.php:111
[0x00007f2611613300] triggerEvent() /var/www/www.linuxsecurity.com-443/html/libraries/src/Application/CMSApplication.php:1031
[0x00007f2611613270] render() /var/www/www.linuxsecurity.com-443/html/libraries/src/Application/SiteApplication.php:724
[0x00007f26116131c0] render() /var/www/www.linuxsecurity.com-443/html/libraries/src/Application/CMSApplication.php:298
[0x00007f2611613130] execute() /var/www/www.linuxsecurity.com-443/html/includes/app.php:61
Peter van Westen's Avatar Peter van Westen ADMIN
Those logs unfortunately don't show anything about an error or something concerning Conditions.

I think the reason why you think it is solved without Cache Cleaner is that then everything is served from cache, and the cache 'never' gets cleared. It of course also depends on how you have set up Cache Cleaner, and when it does clear the cache.

Unfortunately I can't do much if the issue is not predictably reproducible. Or with a full error backtrace from the logs.

See if you can reproduce it on a clean setup with minimal ReReplacer and Advanced Module Manager items...
Please post a rating at the Joomla! Extensions Directory
Jacob Hodara's Avatar Jacob Hodara
We'll enable debug/error reporting to see if we can get a better trace/log.
I'll report back.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription