[Solved]: No admin privilages after bridging [Solved]: No admin privilages after bridging
 

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

[Solved]: No admin privilages after bridging

Started by bozz282, March 23, 2009, 08:03:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bozz282

Please help, I have been trying to get this working for days now.

I have the following issue when trying to bridge coppermine and phpBB3:

I have bridged Coppermine with phBB3. When the bridge is enabled, my BB members are able to log in without any problems, however, I (admin) can log in but do not have access to admin privilages. When I disable the bridge, my members cannot log in but I can and can get access to all the admin features.

I have searched the boards and tried the following fixes :

Checked and corrected cookie prefix
Cleared cookies
Cleared BB template cache
Checked phpMyadmin for correct info
Both Coppermine and phBB3 work in standalone modes
Checked that I get the same results in Firefox and IE7
Enabled and disabled user based groups

None of the above seemed to work.

Coppermine install: http://www.v8hotstox.com/gallery/
Forum install: http://www.v8hotstox.com/forum/
Coppermine version: cpg1.4.21.
Forum version: phpBB 2.0.22
Test user account: test1 / testaccount (I had failed to register this account for my BB on previous help requests - my bad, sorry. account now activated)

BridgeManager settings:
Forum URL:  http://www.v8hotstox.com/forum
Relative path to your BBS's config file:  ../forum/
Use post-based groups?:  0 and 1 (Have tried both)
Cookie name/preifx phpbb3_3jbn8

My debug log :


USER:
------------------
Array
(
    [ID] => e9eda7fa9a63d7e3c295e08d61921ceb
    [am] => 1
    [lang] => english_gb
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => bozz282
    [groups] => Array
        (
            [0] => 1
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.001s)
    [1] => select * from cpg148_plugins order by priority asc; (0s)
    [2] => delete from `hotstox_forum`.cpg148_sessions where time<1237831318 and remember=0; (0s)
    [3] => delete from `hotstox_forum`.cpg148_sessions where time<1236625318; (0s)
    [4] => select user_id from `hotstox_forum`.cpg148_sessions where session_id = '51e0cfcc60b36e27ef8766123d610b67' (0s)
    [5] => select user_id as id, user_password as password from `hotstox_forum`.cpg148_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `hotstox_forum`.cpg148_users AS u INNER JOIN `hotstox_forum`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `hotstox_forum`.cpg148_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0s)
    [10] => update `hotstox_forum`.cpg148_sessions set time='1237834918' where session_id = '51e0cfcc60b36e27ef8766123d610b67' (0s)
    [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.073s)
    [12] => DELETE FROM cpg148_banned WHERE expiry < '2009-03-23 19:01:58' (0.001s)
    [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='78.151.216.148' OR ip_addr='78.151.216.148' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM cpg148_albums as a WHERE category>=10000 (0.001s)
    [16] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
    [17] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '1'  ORDER BY pos (0s)
    [18] => SELECT aid FROM cpg148_albums WHERE category = 7 (0s)
    [19] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
    [20] => SELECT count(*) FROM cpg148_albums as a WHERE category = '7' (0s)
    [21] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg148_albums as a LEFT JOIN cpg148_pictures as p ON a.thumb=p.pid WHERE category=7 ORDER BY a.pos LIMIT 0,2 (0s)
    [22] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (55, 56)GROUP BY a.aid (0.001s)
    [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='991' (0.042s)
    [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='995' (0.038s)
    [25] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '7'  ORDER BY pos (0s)
    [26] => SELECT aid FROM cpg148_albums WHERE category = 6 (0s)
    [27] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [28] => SELECT count(*) FROM cpg148_albums as a WHERE category = '6' (0s)
    [29] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg148_albums as a LEFT JOIN cpg148_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,4 (0s)
    [30] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (46, 49, 50, 51)GROUP BY a.aid (0.001s)
    [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='885' (0s)
    [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='915' (0.004s)
    [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='948' (0s)
    [34] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='974' (0s)
    [35] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '6'  ORDER BY pos (0s)
    [36] => SELECT aid FROM cpg148_albums WHERE category = 5 (0s)
    [37] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.001s)
    [38] => SELECT count(*) FROM cpg148_albums as a WHERE category = '5' (0s)
    [39] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg148_albums as a LEFT JOIN cpg148_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,12 (0.001s)
    [40] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (19, 22, 24, 25, 26, 27, 30, 32, 33, 34, 35, 36)GROUP BY a.aid (0.015s)
    [41] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='283' (0.025s)
    [42] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='324' (0.027s)
    [43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='360' (0s)
    [44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='389' (0s)
    [45] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='417' (0s)
    [46] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='675' (0s)
    [47] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='523' (0s)
    [48] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='551' (0s)
    [49] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='584' (0s)
    [50] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='622' (0s)
    [51] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='799' (0s)
    [52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='685' (0s)
    [53] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '5'  ORDER BY pos (0.001s)
    [54] => SELECT aid FROM cpg148_albums WHERE category = 3 (0s)
    [55] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.001s)
    [56] => SELECT count(*) FROM cpg148_albums as a WHERE category = '3' (0s)
    [57] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg148_albums as a LEFT JOIN cpg148_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,10 (0.001s)
    [58] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3, 6, 8, 10, 11, 12, 13, 14, 17, 23)GROUP BY a.aid (0.003s)
    [59] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='32' (0s)
    [60] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='52' (0s)
    [61] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='95' (0s)
    [62] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='129' (0s)
    [63] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='162' (0s)
    [64] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='182' (0s)
    [65] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='217' (0s)
    [66] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='228' (0s)
    [67] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='271' (0s)
    [68] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='347' (0s)
    [69] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '3'  ORDER BY pos (0.005s)
    [70] => SELECT aid FROM cpg148_albums WHERE category = 4 (0s)
    [71] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
    [72] => SELECT count(*) FROM cpg148_albums as a WHERE category = '4' (0s)
    [73] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg148_albums as a LEFT JOIN cpg148_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,1 (0s)
    [74] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg148_albums AS a  LEFT JOIN cpg148_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (7)GROUP BY a.aid (0s)
    [75] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg148_pictures WHERE pid='63' (0s)
    [76] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '4'  ORDER BY pos (0s)
    [77] => SELECT aid FROM cpg148_albums as a WHERE category = '0' (0s)
    [78] => SELECT count(*) FROM cpg148_albums as a WHERE 1 (0s)
    [79] => SELECT count(*) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.002s)
    [80] => SELECT count(*) FROM cpg148_comments as c LEFT JOIN cpg148_pictures as p ON c.pid=p.pid LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 (0.081s)
    [81] => SELECT count(*) FROM cpg148_categories WHERE 1 (0s)
    [82] => SELECT sum(hits) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON p.aid=a.aid WHERE 1 (0.005s)
    [83] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0.001s)
    [84] => SELECT count(*) FROM cpg148_albums as a WHERE category = '0' (0s)
    [85] => SELECT count(cpg148_albums.aid) FROM cpg148_pictures,cpg148_albums WHERE cpg148_pictures.aid = cpg148_albums.aid AND approved = 'YES'  GROUP  BY cpg148_pictures.aid (0.002s)
    [86] => SELECT *,cpg148_albums.title AS title,cpg148_albums.aid AS aid FROM cpg148_pictures,cpg148_albums WHERE cpg148_pictures.aid = cpg148_albums.aid AND approved = 'YES'  GROUP BY cpg148_pictures.aid ORDER BY cpg148_pictures.ctime DESC  LIMIT 0 ,8 (0.014s)
    [87] => SELECT * FROM cpg148_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.02s)
    [88] => SELECT COUNT(*) from cpg148_pictures WHERE approved = 'YES'  (0.002s)
    [89] => SELECT * FROM cpg148_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0.001s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.8 - OK
------------------
mySQL version: 4.1.22-standard
------------------
Coppermine version: 1.4.21(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/hotstox/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 1.05 seconds - 90 queries in 0.372 seconds - Album set : ; Meta set: ;

phill104

What forum version and what bridge? You say that you are using phpbb 2.022 in one bit and phpbb3 in another. Looking at your site you are using phpbb3. Did you download the phpbb3 bridge? The bridge supplied with coppermine does not support phpbb3.
It is a mistake to think you can solve any major problems just with potatoes.

bozz282

Hello Phill,

Sorry, I missed that forum version mistake. I am running phBB3 3.0.4

Yes, I downloaded the bridge for phBB3 and have it bridged but I cannot access admin mode.

bozz282

Ok, well, it seems that I have upset the mods / helpers - sorry 'bout that. We aren't all as brainy as you guys. I suppose they do get asked the same things day in day out. Just, some of us don't exactly understand ALL the terminology that others take for granted as being easy. Kudos to all that help on this forum. Good luck to all those needing help - you better ask for help in the right way (or be blonde with big guns) or you'll get ignored !

Anyway, for those of you that are reading this and have the same problem as me - no admin buttons (keeping the terminology real !) when you log in as admin, the fix is quite simple (when told how to do it). The explanation is in this thread

To find your admin usergroup id (default is 5 in the coppermine phbb3 bridge file (phbb3.inc.php) go to your forum, log in, scroll down to where it tells you 'Who is online' and underneath that there is a link for 'administrators' click the link and on the resulting page look on your address bar (top of your web browser) and look for the following bit of info

group&g=282

The '282' is the bit you're looking for. Follow Nibblers instructions :

edit phpbb3.inc.php (located in your gallery's 'bridge' folder) and :

find
$this->admingroups = array(5);

and change the (5) to (282) or whatever your administrator group number is.


Dear Nibbler and the ever so lovely Joachim, please consider my problem solved. It was oh so simple, solved in less than 5 minutes but my gf is no longer talking to me as I have spent so much time trying to get it sorted.

Now I am off to edit my gallery theme.......

phill104

Quote from: bozz282 on March 24, 2009, 05:42:20 PM
Ok, well, it seems that I have upset the mods / helpers - sorry 'bout that. We aren't all as brainy as you guys. I suppose they do get asked the same things day in day out. Just, some of us don't exactly understand ALL the terminology that others take for granted as being easy. Kudos to all that help on this forum. Good luck to all those needing help - you better ask for help in the right way (or be blonde with big guns) or you'll get ignored !



Not quite sure why you feel like that. Is it simply because nobody replied quickly? We are not stuck in front of our PC's 24/7 and have families, children, jobs or general life to get on with.

Anyway, I digress. Thankyou for coming back an resolving your thread.
It is a mistake to think you can solve any major problems just with potatoes.

bozz282

Hi Phill,

No worries, you all do a good job and I love my Coppermine Gallery. You do all this for free and of course you all have other lives aside from answering noob questions.

I appreciate your time - thanks