coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Atari2600 on August 18, 2004, 04:08:52 AM

Title: [Solved]: SMF bridge problems
Post by: Atari2600 on August 18, 2004, 04:08:52 AM
I can't seem to get the bridge working.  :\'(

Is the brifge that comes with 1.3.1 is correct. I can't get it to work for me. My forum is in the folder smf which is located in my home directory and named gallery. this  folder, with coppermine, is on the same level as smf so my path is $path = '../smf' When i comment out the bridge in the init.inc.php both the forum and gallery work fine as stand alone. But when I "turn on" the bridge I get this error:

Fatal error :

There was an error while processing a database query.
While executing query "
      SELECT variable, value
      FROM smf_settings" on 0

mySQL error: Table 'creativespirit_us_-_gallery.smf_settings' doesn't exist


any ideas what I'm doing wrong?

debug info:
USER:
------------------
Array
(
   [ID] => 6e89776a27a00be6f5e2b8247acae5f9
   [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_group] => 1
   [user_active] => YES
   [user_name] => **********
   [user_password] => ********
   [user_lastvisit] => 2004-08-17 21:08:20
   [user_regdate] => 2004-08-17 21:07:37
   [user_group_list] =>
   [user_email] =>
   [user_website] =>
   [user_location] =>
   [user_interests] =>
   [user_occupation] =>
   [user_actkey] =>
   [disk_max] => 0
   [disk_min] => 0
   [can_rate_pictures] => 1
   [can_send_ecards] => 1
   [ufc_max] => 3
   [ufc_min] => 3
   [custom_user_upload] => 0
   [num_file_upload] => 5
   [num_URI_upload] => 3
   [can_post_comments] => 1
   [can_upload_pictures] => 1
   [can_create_albums] => 1
   [has_admin_access] => 1
   [pub_upl_need_approval] => 0
   [priv_upl_need_approval] => 0
   [group_name] => Administrators
   [upload_form_config] => 3
   [group_quota] => 0
   [can_see_all_albums] => 1
   [group_id] => 1
   [groups] => Array
       (
           [1] => 1
       )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: SMF bridge problems
Post by: kegobeer on August 18, 2004, 06:03:13 AM
I don't understand your directory structure.  Is it like this?

gallery/coppermine
gallery/smf
Title: Re: SMF bridge problems
Post by: kegobeer on August 18, 2004, 06:15:06 AM
Also, are they sharing the same db?  For example, db name=mydb, smf table prefix=smf_, coppermine table prefix=cpg130_
Title: Re: SMF bridge problems
Post by: Atari2600 on August 19, 2004, 12:26:28 AM
I've had SMF for awhile and just installed  Coppermine. I installed coppermine as though I didnt even have SMF (standalone) So they are seperate databases. I've used coppermine by itself for awhile also but when I moved servers I heard that a new version of the gallery was out and that a "bridge" was made for SMF and thought SWEET.

As far as directory structure:

mainwebsitedirectory/smf
mainwebsitedirectory/gallery


Title: Re: SMF bridge problems
Post by: kegobeer on August 19, 2004, 05:32:22 AM
AFAIK, you need to share the same database in order for everything to work.  I'd move the coppermine tables to the db your SMF tables are in, update your coppermine settings to reflect the new db location, and then everything should work for you.
Title: Re: SMF bridge problems
Post by: Atari2600 on August 20, 2004, 02:45:16 AM
if i knew how to do that much i wouldn't be posting for help. doesn't the bridge create tables for coppermine in the smf database. I thought the bridge was to help the intergratioon I have nothing in the coppermine database. What if i just tell it the database is the smf database? Would coppermine just create the tables itself in the SMF database? Why does it not mention this in the instructions anywhere. I can't find anything in my instructions about this............................... ???
Title: Re: SMF bridge problems
Post by: Joachim Müller on August 20, 2004, 08:19:45 AM
the instructions say you have to have both smf and coppermine up and running before starting integration, so you should have something in your coppermine database. If you haven't even installed coppermine yet, do so now, using the same database your smf install uses.

GauGau
Title: Re: SMF bridge problems
Post by: Atari2600 on August 20, 2004, 06:47:51 PM
well yeah there is my admin account, but I just meant it wasnt an active gallery yet ( fresh install). I guess what I didnt get was the database part. So what your saying is when I install it I put in the SMF databse and not create a new one. I guess I missed that part in the instructions. ???
Title: Re: SMF bridge problems
Post by: Atari2600 on August 21, 2004, 12:54:00 AM
Ok I  reran installer and told it to use the SMF database and the bridge works fine now.  The part that had me mixed up was when you said about installing them seperately. To me i thought that meant databases too.  Been pulling out whats left of my hair and all it was, was that little thing about using same database that had me all mixed up. Like i said before i thought when you actived the bridge, the bridge told the gallery to use the SMF database. Thats what I couldn't understand. Perhaps putting in bold font in the instructions to USE YOUR FORUM DATABASE WHEN YOU DO THE INSTALL would help some of us php beginners  :P

Also thanks to all who gave time to try and help me. Its appreciated
Title: Re: [Solved]: SMF bridge problems
Post by: subnet_rx on May 10, 2005, 11:16:33 PM
thanks for this post, installing both in the same database worked perfectly for me also.