Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(  (Read 4990 times)

0 Members and 1 Guest are viewing this topic.

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« on: January 09, 2007, 04:14:05 pm »

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
Code: [Select]
' ', '''), 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 :(
Code: [Select]
' ', '''), 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
« Last Edit: January 10, 2007, 08:54:24 am by GauGau »
Logged

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #1 on: January 10, 2007, 07:24:13 am »

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
Logged

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #2 on: January 10, 2007, 07:28:43 am »

... 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
Logged

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #3 on: January 10, 2007, 07:30:07 am »

Ist noch früh (kann man eigentlich seine Postings gar nicht selber editieren) ??

http://www.homaer.com/themes.inc.txt
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #4 on: January 10, 2007, 08:00:18 am »

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.
Logged

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #5 on: January 10, 2007, 08:10:05 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #6 on: January 10, 2007, 08:15:07 am »

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).
Logged

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #7 on: January 10, 2007, 08:16:22 am »

Hmm .. dann werd ich das mal machen .. die www.homaer.com/cpgupdate.htm funzt jetzt auch ..
Logged

InTimo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Update von 1.4.5 zu 1.4.10 gemacht .. nichts geht mehr :(
« Reply #8 on: January 10, 2007, 08:37:21 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.