I'm new to the Joomla forums and I hope that I'm posting enough info and I'm right in here.
So, here's my "Bug":
When trying to add a new Menu Item with the Menu Manager, I get this error in Joomla 1.0.:
Code: Select all
Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 4057 bytes) in /path/to/my/website/includes/joomla.php on line 2964
I've tried this on 3 different websites, hosted by 3 different companies.
On an 1&1 Virtual Server with a memory_limit of 32MB it works. On a webspace from http://www.all-inkl.com with memory_limit of 40 MB it does not work. And on a http://www.kontent.de webspace with 10 MB it doesn't work also.
Please don't tell me to change the memory_limit in the php.ini, because I can't do that. What makes me think is that it works with 32MB memory_limit, but it does not with 40MB. What could be the reason?
Is there an error in this function?
Code: Select all
function mosTreeRecurse( $id, $indent, $list, &$children, $maxlevel=100, $level=0, $type=1 ) {
if (@$children[$id] && $level <= $maxlevel) {
foreach ($children[$id] as $v) {
$id = $v->id;
if ( $type ) {
$pre = '<sup>L</sup> ';
$spacer = '. ';
} else {
$pre = '- ';
$spacer = ' ';
}
if ( $v->parent == 0 ) {
$txt = $v->name;
} else {
$txt = $pre . $v->name;
}
$pt = $v->parent;
$list[$id] = $v;
$list[$id]->treename = "$indent$txt";
$list[$id]->children = count( @$children[$id] );
$list = mosTreeRecurse( $id, $indent . $spacer, $list, $children, $maxlevel, $level+1, $type );
}
}
return $list;
}
Has anyone an idea what to do?
Regards,
Chris