Hallo,
habe vorhin ein Update von 1.4.5 nach 1.4.10 gemacht und leider läuft nicht´s mehr :(
Laut update.php verlief das Update erfolgreich .. aber
versioncheck.php .. gibt das aus
' ', '''), array('&', '"', '<', '>', ' ', "'"), $CONFIG['forbiden_fname_char']); } preg_match_all("#$mb_utf8_regex".'|[\x00-\x7F]#', $chars, $forbidden_chars); } /** * $str may also come from $_POST, in this case, all &, ", etc will get replaced with entities. * Replace them back to normal chars so that the str_replace below can work. */ $str = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $str);; $return = str_replace($forbidden_chars[0], '_', $str); /** * Fix the obscure, misdocumented "feature" in Apache that causes the server * to process the last "valid" extension in the filename (rar exploit): replace all * dots in the filename except the last one with an underscore. */ // This could be concatenated into a more efficient string later, keeping it in three // lines for better readability for now. $extension = ltrim(substr($return,strrpos($return,'.')),'.'); $filenameWithoutExtension = str_replace('.' . $extension, '', $return); $return = str_replace('.', '_', $filenameWithoutExtension) . '.' . $extension; return $return; } /** * resetDetailHits() * * Reset the detailed hits stored in hit_stats table for the given pid * * @param int or array $pid **/ function resetDetailHits($pid) { global $CONFIG; if (is_array($pid)) { if (!count($pid)) { return; } else { $clause = "pid IN (".implode(',', $pid).")"; } } else { $clause = "pid = '$pid'"; } $query = "DELETE FROM {$CONFIG['TABLE_HIT_STATS']} WHERE $clause"; cpg_db_query($query); } /** * resetDetailVotes() * * Reset the detailed votes stored in vote_stats table for the given pid * * @param int or array $pid **/ function resetDetailVotes($pid) { global $CONFIG; if (is_array($pid)) { if (!count($pid)) { return; } else { $clause = "pid IN (".implode(',', $pid).")"; } } else { $clause = "pid = '$pid'"; } $query = "DELETE FROM {$CONFIG['TABLE_VOTE_STATS']} WHERE $clause"; cpg_db_query($query); } ?> mysql_free_result($results); return $USER_DATA; } else { return false; } } // Used for sorting (usort) the userlist by criteria that are not directly in the udb user table, callback function. function adv_sort($a, $b) { global $cpg_udb; if ($cpg_udb->sortdir == 'ASC'){ return strcmp($a[$cpg_udb->sortfield], $b[$cpg_udb->sortfield]); } else { return strcmp($b[$cpg_udb->sortfield], $a[$cpg_udb->sortfield]); } } } ?>
Parse error: syntax error, unexpected '}' in /hp/ab/aa/pe/www/gallery/include/themes.inc.php on line 2587
Und beim Aufruf der Startpage kommt das :(
' ', '''), array('&', '"', '<', '>', ' ', "'"), $CONFIG['forbiden_fname_char']); } preg_match_all("#$mb_utf8_regex".'|[\x00-\x7F]#', $chars, $forbidden_chars); } /** * $str may also come from $_POST, in this case, all &, ", etc will get replaced with entities. * Replace them back to normal chars so that the str_replace below can work. */ $str = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $str);; $return = str_replace($forbidden_chars[0], '_', $str); /** * Fix the obscure, misdocumented "feature" in Apache that causes the server * to process the last "valid" extension in the filename (rar exploit): replace all * dots in the filename except the last one with an underscore. */ // This could be concatenated into a more efficient string later, keeping it in three // lines for better readability for now. $extension = ltrim(substr($return,strrpos($return,'.')),'.'); $filenameWithoutExtension = str_replace('.' . $extension, '', $return); $return = str_replace('.', '_', $filenameWithoutExtension) . '.' . $extension; return $return; } /** * resetDetailHits() * * Reset the detailed hits stored in hit_stats table for the given pid * * @param int or array $pid **/ function resetDetailHits($pid) { global $CONFIG; if (is_array($pid)) { if (!count($pid)) { return; } else { $clause = "pid IN (".implode(',', $pid).")"; } } else { $clause = "pid = '$pid'"; } $query = "DELETE FROM {$CONFIG['TABLE_HIT_STATS']} WHERE $clause"; cpg_db_query($query); } /** * resetDetailVotes() * * Reset the detailed votes stored in vote_stats table for the given pid * * @param int or array $pid **/ function resetDetailVotes($pid) { global $CONFIG; if (is_array($pid)) { if (!count($pid)) { return; } else { $clause = "pid IN (".implode(',', $pid).")"; } } else { $clause = "pid = '$pid'"; } $query = "DELETE FROM {$CONFIG['TABLE_VOTE_STATS']} WHERE $clause"; cpg_db_query($query); } ?> mysql_free_result($results); return $USER_DATA; } else { return false; } } // Used for sorting (usort) the userlist by criteria that are not directly in the udb user table, callback function. function adv_sort($a, $b) { global $cpg_udb; if ($cpg_udb->sortdir == 'ASC'){ return strcmp($a[$cpg_udb->sortfield], $b[$cpg_udb->sortfield]); } else { return strcmp($b[$cpg_udb->sortfield], $a[$cpg_udb->sortfield]); } } } ?>
Parse error: syntax error, unexpected '}' in /hp/ab/aa/pe/www/gallery/include/themes.inc.php on line 2587
Woran liegt das ?? Nutze die Bridge zu phpBB .. und vorher lief´s .. hoffe ja mal, dass nicht die Bridge der Grund ist
Timo
Moinsen,
schade, dass niemand einen Rat weiß :( Ist nämlich ziemlich ärgerlich, dass nach dem Update nicht mehr geht.
Hier ist die angesprochene Datei mal als TXT .. interessant ist nur, dass sie gar keine 2587 Zeilen hat
Timo
... der Link fehlte
http://www.homaer.com/themes.ini.txt
Außerdem hab ich noch eine cpgupdate.htm mit dem Updateprotokoll
http://www.homaer.com/cpgupdate.htm
Ist noch früh (kann man eigentlich seine Postings gar nicht selber editieren) ??
http://www.homaer.com/themes.inc.txt
Postings kann man nicht mehr selbst editieren wegen Mißbrauchs in der Vergangenheit. Das Forum ist keine Hotline, bitte etwas Zeit erlauben für Supporter, um zu antworten.
Wie hast Du das Update gefahren? Über einen Auto-Installer (Fantastico/cpanel) oder manuell (wie in unserer Doku beschrieben)? Einzig unterstützte Variante ist die in der Doku beschriebene Variante.
Dein Problem ist vermutlich Dateikorruption - lade die Dateien erneut hoch unter Verwendung des korrekten FTP-Modus. Stelle sicher, dass Deine FTP-Applikation so eingestellt ist, existierende Dateien zu überschreiben.
Hallolo,
zu dem FTP .. nutze wie gewohnt SmartFTP (und das klappte bisher immer damit) .. und die Dateien wurden überschrieben (daran hab ich dann auch gedacht)
zum Update .. hab´s wie immer nach der DOC gemacht ..
# First, make a backup (dump) of your database.
# Backup your include/config.inc.php file, your anycontent.php file and your "albums" directory.
# Unpack the archive
# If the file install.php exists in the root directory, delete it. When performing an upgrade, it is not needed.
# Except for the "albums" directory, upload all of the new files and directories making sure not to overwrite the include/config.inc.php file, your anycontent.php file or the albums directory.
# Run the file "update.php" in the coppermine directory once in your browser (e.g. http://yourdomain.tld/coppermine/update.php). This will update your coppermine install by making all necessary changes in the database.
Nur cleverer Weise hab ich kein BackUP der Datenbank gemacht :( sondern nur vom Server
Kann´s an der Bridge liegen ??
Hier nochmal der Link direkt zur CPG .. www.homaer.com/gallery
Ich vermute Dateikorruption. Lade Dir mal ein neues cpg1.4.10-Paket herunter (von einem anderen Mirror), entpacke es und lade alle Dateien nochmals hoch wie in der Doku beschrieben.
Wenn PHP-code "durchscheint" ist in der Regel eine Datei kaputt (oder mehrere).
Hmm .. dann werd ich das mal machen .. die www.homaer.com/cpgupdate.htm funzt jetzt auch ..
Hallolo,
jetzt läuft erstmal "grob" wieder .. war wohl in der Tat ein Defekt oder Übertragungsfehler ..
Jetzt muss ich nur das SubSilver Template noch etwas anpassen
Danke für Deine Hilfe