Seite 1 von 1

Probleme mit Attachment MOD

Verfasst: 11.09.2004 11:36
von sybex.ath.cx
sers...

habs grade installt und nach dem testen ne felhermeldung von sys bekommen von einer der dateien die von programm also vom mod mitgeliefert werden =>

Fatal error: Cannot redeclare attach_faq_include() (previously declared in E:\WWW-Server\board\attach_mod\includes\functions_includes.php:31) in E:\WWW-Server\board\attach_mod\includes\functions_includes.php on line 31

Hier der quelltext:

//
// Include the FAQ-File (faq.php)
//
function attach_faq_include($lang_file) // => line 31!!!
{
global $phpbb_root_path, $board_config, $phpEx, $faq, $attach_config;

if (intval($attach_config['disable_mod']))
{
return;
}

if ($lang_file == 'lang_faq')
{
if (!file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.'.$phpEx))
{
include($phpbb_root_path . 'language/lang_english/lang_faq_attach.'.$phpEx);
}
else
{
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq_attach.' . $phpEx);
}
}
}

Verfasst: 13.09.2004 11:07
von Markus67
Hi ...

Kannst du bitte mal die gesamte Fehlermeldung posten .. die war doch bestimmt länger ...

Markus

Hi, hab auch denselben Fehler bekommen

Verfasst: 13.01.2005 14:32
von _miss_k
... und die Fehlermeldung ist leider nicht länger als das hier:

Fatal error: Cannot redeclare attach_faq_include() (previously declared in /server/phpBB2/attach_mod/includes/functions_attach.php:31) in /server/phpBB2/attach_mod/includes/functions_attach.php on line 31

Hab auch bereits alle Anpassungen überprüft, ist alles korrekt.

Würd mich freuen, wenn mir wer weiterhelfen könnte :)

/k.

Verfasst: 13.01.2005 15:57
von rabbit
welche MODs hast du sonst noch verbaut? und ist der debug-modus aktiviert?
KB:debugmode

Verfasst: 13.01.2005 16:29
von Schumi
Der Debug Modus bringt hier nichts, da die Fehlermeldung von php kommt, nicht von phpBB.
Verlinke bitte mal die gesamte functions_includes.php.