Advanced search  

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]

Pages: [1]   Go Down

Author Topic: phpBB and cpg 1.4.3 (stable)  (Read 4030 times)

0 Members and 1 Guest are viewing this topic.

Masamune

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
phpBB and cpg 1.4.3 (stable)
« on: January 31, 2006, 08:23:38 pm »

Before I updated to cpg 1.4.3, my forums and gallery were already integrated. In particular I had the default 'user gallery' for use in fanart and such. Upon upgrading, everything else worked fine (except batch add files, which I haven't looked into yet). Before I re-integrated the gallery and forums, the Fanart gallery still showed the latest pictures and random pictures, but no albums (despite still existing).

When I re-integrated the forums, the fanart albums still exist... but going into the category itself produces this error:
There was an error while processing a database query
And that's all. I messed around with the Bridging options, basically attempting every different setting to see if I could make it work.

Coppermine install: http://www.gamehiker.com/xr453
Forum install: http://www.gamehiker.com/forums
Coppermine version: cpg1.4.3 (stable)
Forum version:  phpBB 2.0.10
Test user account: Dummy / dummy

BridgeManager settings:
Forum URL:   http://www.gamehiker.com/forums
Relative path to your BBS's config file: ../forums/
Use post-based groups?: 1
« Last Edit: January 31, 2006, 08:48:30 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: phpBB and cpg 1.4.3 (stable)
« Reply #1 on: January 31, 2006, 08:26:26 pm »

Enable debug mode and post the mysql error you get when you enter the user galleries.
Logged

Masamune

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: phpBB and cpg 1.4.3 (stable)
« Reply #2 on: January 31, 2006, 08:32:02 pm »

Oh yeah, here's that.

Quote
While executing query "SELECT user_id as user_id,username as user_name,COUNT(DISTINCT a.aid) as alb_count,COUNT(DISTINCT pid) as pic_count,MAX(pid) as thumb_pid, MAX(galleryicon) as gallery_pid FROM cpg133_albums AS a INNER JOIN `gamehike_forums`.phpbb_users as u on u.user_id = a.category - 10000 INNER JOIN cpg133_pictures AS p ON p.aid = a.aid WHERE ((isnull(approved) or approved='YES') AND category > 10000)  GROUP BY category ORDER BY category LIMIT 0, 20 " on 0

mySQL error: Column 'pid' in field list is ambiguous

And here's the Critical Error...

Quote
USER:
------------------
Array
(
    [ID] => bcb77249cedbd2145b73993d9cc20b8d
    [am] => 1
    [liv] => Array
        (
           
  • => 6061
  • [1] => 6066
                [2] => 6228
                [3] => 6211
                [4] => 5654
            )

       
[search] => Array
        (
            [search] => koopa
            [album] => search
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [type] => AND
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                )

        )

    [sort] => na
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => Masamune
    [groups] => Array
        (
           
  • => 102
  • [1] => 102
                [2] => 103
                [3] => 125
                [4] => 145
                [5] => 163
                [6] => 297
                [7] => 358
                [8] => 445
            )

        [disk_max] => 0
        [disk_min] => 0
       
[can_rate_pictures] => 0
    [can_send_ecards] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 102
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg133_filetypes; (0s)
  • [1] => select * from cpg133_plugins order by priority asc; (0s)
        [2] => SELECT * FROM cpg133_bridge (0s)
        [3] => SELECT u.user_id AS user_id, u.user_password AS password, u.user_level FROM `gamehike_forums`.phpbb_users AS u, `gamehike_forums`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = 'ef6f071fbd55bba7764baf1d379d8b0f' AND u.user_id > 0 (0s)
        [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, ug.group_id AS group_id FROM `gamehike_forums`.phpbb_users AS u, `gamehike_forums`.phpbb_user_group AS ug WHERE u.user_id=ug.user_id AND u.user_id='2' (0s)
        [5] => SELECT ug.group_id+100 AS group_id FROM `gamehike_forums`.phpbb_users AS u, `gamehike_forums`.phpbb_user_group AS ug, `gamehike_forums`.phpbb_groups as g WHERE u.user_id=ug.user_id AND u.user_id='2' AND g.group_id = ug.group_id (0s)
        [6] => 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 cpg133_usergroups WHERE group_id in (102,102,103,125,145,163,297,358,445) (0s)
        [7] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 102 (0s)
        [8] => SELECT user_favpics FROM cpg133_favpics WHERE user_id = 2 (0.001s)
        [9] => DELETE FROM cpg133_banned WHERE expiry < '2006-01-31 19:25:55' (0s)
        [10] => SELECT * FROM cpg133_banned WHERE (ip_addr='68.169.116.162' OR ip_addr='68.169.116.162' OR user_id=2) AND brute_force=0 (0s)
        [11] => SELECT aid FROM cpg133_albums as a WHERE category>=10000 (0s)
        [12] => SELECT cid FROM cpg133_categories WHERE parent = '1' (0s)
        [13] => SELECT name, parent FROM cpg133_categories WHERE cid = '1' (0s)
        [14] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = '1'  ORDER BY pos (0s)
        [15] => SELECT aid FROM cpg133_albums as a WHERE category >= 10000 (0s)
        [16] => SELECT COUNT(*) FROM cpg133_pictures WHERE approved = 'NO' (0s)
        [17] => select null from cpg133_albums as p  INNER JOIN cpg133_pictures AS pics ON pics.aid = p.aid where ( category>10000 ) group by category; (0s)
        [18] => SELECT user_id as user_id,username as user_name,COUNT(DISTINCT a.aid) as alb_count,COUNT(DISTINCT pid) as pic_count,MAX(pid) as thumb_pid, MAX(galleryicon) as gallery_pid FROM cpg133_albums AS a INNER JOIN `gamehike_forums`.phpbb_users as u on u.user_id = a.category - 10000 INNER JOIN cpg133_pictures AS p ON p.aid = a.aid WHERE ((isnull(approved) or approved='YES') AND category > 10000)  GROUP BY category ORDER BY category LIMIT 0, 20  (0.002s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
       
[cat] => 1
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 5.0.18-Debian_1-log
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: GD
------------------
GD Version: 2.0 or higher
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:
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.10a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | Off
safe_mode_exec_dir | /usr/local/4admin/phpstuff | /usr/local/php/bin
safe_mode_gid | On | Off
safe_mode_include_dir | /tmp:/usr/local/4admin/apache/vhosts/gamehiker.com/httpdocs:/usr/local/4admin/apache/vhosts/gamehiker.com/web_users:/usr/local/4admin/apache/lib/php | no value
safe_mode_exec_dir | /usr/local/4admin/phpstuff | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/4admin/apache/lib/php | .:/usr/local/4admin/apache/lib/php
open_basedir | /tmp:/usr/local/4admin/apache/vhosts/gamehiker.com/httpdocs:/usr/local/4admin/apache/vhosts/gamehiker.com/storage:/usr/local/4admin/apache/vhosts/gamehiker.com/web_users:/usr/local/4admin/apache/lib/php | 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 | 900 | 30
max_input_time | -1 | -1
upload_max_filesize | 10M | 2M
post_max_size | 10M | 8M
==========================
Page generated in 0.099 seconds - 19 queries in 0.003 seconds - Album set : AND aid IN (90,92,93,94,95,100,102,139,146,147,148,149,152,153,154,155,156,157,158,159,160,161,165,166,172,176,178,183,191,192,197,198,199,200,211,212) ; Meta set: AND aid IN (90,92,93,94,95,100,102,139,146,147,148,149,152,153,154,155,156,157,158,159,160,161,165,166,172,176,178,183,191,192,197,198,199,200,211,212) ;
Logged

Nibbler

  • Guest
Re: phpBB and cpg 1.4.3 (stable)
« Reply #3 on: January 31, 2006, 08:41:21 pm »

Have you applied any mods to either phpbb or Coppermine ?

edit bridge/udb_base.inc.php, find

Code: [Select]
                        $sql .= "COUNT(DISTINCT pid) as pic_count,";
                        $sql .= "MAX(pid) as thumb_pid, ";

change to

Code: [Select]
                        $sql .= "COUNT(DISTINCT p.pid) as pic_count,";
                        $sql .= "MAX(p.pid) as thumb_pid, ";
Logged

Masamune

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: phpBB and cpg 1.4.3 (stable)
« Reply #4 on: January 31, 2006, 08:44:00 pm »

None for Coppermine, several for phpBB.

However, that did fix it. I assume that most of the debug errors it picks up are stuff I can safely ignore?
Logged

Nibbler

  • Guest
Re: phpBB and cpg 1.4.3 (stable)
« Reply #5 on: January 31, 2006, 08:48:17 pm »

Yeah, you can turn off debug mode now.
Logged

Masamune

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: phpBB and cpg 1.4.3 (stable)
« Reply #6 on: January 31, 2006, 08:48:54 pm »

Alright, thanks a million! I really appreciate it.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.