Seite 1 von 1

Fehlermeldung bei der Startseite des Boards

Verfasst: 15.05.2004 13:38
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????

Verfasst: 15.05.2004 13:52
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

Verfasst: 15.05.2004 14:07
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

Verfasst: 15.05.2004 14:13
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 --------------------------------------------------------------------------

Verfasst: 15.05.2004 14:37
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:

Verfasst: 15.05.2004 14:47
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>'), 

Verfasst: 15.05.2004 15:18
von matzepipe
DANKE ES FUNKTIONIERT


:P :P


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

Verfasst: 15.05.2004 15:39
von matzepipe
DANKE ES FUNKTIONIERT


:P :P


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