forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Valentina on December 19, 2005, 03:59:06 pm
-
I've just installed Coppermine 1.4.2 here http://www.macalania.com/depp/gallery and it seems to work, but when I try to enter in one of the albums I get this error
Parse error: parse error, unexpected $ in /web/htdocs/www.macalania.com/home/depp/gallery/thumbnails.php on line 236
Do you know what this could mean?
Thanx
ps sorry for my english! :p
update I commented the line and now the albums work, do you think that the comment will cause any problem?
-
Is it this line you commented out?
$alb_pw = unserialize($_COOKIE[$CONFIG['cookie_name'] . '_albpw']);
If so, you're going to have trouble if you later on decide to have password protected albums. You really shouldn't mess with the code if you're not sure what it does, as it may give you other complications later on (such as when upgrading or changing your configuration).
But I'm not sure why you get a parse error. You haven't changed anything else in the file?
-
Yes, that's the line I commented out!
I haven't changed anything else in this file, and in others either, I made some changes in admin.php, the one you recommeneded here in the forum for the problems with languages but since it doesn't work anyway I changed it back in the original way!
-
Then I don't know.. there shouldn't be any parse errors in a file fresh from the installation package as they are easy to spot. Maybe you could try copying the file over from the original installation package again?
-
what editor did you use? Make sure to use a plain text editor (notepad.exe is fine). Don't use a WYSIWYG editor like Dreamweaver, and particularly not MS Frontpage.
-
I've tried to upload the thumbnail.php file again and now it seems to work! Thanx!
and GauGau thanx for the advice too infact I was using Dreamweaver but I'll use notepade next time!