In reference to the article http://forum.coppermine-gallery.net/index.php/topic,23695.0.html ,I made changes in all the files ,but I get the following error, when I browse to the home page:
QuoteUSER:
------------------
Array
(
[ID] => 5e2325ec6bb8909a45eb7ef6ce1080cf
[am] => 1
[lang] => english
[search] => Array
(
[search] => Pranali
[album] => search
[newer_than] =>
[older_than] =>
[type] => AND
[user1] => on
[params] => Array
(
[user1] => on
)
)
[liv] => Array
(
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 8
[user_name] => Pranali
[groups] => Array
(
- => 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
(
- => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => delete from `coppermine`.cpg14x_sessions where time<1211282248 and remember=0; (0s)
[3] => delete from `coppermine`.cpg14x_sessions where time<1210076248; (0s)
[4] => select user_id from `coppermine`.cpg14x_sessions where session_id = '282f6b16aa6333788900cad75c84f8d4' (0s)
[5] => select user_id as id, user_password as password from `coppermine`.cpg14x_users where user_id=8 (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 `coppermine`.cpg14x_users AS u INNER JOIN `coppermine`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='8' (0s)
[7] => SELECT user_group_list FROM `coppermine`.cpg14x_users AS u WHERE user_id='8' 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 cpg14x_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 1 (0s)
[10] => update `coppermine`.cpg14x_sessions set time='1211285848' where session_id = '282f6b16aa6333788900cad75c84f8d4' (0s)
[11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 8 (0s)
[12] => DELETE FROM cpg14x_banned WHERE expiry < '2008-05-20 18:04:52' (0.001s)
[13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='192.168.1.75' OR ip_addr='192.168.1.75' OR user_id=8) AND brute_force=0 (0s)
[14] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '' ORDER BY pos (0s)
[15] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
[16] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
[17] => SELECT aid FROM cpg14x_albums WHERE category = 14 (0s)
[18] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0s)
[19] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '14' (0s)
[20] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=14 ORDER BY a.pos LIMIT 0,1 (0s)
[21] => SELECT a.aid, count( p.pid ) AS pic_count, max( p.pid ) AS last_pid, max( p.ctime ) AS last_upload, a.keyword FROM cpg14x_albums AS a LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (15)GROUP BY a.aid (0s)
[22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='109' (0s)
[23] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
[24] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
[25] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
[26] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0s)
[27] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
[28] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0s)
[29] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.2.5 - OK
------------------
mySQL version: 4.1.7
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.7
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
------------------
module doesn't exist
==========================
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/local/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.072 seconds - 30 queries in 0.001 seconds - Album set :
Also I am unable to search the gallery with the new userfields added.
That's not an error message, but debug_output. If it bothers you or you have no idea what it is, turn debug_mode off.
hi!
Thanks for the reply.
but I have started encountering a new error:
While executing query "INSERT INTO cpg14x_pictures (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, user5, user6, user7, pic_raw_ip, pic_hdr_ip, position) VALUES ('', '16', 'userpics/10010/', 'Water_lilies_try~0.jpg', '83794', '131875', '800', '600', '1211441583', '10', 'Rocks','', '', '', 'YES', 'this', '', '', '', '', '', '', 'IpAddress', 'Ipaddress', '0')" on 0
File: path-to-cpg-/include/functions.inc.php - Line: 249 ,
There is no database query in include/functions.inc.php ,Where do I need to make changes,The additional custom fields column gets added to the config table, & not pictures table, from which it is trying to fetch the data.
Also , i have added 'Author' as one of the field , after making the changes.When I upload a file,& fill the details for the 'Author' column of the picture,it gets stored as 'Array', instead, (seen when I click on the 'Edit file info' link.
As a result, i cannot search using any of the newly added custom field.please help
Hi!
I have managed to solve the problem by manually adding the fields to the pictures table.But every time a new field is added,this table will have to be added.