Aegir weirdness

Posted on 2004-12-20 18:42:51 EET.

I couldn't understand why Kaukola had weird problems with Aegir.
The problem was that Aegir for some unknown reason does not display left frame menu correctly. Instead of "News & Articles" You have some number like 5 or 7.

Unfortunatelly Henri is not the only one person affected by this "bug".
You may find the same behaviour described in this link.

I also wonder , cause this bug seems to affect also MidCOM engine, producing error log:
Class de_linkm_taviewer_midcom does not exist.
Interesting. Both servers affected are running RedHat.
I looked at Aegir's snippet "/AegirCore/lib/menu_functions"
28:                 if (ereg("([0-9]+),([^,]+),(.*)", $menudir->name, $temparray)) {
29: $tempmenu["position"] = $temparray[1];
30: $tempmenu["name"] = $temparray[2];
31: $tempmenu["title"] = aegir_loc($temparray[3]);
32: } elseif (ereg("([0-9]+),(.*)", $menudir->name, $temparray)) {
33: $tempmenu["position"] = $temparray[1];
34: $tempmenu["name"] = $temparray[2];
35: $tempmenu["title"] = aegir_loc($temparray[2]);
36: } else {
37: $tempmenu["position"] = 99;
38: $tempmenu["name"] = $menudir->name;
39: $tempmenu["title"] = aegir_loc($menudir->name);
40: }
Looks like this is known PHP bug and points directly to regex used to compile PHP. If not , someone should take a look at Aegir's code
and fix regex expression ASAP.

Sorry for such brief and fast information , but few days before christmass there is no thing you can focus on ;)


Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS