Fehlermeldung <- Was tun?
Verfasst: 16.10.2005 13:17
Hallo,
nach Einbau des Intro-Portal 1.50 Update habe ich im EasyInstaller folgende Fehlermeldung erhalten:
Kritischer Fehler
FINDE FEHLGESCHLAGEN: Konnte in Zeile [portal.php] nicht finden:
// SWITCH NAVIGATION START
if( $introportalmod_config['navigation_active'] == "1" )
{
$sql = "SELECT * FROM " . $table_prefix . "introportalmodnav fe ORDER BY navsort_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_MESSAGE, 'Could not get introportalmodnav data', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
eval('$nav_name = ' . $row['nav_name'] . ';');
$template->assign_block_vars("topicrownav", array(
'nav_link' => $row['nav_link'],
'nav_name' => $nav_name)
);
}
$template->assign_block_vars('switch_navigation_active', array());
}
// SWITCH NAVIGATION END
MOD Skript Linie #86 :: FAQ :: Report
Danach habe ich noch die Installationsdatei.php im Hauptverzeichniss ausgeführt, kann aber nicht erkennen was nicht funktionieren soll. Sieht eigentlich alles ganz gut aus. Was meint Ihr dazu?
Ich habe mir auch die besagte Stelle portal.php datei angesehen aber die ist wesentlich länger und ich wüsste auch nicht was ich dort ändern sollte. Siehe selbst:
// SWITCH NAVIGATION START
if( $introportalmod_config['navigation_active'] == "1" )
{
$sql_level = ($userdata['user_id']==ANONYMOUS) ? ANONYMOUS : (($userdata['user_level']==ADMIN) ? MOD : (($userdata['user_level']==MOD) ? ADMIN : $userdata['user_level']));
$sql = "SELECT * FROM " . $table_prefix . "introportalmodnav
WHERE link_active
AND (IF(link_level_type,IF(link_level_type=1,'$sql_level'<=link_level,IF(link_level_type=2,'$sql_level'>=link_level,'$sql_level'<>link_level)),link_level='$sql_level') OR link_id=0)
ORDER BY link_cat , link_sub, link_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get navigation information', '', __LINE__, __FILE__, $sql);
}
$links = $db->sql_fetchrowset($result);
$i=0;
if (!empty($links))
{
while (list ($id,$link) = each($links))
{
eval('$link_name = ' . $link['link_name'] . ';');
if ($link['link_id']==0)
{
if ($link['link_sub']==0)
{
// new cat
// only show if, link pressent in this cat
$s=1;
$found = FALSE;
while ($links[$id+$s][link_cat]==$link[link_cat] && $s<sizeof($links))
{
$found = ($links[$id+$s++][link_id]!=0) ? TRUE : $found;
}
if ($found)
{
if ($i==0)
{
$i=3;
$template->assign_block_vars('row', array());
} else
{
$i--;
}
$template->assign_block_vars('row.cat', array(
'CAT_NAME' => $link_name));
}
} else
{
// only show if, LINK pressent in this SUB
$s=1;
$found = FALSE;
while ($links[$id+$s][link_sub]==$link[link_sub] && $s<sizeof($links))
{
$found = ($links[$id+$s++][link_id]!=0) ? TRUE : $found;
}
if ($found)
{
$template->assign_block_vars('row.cat.sub', array(
'SUB_NAME' => $link_name));
}
}
} else
{
$row_color = $theme['td_color1'];
$row_class = $theme['td_class1'];
$template->assign_block_vars('row.cat.sub.link', array(
'LINK_NAME' => $link_name,
'LINK_URL' => $link['link_url'],
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class));
}
}
} else
{
$template->assign_block_vars('row', array());
$template->assign_block_vars('row.cat', array(
'CAT_NAME' => $lang['No_links']));
}
if (!($template->_tpldata['row.'][0]))
{
$template->assign_block_vars('row', array());
$template->assign_block_vars('row.cat', array('CAT_NAME' => $lang['No_links']));
}
$template->assign_block_vars('switch_navigation_active', array());
}
// SWITCH NAVIGATION END
Weiß Jemand was zu tun ist?
Grüsse
P.S. es sind schon einige Beiträge wegen diesem Thema hier gewesen aber die waren für mich leider nicht ergiebig.
nach Einbau des Intro-Portal 1.50 Update habe ich im EasyInstaller folgende Fehlermeldung erhalten:
Kritischer Fehler
FINDE FEHLGESCHLAGEN: Konnte in Zeile [portal.php] nicht finden:
// SWITCH NAVIGATION START
if( $introportalmod_config['navigation_active'] == "1" )
{
$sql = "SELECT * FROM " . $table_prefix . "introportalmodnav fe ORDER BY navsort_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_MESSAGE, 'Could not get introportalmodnav data', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
eval('$nav_name = ' . $row['nav_name'] . ';');
$template->assign_block_vars("topicrownav", array(
'nav_link' => $row['nav_link'],
'nav_name' => $nav_name)
);
}
$template->assign_block_vars('switch_navigation_active', array());
}
// SWITCH NAVIGATION END
MOD Skript Linie #86 :: FAQ :: Report
Danach habe ich noch die Installationsdatei.php im Hauptverzeichniss ausgeführt, kann aber nicht erkennen was nicht funktionieren soll. Sieht eigentlich alles ganz gut aus. Was meint Ihr dazu?
Ich habe mir auch die besagte Stelle portal.php datei angesehen aber die ist wesentlich länger und ich wüsste auch nicht was ich dort ändern sollte. Siehe selbst:
// SWITCH NAVIGATION START
if( $introportalmod_config['navigation_active'] == "1" )
{
$sql_level = ($userdata['user_id']==ANONYMOUS) ? ANONYMOUS : (($userdata['user_level']==ADMIN) ? MOD : (($userdata['user_level']==MOD) ? ADMIN : $userdata['user_level']));
$sql = "SELECT * FROM " . $table_prefix . "introportalmodnav
WHERE link_active
AND (IF(link_level_type,IF(link_level_type=1,'$sql_level'<=link_level,IF(link_level_type=2,'$sql_level'>=link_level,'$sql_level'<>link_level)),link_level='$sql_level') OR link_id=0)
ORDER BY link_cat , link_sub, link_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get navigation information', '', __LINE__, __FILE__, $sql);
}
$links = $db->sql_fetchrowset($result);
$i=0;
if (!empty($links))
{
while (list ($id,$link) = each($links))
{
eval('$link_name = ' . $link['link_name'] . ';');
if ($link['link_id']==0)
{
if ($link['link_sub']==0)
{
// new cat
// only show if, link pressent in this cat
$s=1;
$found = FALSE;
while ($links[$id+$s][link_cat]==$link[link_cat] && $s<sizeof($links))
{
$found = ($links[$id+$s++][link_id]!=0) ? TRUE : $found;
}
if ($found)
{
if ($i==0)
{
$i=3;
$template->assign_block_vars('row', array());
} else
{
$i--;
}
$template->assign_block_vars('row.cat', array(
'CAT_NAME' => $link_name));
}
} else
{
// only show if, LINK pressent in this SUB
$s=1;
$found = FALSE;
while ($links[$id+$s][link_sub]==$link[link_sub] && $s<sizeof($links))
{
$found = ($links[$id+$s++][link_id]!=0) ? TRUE : $found;
}
if ($found)
{
$template->assign_block_vars('row.cat.sub', array(
'SUB_NAME' => $link_name));
}
}
} else
{
$row_color = $theme['td_color1'];
$row_class = $theme['td_class1'];
$template->assign_block_vars('row.cat.sub.link', array(
'LINK_NAME' => $link_name,
'LINK_URL' => $link['link_url'],
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class));
}
}
} else
{
$template->assign_block_vars('row', array());
$template->assign_block_vars('row.cat', array(
'CAT_NAME' => $lang['No_links']));
}
if (!($template->_tpldata['row.'][0]))
{
$template->assign_block_vars('row', array());
$template->assign_block_vars('row.cat', array('CAT_NAME' => $lang['No_links']));
}
$template->assign_block_vars('switch_navigation_active', array());
}
// SWITCH NAVIGATION END
Weiß Jemand was zu tun ist?
Grüsse
P.S. es sind schon einige Beiträge wegen diesem Thema hier gewesen aber die waren für mich leider nicht ergiebig.