database database
 

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

database

Started by Anaconda, September 29, 2006, 11:17:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anaconda

i noticed that with this mod installed coppermine is saving data to my forums' database instead of the coppermine database.
I use coppermine 1.4.9 and a modified phpbb bridged but both have seperate databases. i had to apply a fix to the bridge file which was originally designed to bridge with another board but i have had no real issues so far with it, can't seem to find a link to that thread right now though. it included adding a get_avatar() funtion.
Is is possible to stop coppermine from saving data to the forums' db before i start using the gallery cause i would have to move the tables if i d do it later on...

on a side note, i don't know whether this is related to me using a seperate database or whether i am using php Categories Hierarchy version, but the buddy system is giving me an error saying it can't get data from the database

edit: added the error
While executing query "SELECT id, buddy_ok, buddy_block, buddy_id, since, u.user_avatar AS avatar_url, u.username as buddy_name
FROM cpg149_buddy as b LEFT JOIN `wmilants2`.phpbb_users as u on b.buddy_id=u.user_id
WHERE buddy_ok='YES' AND b.user_id = 2
ORDER BY buddy_name ASC
LIMIT 0, 25;" on Resource id #18

mySQL error: Table 'wmilants2.cpg149_buddy' doesn't exist


thx,
Jan

Stramm

http://forum.coppermine-gallery.net/index.php?topic=29153.msg135084#msg135084
That's the mod I guess.. should be OK

I do not know the phpbb mod you're talking about so I can't tell you much.
And what data is coppermine trying to save to your phpbb db? Is that with an unmodded coppermine too?

The error you get is kinda strange cause only the buddy_manage.php is calling that function. Is that table existing in your cpg db?

Anaconda

Quote from: Stramm on October 01, 2006, 09:21:11 AM
The error you get is kinda strange cause only the buddy_manage.php is calling that function. Is that table existing in your cpg db?

well the table exists in my coppermine database yes, however it doesn't exist in my forums' database, which is where the query was looking for it...
there are 3 coppermine tables that for some reason appeared in my forums' database: cpg149_mark_config, cpg149_mark_users and cpg149_mark_watermark. is there any way i could put then in the coppermine database instead of the forums' database ?

Stramm

Quote from: Anaconda on October 01, 2006, 02:20:14 PM
well the table exists in my coppermine database yes, however it doesn't exist in my forums' database, which is where the query was looking for it...

yes, but it isn't supposed to except your forum soft somehow interfers (on a coppermine only page, hasn't to do anything with your forum -> that's strange -> solution would be atm hardcoding cause I wasn't able to reproduce that behaviour)

the tables you mentioned... the modpack doesn't use a watermark table so it can't be the one having created it, that there's the users and the config table ??? The modpack doesn't create these tables so I can't tell you how they got there. When you install coppermine these tables get created and that's it. If you're usinhg a bridged coppermine you don't even need the coppermine users table

Anaconda

ok thx, deleted all 3 tables and it seems to have had no effect on the gallery, so could have been a remnant of my earlier attampts.  ::)

where would i find the code that executes that specific query though  ???
the query says "... FROM cpg149_buddy as b LEFT JOIN `wmilants2`.phpbb_users as u ..." i am thinking it should be something more like "FROM `wgallery`.cpg149_buddy as b LEFT JOIN `wmilants2`.phpbb_users as u" since it s looking for cpg149_buddy in 'wmilants2' according to the error message.  but that table is located in 'wgallery'  not in the forums' db, i don't know where to find the code to try this out though.

thx,
Jan

Stramm

function get_buddy_infos in udb.base.inc.php

let me know if you get it going

Anaconda

hardcoding the 'wgallery' into the query resolved that error, but currently both databases are using seperate logins and don't have read rights on one other, so can't really test it out untill my host gets back...