User Manager time out (problems with previous fix) User Manager time out (problems with previous fix)
 

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

User Manager time out (problems with previous fix)

Started by taiofmine, January 30, 2011, 11:59:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

taiofmine

I've been having problems accessing my user manager for quite some time now. When I click it, it just times out.

I found <A HREF="http://forum.coppermine-gallery.net/index.php/topic,27540.msg129081.html#msg129081">this</A> fix... the thread says it does work with 1.5.x, but when I tried it, I got this error:

<I>Parse error: syntax error, unexpected '=' in /home/allantmn/all-antm.net/bridge/udb_base.inc.php on line 61</I>

I just upgraded, so I'm using the most recent version of Coppermine. I attached a txt document with what my udb_base.inc.php looks like now. I'm not sure what '=' is messing things up....

Thanks in advance.

ΑndrĂ©

You removed the needed variable $sql in front of the equal sign in line 61. Open bridge/udb_base.inc.php file, find
                = "SELECT u.{$f['user_id']} AS id, u.{$f['username']} AS username, {$f['password']} AS password, ug.{$f['usertbl_group_id']} AS group_id "
                        . "FROM {$this->usertable} AS u, {$this->usergroupstable} AS ug "
                        . "WHERE u.{$f['user_id']}=ug.{$f['user_id']} AND u.{$f['user_id']}='$id'";

and replace with
                $sql = "SELECT u.{$f['user_id']} AS id, u.{$f['username']} AS username, {$f['password']} AS password, ug.{$f['usertbl_group_id']} AS group_id "
                        . "FROM {$this->usertable} AS u, {$this->usergroupstable} AS ug "
                        . "WHERE u.{$f['user_id']}=ug.{$f['user_id']} AND u.{$f['user_id']}='$id'";