Seite 1 von 2
Fatal error: Cannot redeclare make_forum_select()
Verfasst: 15.10.2006 17:43
von baubau
meine User bekommen neuerdings hin und wieder bei Aufruf einiger Topics den Fehler
Code: Alles auswählen
Fatal error: Cannot redeclare make_forum_select() (previously declared in /home/nord/public_html/forum/includes/functions_admin.php:27) in /home/nord/public_html/forum/includes/functions_admin.php on line 27

Verfasst: 15.10.2006 17:50
von Miriam
Konntest Du den Fehler reproduzieren?
Verfasst: 18.01.2007 13:58
von wwwthomasbauerattf
bei mir kommt auch der fehler. was ist da falsch?
Verfasst: 18.01.2007 16:17
von Miriam
Die Funktion make_forum_select() wird mehrmals vorhanden. Da ich nicht weiss, wie das Script, das die Funktion enthält aufgerufen wird, kann ich nur raten: benutze include_once
Verfasst: 18.01.2007 16:37
von wwwthomasbauerattf
aba wo soll ich include_once benutzen
auf der besagten 27 zeile steht das:
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
Verfasst: 18.01.2007 16:43
von nickvergessen
wwwthomasbauerattf hat geschrieben:aba wo soll ich include_once benutzen
Am Anfang der Datei, anstatt:
Code: Alles auswählen
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
z.B.:
Code: Alles auswählen
include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.'.$phpEx);
Verfasst: 18.01.2007 16:47
von wwwthomasbauerattf
in der datei gibts gar kein include
Verfasst: 18.01.2007 16:51
von Olli Oberhausen
Suche in der datei
viewtopic.php nach:
(2 mal vorhanden)
Code: Alles auswählen
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
Ersetze beide durch:
Code: Alles auswählen
include_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
Ausserdem solltest du mal den db maintenance mod installieren, da deine Datenbank durcheinander ist....
Olli
Verfasst: 18.01.2007 16:59
von wwwthomasbauerattf
hab ich geändert aber in
http://bauerthomas.ba.funpic.de/Forum/viewtopic.php?t=1
kommt noch immer
Fatal error: Cannot redeclare make_forum_select() (previously declared in /usr/export/www/vhosts/funnetwork/hosting/bauerthomas/Forum/includes/functions_admin.php:27) in /usr/export/www/vhosts/funnetwork/hosting/bauerthomas/Forum/includes/functions_admin.php on line 27
Verfasst: 18.01.2007 17:01
von nickvergessen
verlink doch mal die admin_function.php KB:81