Seite 1 von 1

Fehler beim Update

Verfasst: 23.02.2008 16:56
von Lockslay
Hallo


phpBB2.0.22 auf 2.0.23 mit Mods

ich bekomme immer einen Fehler beim Updaten angezeigt.

Parse error: parse error, unexpected '}' in /home/htdocs/web40/html/forum/includes/functions_admin.php on line 50


Habe die Datei mehrfach nach der Anleitung durchgesehen.
Ich kann da nichts finden.
Laut Editor ist die Zeile 50 nur der Inhalt
}

Das ist die Anleitung:

#-----[ OPEN ]---------------------------------------------
#
includes/functions_admin.php

#
#-----[ FIND ]---------------------------------------------
# Line 24
//
// Simple version of jumpbox, just lists authed forums
//
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
{

#
#-----[ FIND ]---------------------------------------------
# Line 29
global $db, $userdata;

#
#-----[ REPLACE WITH ]---------------------------------------------
#
global $db, $userdata, $lang;

#
#-----[ 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>';


Habe die Datei einmal als txt hochgeladen, vielleicht kann sich die Datei einer mal ansehen ich finde da nichts mehr.
Hier ist die Datei
http://www.jahnplettenberg.de/functions_admin.txt

Bitte bitte, da das Forum z.Z wegen des fehler geschlossen bleibt, würde mich über hilfe sehr freuen
Gruß

Lockslay

Verfasst: 23.02.2008 17:00
von PhilippK
Zwischen

Code: Alles auswählen

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 ***************************************************************************/
und

Code: Alles auswählen

	global $db, $userdata, $lang;
	global $db, $userdata, $lang;
fehlt was.

Was willst du den eigentlich updaten?

Gruß, Philipp

Verfasst: 23.02.2008 17:07
von Lockslay
Hallo

ich möchte phpBB2.0.22 auf 2.0.23 updaten !
und bin nach dieser Anleitung vorgegangen:

http://www.phpbb.de/doku/phpbb-update.p ... &mods=true
Manuelles Update - Liste der Codeänderungen (Mods bleiben installiert)

Beim Aufruf von http://deinedomain.de/phpBB/install/upd ... latest.php habe ich die Fehlermeldung bekommen

Gruß
Lockslay

Verfasst: 23.02.2008 17:18
von sound-ks
Hallo,

Suche das hier :

Code: Alles auswählen

global $db, $userdata, $lang;
global $db, $userdata, $lang;
Ersetze es mit dem Hier :

Code: Alles auswählen

//
// Simple version of jumpbox, just lists authed forums
//
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
{
	global $db, $userdata, $lang;

In der Installationsanleitung hast du diesen Schritt falsch gemacht.

Code: Alles auswählen

#-----[ OPEN ]---------------------------------------------
#
includes/functions_admin.php

#
#-----[ FIND ]---------------------------------------------
# Line 24
//
// Simple version of jumpbox, just lists authed forums
//
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '')
{

#
#-----[ FIND ]---------------------------------------------
# Line 29
global $db, $userdata;

#
#-----[ REPLACE WITH ]---------------------------------------------
#
global $db, $userdata, $lang; 

Verfasst: 23.02.2008 17:21
von Lockslay
Hallo

Code: Alles auswählen

}


lösche das mal. Das gehört da nicht hin.
habe ich schon einmal getestet ,dann wurde ein andere Fehlermeldung angezeigt mit einer anderen Stelle.

Verfasst: 23.02.2008 17:24
von sound-ks
ja, das war falsch von mir.

Habe mein Post Editiert befolge jetzt die schritte.(oben)

Verfasst: 23.02.2008 17:37
von Lockslay
Hallo

danke für die schnelle Hilfe !!
Forum läuft wieder.
Manchmal sieht man den Wald vor lauter Bäume nicht mehr :lol:

Gruß
Lockslay

Verfasst: 24.02.2008 10:37
von vast
Ich hätte da auch noch ein Problem...

Wollte mich heute auch ans Update machen, habe alle Codes ersetzt und bekam nun als ich die update_to_latest.php aufrufen wollte diese Fehlermeldung:

Code: Alles auswählen

Warning: include(./../extension.inc) [function.include]: failed to open stream: No such file or directory in /kunden/139775_46147/webseiten/update_to_latest.php on line 46

Warning: include() [function.include]: Failed opening './../extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/139775_46147/webseiten/update_to_latest.php on line 46

Warning: include(./../config.) [function.include]: failed to open stream: No such file or directory in /kunden/139775_46147/webseiten/update_to_latest.php on line 47

Warning: include() [function.include]: Failed opening './../config.' for inclusion (include_path='.:/usr/local/lib/php') in /kunden/139775_46147/webseiten/update_to_latest.php on line 47

Woran könnte es liegen??? :-?

Wer lesen kann ist klar im Vorteil !!!!!!!!!!!!!!!!!!!!!!!!!

Verfasst: 24.02.2008 10:45
von gloriosa
Hallo,
Du hast übersehen, dass das DB-Update so /install/update_to_latest.php ausgeführt werden muss. :oops:

Verfasst: 24.02.2008 10:57
von vast
Ups...sorry.... :oops:
Danke, jetzt funzt es!
:P