coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: lincoln on June 16, 2004, 05:07:15 AM

Title: Debug Notices with phpBB
Post by: lincoln on June 16, 2004, 05:07:15 AM
I'm just testing out CPG 1.3 for the first time, to see if it will work as an image gallery for my forum users. The bridge file error gave me a scare, but I've found the update file which seems to fix the problem.

Do I need to worry about the following notices and if so, are there any suggested fixes?

On index.php:

Below the menu above categories:

Notice: Undefined index: cat_thumb in /home/mysite/public_html/gallery/themes/classic/theme.php on line 1048

Between Random Files and Latest additions:

Notice: Undefined variable: user_link in /home/mysite/public_html/gallery/include/functions.inc.php on line 630

In user galleries:

Notice: Undefined variable: forbidden in /home/mysite/public_html/gallery/bridge/phpbb.inc.php on line 297

Notice: Undefined variable: user_link in /home/mysite/public_html/gallery/include/functions.inc.php on line 630

Veiwing a random image:

Notice: Undefined variable: meta_keywords in /home/mysite/public_html/gallery/displayimage.php on line 633

When logged out:

Notice: Undefined index: offline in /home/mysite/public_html/gallery/include/init.inc.php on line 380


Notice: Undefined variable: meta_keywords in /home/mysite/public_html/gallery/displayimage.php on line 633


USER:
------------------
Array
(
   [ID] => 29340328948434239332032
   [am] => 1
   [theme] => classic
   [liv] => Array
       (
           [0] => 6
           [1] => 3
           [2] => 4
           [3] => 5
           [4] => 7
       )

)

==========================
USER DATA:
------------------
Array
(
   [0] => 3
   [user_id] => 3
   [1] => user
   [user_name] => user
   [2] => 1
   [user_level] => 1
   [groups] => Array
       (
           [0] => 1
           [1] => 2
           [2] => 9
           [3] => 837
           [4] => 1059
           [5] => 1077
       )

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

==========================
Queries:
------------------
Array
(
   [0] => SELECT extension, mime, content FROM cpg130_filetypes;
   [1] => SELECT user_id, username as user_name, user_level FROM `database`.phpbb_users WHERE user_id='3' AND user_password='password' AND user_active='1'
   [2] => SELECT (ug.group_id + 5) as group_id FROM `database`.phpbb_user_group as ug LEFT JOIN `database`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 3 AND user_pending = 0 AND group_single_user = 0
   [3] => 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 cpg130_usergroups WHERE group_id in (1,2,9,837,1059,1077)
   [4] => SELECT group_name FROM  cpg130_usergroups WHERE group_id= 1
   [5] => DELETE FROM cpg130_banned WHERE expiry < 552353243
   [6] => SELECT * FROM cpg130_banned WHERE ip_addr='1.1.1.1' OR ip_addr='1.1.1.1' OR user_id=3
   [7] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = ''  ORDER BY pos
   [8] => SELECT aid FROM cpg130_albums WHERE category = 3
   [9] => SELECT count(*) FROM cpg130_pictures, cpg130_albums WHERE cpg130_pictures.aid = cpg130_albums.aid AND category = 3
   [10] => SELECT cid, name, description, thumb FROM cpg130_categories WHERE parent = '3'  ORDER BY pos
   [11] => SELECT aid FROM cpg130_albums WHERE category>=10000
   [12] => SELECT count(*) FROM cpg130_pictures, cpg130_albums WHERE cpg130_pictures.aid = cpg130_albums.aid AND category >= 10000
   [13] => SELECT aid FROM cpg130_albums as a WHERE category = '0'
   [14] => SELECT count(*) FROM cpg130_albums as a WHERE category>0
   [15] => SELECT count(*) FROM cpg130_pictures as p LEFT JOIN cpg130_albums as a ON a.aid=p.aid WHERE a.category>=0
   [16] => SELECT count(*) FROM cpg130_comments as c LEFT JOIN cpg130_pictures as p ON c.pid=p.pid LEFT JOIN cpg130_albums as a ON a.aid=p.aid WHERE a.category>=0
   [17] => SELECT count(*) FROM cpg130_categories WHERE 1
   [18] => SELECT sum(hits) FROM cpg130_pictures as p LEFT JOIN cpg130_albums as a ON p.aid=a.aid WHERE a.category>=0
   [19] => SELECT count(*) FROM cpg130_albums as a WHERE category = '0'
   [20] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg130_albums as a LEFT JOIN cpg130_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1
   [21] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg130_pictures WHERE aid IN (1) AND approved = 'YES' GROUP BY aid
   [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg130_pictures WHERE pid='4'
   [23] => SELECT COUNT(*) from cpg130_pictures WHERE approved = 'YES' AND aid IN (2,3,4,1)
   [24] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg130_pictures WHERE approved = 'YES' AND aid IN (2,3,4,1)  ORDER BY RAND() LIMIT 8
   [25] => SELECT COUNT(*) from cpg130_pictures WHERE approved = 'YES' AND aid IN (2,3,4,1)
   [26] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg130_pictures WHERE approved = 'YES' AND aid IN (2,3,4,1)  ORDER BY pid DESC  LIMIT 0 ,8
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.3 - OK
------------------
mySQL version: 4.0.18-standard
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.18
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 | site,exec,dl | site,exec,dl
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | 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 | 16M | 16M
post_max_size | 55M | 55M
==========================
Page generated in 0.055 seconds - 27 queries in 0.004 seconds - Album set : AND aid IN (2,3,4,1)

Title: Re: Debug Notices with phpBB
Post by: Casper on June 16, 2004, 12:48:54 PM
If these notices only appear when in debug mode, they are nothing to worry about.
Title: Re: Debug Notices with phpBB
Post by: lincoln on June 16, 2004, 07:43:05 PM
Quote from: Casper on June 16, 2004, 12:48:54 PM
If these notices only appear when in debug mode, they are nothing to worry about.

Ok, thanks.  They don't see to show up otherwise.  I just noticed them when I turned on debug notices to figure out the bridge problem.