cpg 1.4.3 (Stable) and phpBB2 problem cpg 1.4.3 (Stable) and phpBB2 problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

cpg 1.4.3 (Stable) and phpBB2 problem

Started by Blaky, January 25, 2006, 11:24:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blaky

When i integrate phpbb 2.0.18 and cpg 1.4.3 i give this error (with debug mode):

SQL Error
While executing query "SELECT COUNT(*) FROM `phpbbz`.phpbb_users" on 0

mySQL error:


Debug mode information

USER:
------------------
Array
(
    [ID] => 9fdfddf10ac6c9eda74f67a0e8ceaabb
    [am] => 1
    [liv] => Array
        (
        )

    [uid] => 3
)

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

    [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
(
    [0] => 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 `phpbbz`.phpbb_users AS u, `phpbbz`.phpbb_sessions AS s WHERE u.user_id=s.session_user_id AND s.session_id = '61664722c7b0bba59c5004f55b1cfb69' 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 `phpbbz`.phpbb_users AS u, `phpbbz`.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 `phpbbz`.phpbb_users AS u, `phpbbz`.phpbb_user_group AS ug, `phpbbz`.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) (0s)
    [7] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 102 (0s)
    [8] => SELECT user_favpics FROM cpg133_favpics WHERE user_id = 2 (0s)
    [9] => DELETE FROM cpg133_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
    [10] => REPLACE INTO cpg133_mod_online (user_id, user_name, user_ip, last_action) VALUES ('2', 'blaky', '212.73.152.53', NOW()) (0s)
    [11] => DELETE FROM cpg133_banned WHERE expiry < '2006-01-26 02:13:31' (0s)
    [12] => SELECT * FROM cpg133_banned WHERE (ip_addr='212.73.152.53' OR ip_addr='212.73.152.53' OR user_id=2) AND brute_force=0 (0s)
    [13] => SELECT cid, name, description, thumb FROM cpg133_categories WHERE parent = ''  ORDER BY pos (0s)
    [14] => SELECT aid FROM cpg133_albums WHERE category = 3 (0s)
    [15] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 3 (0s)
    [16] => SELECT count(*) FROM cpg133_albums as a WHERE category = '3' (0s)
    [17] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,2 (0s)
    [18] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg133_albums AS a  LEFT JOIN cpg133_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (2, 16)GROUP BY a.aid (0s)
    [19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='6' (0s)
    [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='194' (0s)
    [21] => SELECT aid FROM cpg133_albums WHERE category = 2 (0s)
    [22] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category = 2 (0s)
    [23] => SELECT count(*) FROM cpg133_albums as a WHERE category = '2' (0s)
    [24] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg133_albums as a LEFT JOIN cpg133_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,4 (0s)
    [25] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg133_albums AS a  LEFT JOIN cpg133_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (14, 3, 1, 7)GROUP BY a.aid (0.002s)
    [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='218' (0s)
    [27] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='199' (0s)
    [28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='197' (0s)
    [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg133_pictures WHERE pid='43' (0s)
    [30] => SELECT aid FROM cpg133_albums as a WHERE category>=10000 (0s)
    [31] => SELECT count(*) FROM cpg133_pictures as p, cpg133_albums as a WHERE p.aid = a.aid AND category >= 10000 (0s)
    [32] => SELECT aid FROM cpg133_albums as a WHERE category = '0' (0s)
    [33] => SELECT count(*) FROM cpg133_albums as a WHERE 1 (0s)
    [34] => SELECT count(*) FROM cpg133_pictures as p LEFT JOIN cpg133_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [35] => SELECT count(*) FROM cpg133_comments as c LEFT JOIN cpg133_pictures as p ON c.pid=p.pid LEFT JOIN cpg133_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [36] => SELECT count(*) FROM cpg133_categories WHERE 1 (0s)
    [37] => SELECT sum(hits) FROM cpg133_pictures as p LEFT JOIN cpg133_albums as a ON p.aid=a.aid WHERE 1 (0.001s)
    [38] => SELECT COUNT(*) FROM cpg133_pictures WHERE approved = 'NO' (0s)
    [39] => SELECT count(*) FROM cpg133_albums as a WHERE category = '0' (0s)
    [40] => SELECT COUNT(*) from cpg133_pictures WHERE approved = 'YES'  (0s)
    [41] => SELECT * FROM cpg133_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,10 (0s)
    [42] => SELECT COUNT(*) FROM `phpbbz`.phpbb_users (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.11 - OK
------------------
mySQL version: 4.0.22
------------------
Coppermine version: 1.4.3(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 1
Active Links 3
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /tmp | /tmp
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /tmp | /tmp
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/share/pear | .:/php/includes:/usr/share/pear
open_basedir | /home/httpd/vhosts/hi-bg.net/httpdocs:/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 | 60 | 60
upload_max_filesize | 128M | 128M
post_max_size | 128M | 128M
==========================
Page generated in 0.262 seconds - 43 queries in 0.003 seconds - Album set : ; Meta set: ;


Notes

[b]/themes/smf/theme.php
Notice line 23: Constant THEME_IS_XHTML10_TRANSITIONAL already defined
/include/functions.inc.php
Notice line 88: Undefined variable: cpg_show_private_album
Warning line 162: Cannot modify header information - headers already sent
/include/themes.inc.php
Notice line 1746: Undefined index: inactive_next_tab
Notice line 1747: Undefined index: inactive_prev_tab
Warning line 1167: Cannot modify header information - headers already sent
Warning line 1168: Cannot modify header information - headers already sent



Joachim Müller

don't post debug_output unless requested, and leave notices turned off if they don't mean anything to you. Instead, do as suggested in http://forum.coppermine-gallery.net/index.php?topic=24032.0