coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: foz on December 14, 2005, 07:37:20 PM

Title: Error Querying Database.. Xoops bridged to coppermine 1.4.2
Post by: foz on December 14, 2005, 07:37:20 PM
I have the following problem when bridging Xoops 2.2.3 final with Coppermine 1.4.2 when I try to use the ecard or report feature.
These features work fine with the bridge disabled.
Also I have tried it with and without post based groups.  Changing that made no difference.

Also using search I did not find a similar problem :)

Quote

Critical error

There was an error while processing a database query.






While executing query "SELECT uname AS user_name,
                              email AS user_email,
                              user_regdate AS user_regdate,
                              '' AS user_location,
                              url AS user_website
                              
                              FROM  `databasename`.***_users WHERE uid = '1'" on Resource id #6

mySQL error: Unknown column 'user_regdate' in 'field list'



File: /****/******/public_html/testsite/cpg142/include/functions.inc.php - Line: 248

Thanks for your help in advance :)
foz


Coppermine install: http://www.thewoodlandsmonitor.com/testsite/cpg142
Forum install: http://www.thewoodlandsmonitor.com/testsite
Coppermine version: 1.4.2
Forum Version:  Xoops 2.2.3 final
Test user account: Testuser/test

Bridgemanager settings:
Forum URL:  http://www.thewoodlandsmonitor.com/testsite 
Relative path to your BBS's config file:  ../ 
Use post-based groups?:  0 
Title: Re: Error Querying Database.. Xoops bridged to coppermine 1.4.2
Post by: Nibbler on December 14, 2005, 10:42:21 PM
Edit bridge/xoops.inc.php

find

'regdate' => 'user_regdate', // name of 'registered' field in users table

change to

'regdate' => "''", // name of 'registered' field in users table
Title: Re: Error Querying Database.. Xoops bridged to coppermine 1.4.2
Post by: foz on December 14, 2005, 11:14:57 PM
Thanks for that info nibbler :)


Just correcting that one line was not all that was wrong apparently.

I also had to modify this line
Quote'website' => 'url', // name of 'website' field in users table

to
Quote'website' => "''", // name of 'website' field in users table

Thanks to your initial response I was able to fire up some brain cells and figure out the second problem.

Thanks a ton Nibbler :)


Foz