Weirdly all I see in the logs is this:
[22-Aug-2024 13:49:32 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /srv/admin/htdocs/apcu.php:840
Stack trace:
#0 /srv/admin/htdocs/apc.php(4): require()
#1 {main}
thrown in /srv/admin/htdocs/apcu.php on line 840
I have disabled APC in PHP.ini to see if that could be the issue, but the error only occurs once, no matter how many times I load the page, so I don't think this is the case.
I felt sure I saw twig errors previously but I don't see any today.
Ok I copied the site onto my server so I could get better information, and I turned on XDebug.
I now get a bit more info.
Error
Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames
Previous exceptions
Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames (0)
home/okanessquareball/public_html/libraries/gantry5/src/classes/Gantry/Component/Menu/AbstractMenu.php
$alias = Gantry::basename($path);
$key = $map && isset($map[$alias]['id']) ? $map[$alias]['id'] : $path;
if (!isset($this->items[$key]) || !$this->items[$key]->hasChildren()) {
return;
}
// Ordering in menu item itself.
$item = $this->items[$key];
if (!$ordering) {
$this->setGroupToChildren($item);
return;
}
$order = [];
$newMap = [];
if ($this->isAssoc($ordering)) {
foreach ($ordering as $key => $value) {
if ($map) {
$newMap = isset($map[$key]['children']) ? $map[$key]['children'] : [];
This does somehow point to it being a Gantry issue I think.