coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: CuTe_MaN on November 30, 2005, 05:43:43 PM

Title: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: CuTe_MaN on November 30, 2005, 05:43:43 PM
i have finished integrating CPG1.4 with SMF and i got all users from my forum registered in the gallery database

but i wanted to enter the Admin Tools again but I get this problem

"There was an error while processing a database query"

if any body can help

thx
Title: Re: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: Nibbler on November 30, 2005, 05:45:41 PM
Enable debug mode and post the mysql error message that you get (not the entire debug output).
Title: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: CuTe_MaN on November 30, 2005, 06:04:06 PM
how i can do that?

and i have posted the error message that i am getting and it is

"There was an error while processing a database query"

thx
Title: Re: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: Nibbler on November 30, 2005, 06:42:55 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_misc
Title: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: CuTe_MaN on December 01, 2005, 10:29:49 AM
I have enabled the Encoding and i got this messages:

While executing query "SELECT aid, category, IF(memberName IS NOT NULL,
CONCAT('(', memberName, ') ', a.title),
CONCAT(' - ', a.title)) AS title
FROM cpg140_albums AS a
LEFT JOIN `sabouni_uaeu`.smf_members AS u
ON category = (10000 + ID_MEMBER)
ORDER BY category, title" on Resource id #23

mySQL error: No Database Selected


and it says that the problem is in
("\include\functions.inc.php - Line: 248")

file

i hope that you can help me in the problem

thx
Title: Re: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: Nibbler on December 01, 2005, 05:57:42 PM
Can you look in bridge/udb_base.inc.php towards the end of the file, find the query


$query = "SELECT aid, category, IF({$this->field['username']} IS NOT NULL,
CONCAT('(', {$this->field['username']}, ') ', a.title),
CONCAT(' - ', a.title)) AS title
FROM {$CONFIG['TABLE_ALBUMS']} AS a
LEFT JOIN {$this->usertable} AS u
ON category = (" . FIRST_USER_CAT . " + {$this->field['user_id']})
ORDER BY category, title";

$result = cpg_db_query($query, $this->link_id);


and change that last bit to


$result = cpg_db_query($query);
Title: Re: Successful integration Coppermine 1.4.1 beta + SMF 1.0.5 + Mambo 4.5.2.3
Post by: CuTe_MaN on December 06, 2005, 09:50:01 PM
i have tried it and it is working well thank you