New install error when rating New install error when rating
 

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]

Main Menu

New install error when rating

Started by Jeroen.php, October 26, 2007, 11:42:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Jeroen.php

Hi , I installes coppermine a week ago now I notice an error whenever I want to rate a picture.
Can anubody please advice?

Parse error: syntax error, unexpected '}' in /srv/always69/www/www.mysite.nl/ratepic.php on line 118

Jeroen

Jeroen.php

Sorrym I answer this one myself. There's a bug in the script of the latest version.  :'(   not very good!

on line 118 you will see an }  this causes the error

Jeroen

Stramm

Then we have different versions of that file. Line 118 shows nothing here.

Download coppermine again, preferably from another mirror and reupload the files.

Joachim Müller

Quote from: Jeroen.php on October 26, 2007, 11:57:03 PMThere's a bug in the script of the latest version.  :'(   not very good!
Shouting "bug" is not a bright idea if you're not absolutely sure what you're doing. I rather guess that this is a case of PEBKAC.
Quote from: Jeroen.php on October 26, 2007, 11:57:03 PMon line 118 you will see an }  this causes the error
Take a look at the original code: http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.4.x/ratepic.php?revision=3966&view=markup

Review your attitude!

Jeroen.php

The one thay put } in this file was also not knowing what he/she was doing so I'm in good company do't you think?
Jeroen

Joachim Müller

The "bug" doesn't exist in the original version of the file. Your copy of the file has gotten corrupted because of a handling mistake on your behalf (maybe because you have made a mistake using your FTP app). Don't behave like a moron. Do as suggested and get a clean copy of the file by re-downloading a fresh copy of the package, re-extract the file that got corrupted and replace the broken copy on your server with the fresh one.
If that file was broken in the package, don't you think that someone would have discovered this before you did? After all, there are thousands of coppermine galleries running on cpg1.4.13, and none of the users ever complained about this error before.