I've looked into this link to debug the gallery:
http://coppermine-gallery.net/tutorial/debug_mode.php
And I get this
Fatal Error:
While executing query "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 cpg_usergroups WHERE group_id in ()" on 0
mySQL error:
I thought maybe all I had to do was upload my previous cpg_usergropus sql to phpmyAdmin and all would be fixed. But when I did so, it still won't work. Could someone have a look at my sql and tell me if there is anything wrong with the coding? I am really not sure why I suddenly have this Fatal Error msg when the gallery was working perfectly fine two weeks ago and I have not been online since. Suddenly, it's showing this msg.
-- phpMyAdmin SQL Dump
-- version 2.9.0.2
-- Server version: 4.1.21
-- PHP Version: 4.4.2
-- --------------------------------------------------------
--
-- Table structure for table `cpg_usergroups`
--
CREATE TABLE `cpg_usergroups` (
`group_id` int(11) NOT NULL auto_increment,
`group_name` varchar(255) NOT NULL default '',
`group_quota` int(11) NOT NULL default '0',
`has_admin_access` tinyint(4) NOT NULL default '0',
`can_rate_pictures` tinyint(4) NOT NULL default '0',
`can_send_ecards` tinyint(4) NOT NULL default '0',
`can_post_comments` tinyint(4) NOT NULL default '0',
`can_upload_pictures` tinyint(4) NOT NULL default '0',
`can_create_albums` tinyint(4) NOT NULL default '0',
`pub_upl_need_approval` tinyint(4) NOT NULL default '1',
`priv_upl_need_approval` tinyint(4) NOT NULL default '1',
`upload_form_config` tinyint(4) NOT NULL default '3',
`custom_user_upload` tinyint(4) NOT NULL default '0',
`num_file_upload` tinyint(4) NOT NULL default '5',
`num_URI_upload` tinyint(4) NOT NULL default '3',
PRIMARY KEY (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=113 ;
--
-- Dumping data for table `cpg_usergroups`
--
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (102, 'Gallery: Chinese Buddhist Music Download', 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 0, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (101, 'Gallery: True Buddha School photos & music', 0, 0, 0, 0, 1, 0, 0, 1, 1, 3, 0, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (103, 'Cartomancy Forum: Moderator', 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 0, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (104, 'Latest Articles', 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 0, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (106, 'Testimonials', 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 0, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (108, 'Gallery Admin', 2000, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (112, 'Cartomancy Forum: Assistant Member', 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 0, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (110, 'Gallery: Gypsy Deck', 0, 0, 1, 1, 1, 1, 1, 1, 0, 3, 1, 5, 3);
INSERT INTO `cpg_usergroups` (`group_id`, `group_name`, `group_quota`, `has_admin_access`, `can_rate_pictures`, `can_send_ecards`, `can_post_comments`, `can_upload_pictures`, `can_create_albums`, `pub_upl_need_approval`, `priv_upl_need_approval`, `upload_form_config`, `custom_user_upload`, `num_file_upload`, `num_URI_upload`) VALUES (111, 'Cartomancy Forum: Member', 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 0, 5, 3);
By the way, I am using the latest CPG verison.
Thanks.
What exactly is the error?
What bridge are you using?
For some odd reasons, I can access the gallery today without seeing the "Fatal error" msg. Weird.
I still have my debug mode turned on and there's the msg:
USER:
------------------
Array
(
[ID] => 81f5605d35d26e69006761637d475533
[am] => 1
[lang] => english
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => damevenus
[groups] => Array
(
[0] => 106
[1] => 108
[2] => 111
[3] => 101
[4] => 110
[5] => 104
[6] => 113
)
[disk_max] => 2000
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 1
[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] => 1
[priv_upl_need_approval] => 0
[group_name] => Testimonials
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 106
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
[1] => select * from cpg_plugins order by priority asc; (0s)
[2] => SELECT * FROM cpg_bridge (0s)
[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 cpg_usergroups WHERE group_id in (106,108,111,101,110,104,113) (0s)
[4] => SELECT group_name FROM cpg_usergroups WHERE group_id= 106 (0s)
[5] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
[6] => SELECT * FROM cpg_mark_users WHERE user_id = 1 (0s)
[7] => SELECT * FROM cpg_mark_config (0s)
[8] => DELETE FROM cpg_banned WHERE expiry < '2007-02-28 11:30:21' (0s)
[9] => SELECT * FROM cpg_banned WHERE (ip_addr='207.216.236.131' OR ip_addr='207.216.236.131' OR user_id=1) AND brute_force=0 (0s)
[10] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = '' ORDER BY pos (0s)
[11] => SELECT aid FROM cpg_albums WHERE category = 19 (0s)
[12] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 19 (0s)
[13] => SELECT aid FROM cpg_albums WHERE category = 10 (0s)
[14] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 10 (0s)
[15] => SELECT aid FROM cpg_albums WHERE category = 20 (0s)
[16] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 20 (0s)
[17] => SELECT aid FROM cpg_albums WHERE category = 11 (0s)
[18] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 11 (0s)
[19] => SELECT aid FROM cpg_albums as a WHERE category = '0' (0s)
[20] => SELECT count(*) FROM cpg_albums as a WHERE 1 (0s)
[21] => SELECT count(*) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.001s)
[22] => SELECT count(*) FROM cpg_comments as c LEFT JOIN cpg_pictures as p ON c.pid=p.pid LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
[23] => SELECT count(*) FROM cpg_categories WHERE 1 (0s)
[24] => SELECT sum(hits) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON p.aid=a.aid WHERE 1 (0.005s)
[25] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.001s)
[26] => SELECT count(*) FROM cpg_albums as a WHERE category = '0' (0s)
[27] => SELECT COUNT(*) from cpg_pictures WHERE approved = 'YES' (0.001s)
[28] => SELECT * FROM cpg_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 4 (0.045s)
[29] => SELECT COUNT(*) from cpg_pictures WHERE approved = 'YES' (0.001s)
[30] => SELECT * FROM cpg_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,4 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.1.21-standard
------------------
Coppermine version: 1.4.10(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 2
Client API version 4.1.21
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.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 | 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 | 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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.743 seconds - 31 queries in 0.057 seconds - Album set : ; Meta set: ;
I don't know if that means I still have error in the sql or not. Could you please let me know? The bridge that I am using for aMember script.
Thanks for your prompt replies.
You'll need to contact whoever provides that bridge - it is not supported here.