forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: crazydad on February 26, 2007, 08:50:23 pm

Title: same old critical error message
Post by: crazydad on February 26, 2007, 08:50:23 pm
hi

i have a little site with coppermine on. i have a few albums on that anyone one can view ok. i have one password protected album which works fine when the password is entered by any visitor. i have tried to create another "private" album (password protected) and i get the message "There was an error while processing a database query". i can enter the password, get to the thumbnail but when i click on the thumbnail, thats the message i get, and have to close down all open windows so that i can log onto the site again. i have tried it on another of my sites with cm on and it is the same result. if i take the password protection off the album, i can view the pics just fine.

any ideas.

p.s. please, i really do not understand any of this "script talk" that i have seen in the forums, so, simple answers if possible, please  ;)

thanks

Title: Re: same old critical error message
Post by: Nibbler on February 26, 2007, 08:56:07 pm
Enable debug mode in config and post the mysql error message you get (not the entire debug output) when you replicate the error.
Title: Re: same old critical error message
Post by: crazydad on February 26, 2007, 09:09:05 pm
hi again

is this what you mean?

While executing query "SELECT aid, MD5(alb_password) as md5_password FROM cpg149_albums WHERE aid IN ()" on 0

mySQL error:
Title: Re: same old critical error message
Post by: Nibbler on February 26, 2007, 09:55:28 pm
Can you try a minor code change please.

bridge/smf10.inc.php

find

Code: [Select]
require_once($BRIDGE['relative_path_to_config_file'] . 'SSI.php');

change to

Code: [Select]
$old_cookie = $_COOKIE;
require_once($BRIDGE['relative_path_to_config_file'] . 'SSI.php');
$_COOKIE = $old_cookie;
Title: Re: same old critical error message
Post by: crazydad on February 26, 2007, 10:07:18 pm
brilliant!!! thats it sorted. thanks for your help nibbler ;)