nachdem ich mal wieder ins Error_log des Apachen geschaut habe, laufen mir dort verdammt viele Fehler vom Modul "Menutree 2.3" auf. Es handelt sich um eine Zikula 1.2.4 Umgebung.
Der Fehler ist dieser:
Code
Zikula Error: Undefined variable: html in /var/www/html/zikula3/modules/menutree/pntemplates/plugins/function.menucssplayprodrop.php on line 73 for page /zikula3/index.php?module=Pagesetter&tid=29, referer: http://meinedomain.de/zikula3/index.php?module=Pagesetter&tid=28
Es handelt sich also anscheinend um einen Fehler im Code von Menutree (habe da keine Hand angelegt). Dort scheint eine undefinierte Variable "html" zu sein in Zeile 73.
Der code der "function.menucssplayprodrop.php" sieht so aus::
Code
function _htmlListCssplayprodrop($tab, $level=0, $currentclass, $iehacks=true, $iframe=false)
{
// The current requested URL stripped of domain and any subdirs
$request = str_replace(pnGetBaseURI(), '', pnGetCurrentURI());
$currentLink = str_replace(pnGetBaseURL(), '', $tab['item']['href']);
if (substr($currentLink,0,1) != '/') {
$currentLink = '/'.$currentLink;
}
if ($level==0) {
Zeile 73 == $html .= '<li class="top' . (($currentLink == $request)?' '.$currentclass:'') . '">';
} else {
$html = '<li>';
}
$html .= '<a class="';
if ($level==0) {
$html .= 'top_link';
} elseif (!empty($tab['nodes'])) {
$html .= 'fly';
}
$html .= !empty($tab['item']['className']) ? ' '.$tab['item']['className'] : '';
$html .= '"';
$html .= ' href="'.DataUtil::formatForDisplay($tab['item']['href']).'"';
$html .= !empty($tab['item']['title']) ? ' title="'.$tab['item']['title'].'"' : ' title=""';
$html .= '>';
if ($level==0) {
$html .= ((!empty($tab['nodes'])) ? '<span class="down">' : '<span>') . DataUtil::formatForDisplay($tab['item']['name']) . '</span>';
} else {
$html .= DataUtil::formatForDisplay($tab['item']['name']);
}
{
// The current requested URL stripped of domain and any subdirs
$request = str_replace(pnGetBaseURI(), '', pnGetCurrentURI());
$currentLink = str_replace(pnGetBaseURL(), '', $tab['item']['href']);
if (substr($currentLink,0,1) != '/') {
$currentLink = '/'.$currentLink;
}
if ($level==0) {
Zeile 73 == $html .= '<li class="top' . (($currentLink == $request)?' '.$currentclass:'') . '">';
} else {
$html = '<li>';
}
$html .= '<a class="';
if ($level==0) {
$html .= 'top_link';
} elseif (!empty($tab['nodes'])) {
$html .= 'fly';
}
$html .= !empty($tab['item']['className']) ? ' '.$tab['item']['className'] : '';
$html .= '"';
$html .= ' href="'.DataUtil::formatForDisplay($tab['item']['href']).'"';
$html .= !empty($tab['item']['title']) ? ' title="'.$tab['item']['title'].'"' : ' title=""';
$html .= '>';
if ($level==0) {
$html .= ((!empty($tab['nodes'])) ? '<span class="down">' : '<span>') . DataUtil::formatForDisplay($tab['item']['name']) . '</span>';
} else {
$html .= DataUtil::formatForDisplay($tab['item']['name']);
}
Kann mal jemand schauen der Menutree einsetzt, ob bei ihm auch dieser Fehler auftritt?
Oder kann direkt jemand sagen wie das behoben werden kann?
Dieses Problem bremmst zikula bei mir recht stark aus, da Menutree bei jedem Klick mit dabei ist.
gruss
peter
...neulich in der konsole:
Code
[root@linuxcluster var]# man woman
No manual entry for woman
No manual entry for woman

Kommentare