Seite 1 von 1
Updatefehler functions.php
Verfasst: 29.10.2009 07:41
von VAmpire Diaries
Guten Morgen!
Ich habe soeben versucht ein Update durchzuführen, mit mäßigen Erfolg!
Bei mir wird jetzt leider ein Parse error angezeigt:
Parse error: syntax error, unexpected '}' in /var/www/XXXXX/html/phpbb/forum/includes/functions.php on line 917
Bin eine absolute phpbb Laie und trau mich nicht wirklich an diese Datei heran.
Vermutlich ahb ich Dussel das falsche Update genommen oder einfach alles falsch gemacht!
Wäre wirklich dankbar, wenn mir da jemand helfen würde.
Schonmal Danke!
Re: Updatefehler functions.php
Verfasst: 29.10.2009 08:58
von aurora876
du hast einen fehler in zeile 917:
Parse error: syntax error, unexpected '}' in /var/www/XXXXX/html/phpbb/forum/includes/functions.php on line 917
poste mal die zeilen 912 - 920
Re: Updatefehler functions.php
Verfasst: 29.10.2009 12:56
von VAmpire Diaries
Ja, das habe ich mir auch gedacht, aber in den Zeilen konnte ich keinen Fehler finden!
Code: Alles auswählen
return substr($resolved, 0, -1);
}
return $resolved; // We got here, in the end!
}
}
else
{
/**
Re: Updatefehler functions.php
Verfasst: 29.10.2009 13:02
von Mahony
Hallo
Das
dürfte den Fehler verursachen.
Grüße: Mahony
Re: Updatefehler functions.php
Verfasst: 30.10.2009 07:11
von VAmpire Diaries
Guten Morgen!
Also wenn ich dieses else raus nehme bekomm ich einen weiteren Fehler angezeigt:
Fatal error: Cannot redeclare phpbb_realpath() (previously declared in /var/www/XXXXX/html/phpbb/forum/includes/functions.php:767) in /var/www/XXXXX/html/phpbb/forum/includes/functions.php on line 932
Ich glaube, ich bin dafür nicht egschaffen

Re: Updatefehler functions.php
Verfasst: 30.10.2009 11:43
von Mahony
Hallo
Such mal nach
Code: Alles auswählen
// Check for DIRECTORY_SEPARATOR at the end (and remove it!)
der Abschnitt danach sollte so aussehen
Code: Alles auswählen
if (substr($resolved, -1) == DIRECTORY_SEPARATOR)
{
return substr($resolved, 0, -1);
}
return $resolved; // We got here, in the end!
}
if (!function_exists('realpath'))
{
/**
* A wrapper for realpath
* @ignore
*/
function phpbb_realpath($path)
{
return phpbb_own_realpath($path);
}
}
else
{
/**
* A wrapper for realpath
*/
function phpbb_realpath($path)
{
$realpath = realpath($path);
// Strangely there are provider not disabling realpath but returning strange values. :o
// We at least try to cope with them.
if ($realpath === $path || $realpath === false)
{
return phpbb_own_realpath($path);
}
// Check for DIRECTORY_SEPARATOR at the end (and remove it!)
if (substr($realpath, -1) == DIRECTORY_SEPARATOR)
{
$realpath = substr($realpath, 0, -1);
}
return $realpath;
}
}
Grüße: Mahony