Fehlermeldung bei der Startseite des Boards

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
matzepipe

Fehlermeldung bei der Startseite des Boards

Beitrag von matzepipe »

Hallo,

sobald ich mein board über die url aufrufen will, kommt folgende Fehlermeldung:


Parse error: parse error, unexpected '/' in /www/htdocs/pipe/phpBB/includes/functions.php on line 437

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/pipe/phpBB/includes/functions.php:437) in /www/htdocs/pipe/phpBB/includes/sessions.php on line 293

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/pipe/phpBB/includes/functions.php:437) in /www/htdocs/pipe/phpBB/includes/sessions.php on line 294


Ich habe dann mal die anegegeben stellen rausgesucht:
die betreffende Zeile ist farblich unterlegt:

}

return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * ($tz+date("I")))), $translate) : @gmdate($format, $gmepoch + (3600 * ($tz+date("I"))));
}

//
// Pagination routine, generates
// page number sequence
//
/-- mod : profile cp ------------------------------------------------------------------------------// here we added
// , $start_field='start'
//-- modify

function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE, $start_field='start'//-- fin mod : profile cp)
{
global $lang;

$total_pages = ceil($num_items/$per_page);

if ( $total_pages == 1 )
{
return '';






und die sessions.php


//
// Delete expired sessions
//
$expiry_time = $current_time - $board_config['session_length'];
$sql = "DELETE FROM " . SESSIONS_TABLE . "
WHERE session_time < $expiry_time
AND session_id <> '$session_id'";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error clearing sessions table', '', __LINE__, __FILE__, $sql);
}

setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
}

return $userdata;
}
}
}



Kann mir da wer weiterhelfen????
Markocat
Mitglied
Beiträge: 245
Registriert: 16.05.2002 18:57
Wohnort: Bad Dürrenberg
Kontaktdaten:

Beitrag von Markocat »

such mal die stelle

Code: Alles auswählen

/-- mod : profile cp ------------------------------------------------------------------------------// here we added
und ändere die mal so

Code: Alles auswählen

//-- mod : profile cp ------------------------------------------------------------------------------// here we added
matzepipe

Beitrag von matzepipe »

hat sowiet funktioniert:

ich erhalte allerdings eine neue fehlermeldung


Parse error: parse error, unexpected T_GLOBAL, expecting ')' in /www/htdocs/pipe/phpBB/includes/functions.php on line 444

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/pipe/phpBB/includes/functions.php:444) in /www/htdocs/pipe/phpBB/includes/sessions.php on line 181

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/pipe/phpBB/includes/functions.php:444) in /www/htdocs/pipe/phpBB/includes/sessions.php on line 182


auszug aus linie 444 (farblich unterlegt), sessions.php siehe oben:

//
// Pagination routine, generates
// page number sequence
//
//-- mod : profile cp ------------------------------------------------------------------------------
// here we added
// , $start_field='start'
//-- modify

function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE, $start_field='start'//-- fin mod : profile cp)
{
global $lang;

$total_pages = ceil($num_items/$per_page);

if ( $total_pages == 1 )
{
return '';
}

$on_page = floor($start_item / $per_page) + 1;

$page_string = '';
if ( $total_pages > 10 )
{
$init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages;

for($i = 1; $i < $init_page_max + 1; $i++)
{


gruß matze
Markocat
Mitglied
Beiträge: 245
Registriert: 16.05.2002 18:57
Wohnort: Bad Dürrenberg
Kontaktdaten:

Beitrag von Markocat »

ändere mal die Zeile

Code: Alles auswählen

function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE, $start_field='start'//-- fin mod : profile cp)
in die

Code: Alles auswählen

function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE, $start_field='start')
//-- fin mod : profile cp --------------------------------------------------------------------------
matzepipe

Beitrag von matzepipe »

Danke, das hat auch funktioniert!!!
auch wenns nervig ist...ich glaub ich hab hier was vom quelltext zu viel entfernt...er zeigt mir folgende fehlermeldung:


Parse error: parse error, unexpected ',', expecting ')' in /www/htdocs/pipe/phpBB/includes/page_header.php on line 535



Quelltextauszug 'L_SEARCH_SELF' => $lang['Search_your_posts'],
//-- mod : profile cp ------------------------------------------------------------------------------
//-- delete
// 'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
// 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
//-- add
'L_WHOSONLINE' => get_users_online_color(),
//-- fin mod : profile cp ----
, '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
, '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
'L_ImpressumMOD1' => $lang['ImpressumMOD1'],
// Intro + Portal MOD START



Die Stelle hab ich wieder markiert:
Markocat
Mitglied
Beiträge: 245
Registriert: 16.05.2002 18:57
Wohnort: Bad Dürrenberg
Kontaktdaten:

Beitrag von Markocat »

lösche einfach mal die zwei Zeilen

Code: Alles auswählen

, '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'), 
, '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'), 
matzepipe

Beitrag von matzepipe »

DANKE ES FUNKTIONIERT


:P :P


echt super unterstützung!!!!!!!
matzepipe

Beitrag von matzepipe »

DANKE ES FUNKTIONIERT


:P :P


echt super unterstützung!!!!!!!
Antworten

Zurück zu „phpBB 2.0: Mod Support“