Parse error: parse error, unexpected '}' xxx /includes/funct
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.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Eine Neuinstallation von phpBB 2.0 wird auf phpBB.de nicht mehr unterstützt.
Siehe auch Entwicklungs-Ende von phpBB 2.0 - Auswirkungen auf phpBB.de
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.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Eine Neuinstallation von phpBB 2.0 wird auf phpBB.de nicht mehr unterstützt.
Siehe auch Entwicklungs-Ende von phpBB 2.0 - Auswirkungen auf phpBB.de
-
- Mitglied
- Beiträge: 73
- Registriert: 17.05.2007 20:06
- Wohnort: Bayern
- Kontaktdaten:
Parse error: parse error, unexpected '}' xxx /includes/funct
Hallo, ich habe nach einem manuellen Update folgendes Problem beim Aufrufen der update_to_latest.php.
Parse error: parse error, unexpected '}' in /homepages/22/d182454210/htdocs/treffpunkt-fitness/includes/functions_admin.php on line 51
in Zeile 51 steht nur eine Klammer.
Danke für Support
Parse error: parse error, unexpected '}' in /homepages/22/d182454210/htdocs/treffpunkt-fitness/includes/functions_admin.php on line 51
in Zeile 51 steht nur eine Klammer.
Danke für Support
€dit: Klammer also ( oder ) oder {oder eben die besagte } ?
Übersetzt heisst ja auch die meldung das diese Klammer da mehr oder weniger kein Bezug hat. Überprüfe mal bitte deine function_admin weiter oben, vllt hast du da eine doppelt hinein kopiert. Passiert manchmal oder aber es wurde ausversehen weiter oben eine gelöscht.
Übersetzt heisst ja auch die meldung das diese Klammer da mehr oder weniger kein Bezug hat. Überprüfe mal bitte deine function_admin weiter oben, vllt hast du da eine doppelt hinein kopiert. Passiert manchmal oder aber es wurde ausversehen weiter oben eine gelöscht.
Falls Du den Fehler nicht finden kannst dan verlinke doch mal deine functions_admin.php
Eine PHP-Datei zum Download bereitstellen
Eine PHP-Datei zum Download bereitstellen
Ich installiere euch MODs, Styles und richte euch einen Forum. Wenn Interessiert per PN melden.
Bilder Hochladen : http://multi-hoster.com
Bilder Hochladen : http://multi-hoster.com
-
- Mitglied
- Beiträge: 73
- Registriert: 17.05.2007 20:06
- Wohnort: Bayern
- Kontaktdaten:
Also doch die Klammer, die ist aber bei der alten, nicht modifizierten Datei auch vorhanden.
so sieht meine functions_admin.php im moment aus. Ich habe die Zeile 51 und meine Klammer mit Ausrufezeichen markiert. Weiß jemand wo der Fehler ist ?
Code: Alles auswählen
global $db, $userdata, $lang;
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$sql = 'SELECT f.forum_id, f.forum_name
FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$forum_list = '';
while( $row = $db->sql_fetchrow($result) )
{
if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
{
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
}
}
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';
return $forum_list;
} HIER IST MEINE ZEILE 51 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
// Synchronise functions for forums/topics
//
function sync($type, $id = false)
{
global $db;
switch($type)
{
case 'all forums':
$sql = "SELECT forum_id
FROM " . FORUMS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get forum IDs', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
sync('forum', $row['forum_id']);
}
break;
case 'all topics':
$sql = "SELECT topic_id
FROM " . TOPICS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
sync('topic', $row['topic_id']);
}
break;
case 'forum':
$sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total
FROM " . POSTS_TABLE . "
WHERE forum_id = $id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$last_post = ( $row['last_post'] ) ? $row['last_post'] : 0;
$total_posts = ($row['total']) ? $row['total'] : 0;
}
else
{
$last_post = 0;
$total_posts = 0;
}
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get topic count', '', __LINE__, __FILE__, $sql);
}
$total_topics = ( $row = $db->sql_fetchrow($result) ) ? ( ( $row['total'] ) ? $row['total'] : 0 ) : 0;
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_last_post_id = $last_post, forum_posts = $total_posts, forum_topics = $total_topics
WHERE forum_id = $id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update forum', '', __LINE__, __FILE__, $sql);
}
break;
case 'topic':
$sql = "SELECT MAX(post_id) AS last_post, MIN(post_id) AS first_post, COUNT(post_id) AS total_posts
FROM " . POSTS_TABLE . "
WHERE topic_id = $id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
if ($row['total_posts'])
{
// Correct the details of this topic
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_replies = ' . ($row['total_posts'] - 1) . ', topic_first_post_id = ' . $row['first_post'] . ', topic_last_post_id = ' . $row['last_post'] . "
WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
else
{
// There are no replies to this topic
// Check if it is a move stub
$sql = 'SELECT topic_moved_id
FROM ' . TOPICS_TABLE . "
WHERE topic_id = $id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
if (!$row['topic_moved_id'])
{
$sql = 'DELETE FROM ' . TOPICS_TABLE . " WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql);
}
}
}
$db->sql_freeresult($result);
}
}
break;
}
return true;
}
?>
Ja, also die Klammer stimmt schon
das hier allerdings nicht :
Das sollte so aussehen:
das hier allerdings nicht :
Code: Alles auswählen
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';
Code: Alles auswählen
$forum_list = ( $forum_list == '' ) ? '<option value="-1">-- ! No Forums ! --</option>' : '<select name="' . $box_name . '">' . $forum_list . '</select>';
Ich installiere euch MODs, Styles und richte euch einen Forum. Wenn Interessiert per PN melden.
Bilder Hochladen : http://multi-hoster.com
Bilder Hochladen : http://multi-hoster.com
-
- Mitglied
- Beiträge: 73
- Registriert: 17.05.2007 20:06
- Wohnort: Bayern
- Kontaktdaten:
Hallo,
das habe ich geändert, die Fehlermeldug bleibt leider exakt die selbe.
Werde dasmal wieder zurückbauen, so wie es war steht es auch in der Anleitung.
Wenn ich die Klammer einfach entferne, kommt dieses Fehlermeldung:
Fatal error: Call to undefined function: auth() in /homepages/22/d182454210/htdocs/treffpunkt-fitness/includes/functions_admin.php on line 27
das habe ich geändert, die Fehlermeldug bleibt leider exakt die selbe.
Werde dasmal wieder zurückbauen, so wie es war steht es auch in der Anleitung.
Wenn ich die Klammer einfach entferne, kommt dieses Fehlermeldung:
Fatal error: Call to undefined function: auth() in /homepages/22/d182454210/htdocs/treffpunkt-fitness/includes/functions_admin.php on line 27
Zuletzt geändert von BayernCulture am 19.02.2008 16:03, insgesamt 1-mal geändert.
Dann mach bitte das hier , undzwar die ganze Datei und nicht nur teile davonsound-ks hat geschrieben:Falls Du den Fehler nicht finden kannst dan verlinke doch mal deine functions_admin.php
Eine PHP-Datei zum Download bereitstellen
Ich installiere euch MODs, Styles und richte euch einen Forum. Wenn Interessiert per PN melden.
Bilder Hochladen : http://multi-hoster.com
Bilder Hochladen : http://multi-hoster.com
Ersetze das mal mit:BayernCulture hat geschrieben:Also doch die Klammer, die ist aber bei der alten, nicht modifizierten Datei auch vorhanden.
so sieht meine functions_admin.php im moment aus. Ich habe die Zeile 51 und meine Klammer mit Ausrufezeichen markiert. Weiß jemand wo der Fehler ist ?Code: Alles auswählen
global $db, $userdata, $lang; $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); $sql = 'SELECT f.forum_id, f.forum_name FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order'; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql); } $forum_list = ''; while( $row = $db->sql_fetchrow($result) ) { if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] ) { $selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : ''; $forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>'; } } $forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>'; return $forum_list; } HIER IST MEINE ZEILE 51 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Code: Alles auswählen
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
{
global $db, $userdata, $lang;
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$sql = 'SELECT f.forum_id, f.forum_name
FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$forum_list = '';
while( $row = $db->sql_fetchrow($result) )
{
if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
{
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
}
}
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';
return $forum_list;
}
In der Update anleitung steht folgendes:
Code: Alles auswählen
#
#-----[ FIND ]---------------------------------------------
# Line 47
$forum_list = ( $forum_list == '' ) ? '<option value="-1">-- ! No Forums ! --</option>' : '<select name="' . $box_name . '">' . $forum_list . '</select>';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';

-
- Mitglied
- Beiträge: 73
- Registriert: 17.05.2007 20:06
- Wohnort: Bayern
- Kontaktdaten:
Danke Mavo460, das hat funktioniert.




Zuletzt geändert von BayernCulture am 19.02.2008 16:24, insgesamt 1-mal geändert.
Hier nochmal der Hinweis:
Ersetze das:
mit dem:
Ersetze das:
Code: Alles auswählen
global $db, $userdata, $lang;
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$sql = 'SELECT f.forum_id, f.forum_name
FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$forum_list = '';
while( $row = $db->sql_fetchrow($result) )
{
if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
{
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
}
}
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';
return $forum_list;
}
Code: Alles auswählen
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
{
global $db, $userdata, $lang;
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
$sql = 'SELECT f.forum_id, f.forum_name
FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$forum_list = '';
while( $row = $db->sql_fetchrow($result) )
{
if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
{
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
}
}
$forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>';
return $forum_list;
}