coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: thisizaremix on December 08, 2011, 11:30:03 AM

Title: bridging MYBB
Post by: thisizaremix on December 08, 2011, 11:30:03 AM
I have the following issue when trying to bridge coppermine and MYBB:
I have tried for hours to get this bridge to work but everytime I activate the bridge, I receive the following message:
While executing query 'SELECT u.uid, u.loginkey, additionalgroups
                FROM `********`.8528_sessions AS s
                INNER JOIN `********`.8528_users AS u ON u.uid = s.uid
                WHERE sid = 'ea88dc66f74e7bf70e56a3096559e478'' in bridge/mybb.inc.php on line 132

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.8528_sessions AS s
                INNER JOIN `********`.8528_users AS u ' at line 2


Coppermine install: http://www.xxxxxxwforum.com/cpg15x/
Bridging app install: http://www.xxxxxxwforum.com/
Coppermine version: cpg1.5.16
Bridging app version: MYBB v1.6.5
Test user account: testforum / testforum

BridgeManager settings:
Bridge app URL:  http://www.xxxxxxwforum.com/
Relative path to your bridge app's config file:  ../inc/
Cookie name or prefix:  cpg15x
Use bridge app custom groups?:  0


USER:
------------------
Array
(
    [ID] => 82904e34fd21a2bb1235c0d41a5aceef
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => testforum
    [groups] => Array
        (
           
Title: Re: bridging MYBB
Post by: thisizaremix on December 09, 2011, 10:07:51 AM
I figured out the problem after countless hours messing with this.
When I made my forum at the beginning of the year, I changed the prefix of my database tables to 8528_ from mybb_ for security reasons.  I guess coppermine did not like this change...