forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: idontno on November 26, 2005, 04:35:18 pm

Title: Moving pictures into album
Post by: idontno on November 26, 2005, 04:35:18 pm
This needs to be in 1.4 standalone. Can a moderator move it please?

Uploading image shows as succeeded however this notice shows in debug: /upload.php
Notice line 1968: Undefined variable: file_failure_array
Notice line 1969: Undefined variable: URI_failure_array
Notice line 1970: Undefined variable: zip_failure_array

Click Continue and the file name shows up but the thumbnail does not and notices = /include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Warning line 225: unlink(./albums/edit/preview_131510c7.JPG) [function.unlink]: No such file or directory
/include/functions.inc.php
Notice line 2648: Undefined variable: i
(The image that is in this directory at this point is named: mHTTP_temp_0f9a4fc6.JPG)

If I continue with the move Information shows: The previous file could not be placed.

You have successfully placed all the files.

Notices shows:/upload.php
Notice line 2181: Undefined index: user1
Notice line 2182: Undefined index: user2
Notice line 2183: Undefined index: user3
Notice line 2184: Undefined index: user4
/include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Warning line 225: unlink(albums/userpics/10001/thumb_matt~3.JPG) [function.unlink]: No such file or directory

The Directory albums/userpics/10001/ exists but the only photos in there are the original uploaded photos.

Debug info:
USER:
------------------
Array
(
    [ID] => f9bb0b642999d828a2af8d364b49bdd8
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => webmaster
    [groups] => Array
        (
           
        )

    [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
(
   
    [1] => select * from cpg140_plugins order by priority asc; (0.001s)
    [2] => delete from `portal`.cpg140_sessions where time<1133015431 and remember=0; (0.001s)
    [3] => delete from `portal`.cpg140_sessions where time<1131809431; (0s)
    [4] => select user_id from `portal`.cpg140_sessions where session_id=md5("db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f"); (0s)
    [5] => select user_id as id, user_password as password from `portal`.cpg140_users where user_id=1 (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 `portal`.cpg140_users AS u INNER JOIN `portal`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `portal`.cpg140_users AS u WHERE user_id='1' 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 cpg140_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
    [10] => update `portal`.cpg140_sessions set time='1133019031' where session_id=md5('db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-26 15:30:31' (0.001s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.208.146.36' OR ip_addr='68.208.146.36' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg140_temp_data WHERE unique_ID = 'b1b0de0d' (0s)
    [17] => UPDATE cpg140_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = 'b1b0de0d' (0.001s)
    [18] => SELECT category FROM cpg140_albums WHERE aid='1' (0s)
    [19] => DELETE FROM cpg140_temp_data WHERE unique_ID = 'b1b0de0d' (0.001s)
    [20] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 1
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => b1b0de0d
    [debugtext] => USER:
------------------
Array
(
    [ID] => f9bb0b642999d828a2af8d364b49bdd8
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => webmaster
    [groups] => Array
        (
           
        )

    [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
(
   
    [1] => select * from cpg140_plugins order by priority asc; (0.001s)
    [2] => delete from `portal`.cpg140_sessions where time<1133015336 and remember=0; (0.001s)
    [3] => delete from `portal`.cpg140_sessions where time<1131809336; (0s)
    [4] => select user_id from `portal`.cpg140_sessions where session_id=md5("db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f"); (0s)
    [5] => select user_id as id, user_password as password from `portal`.cpg140_users where user_id=1 (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 `portal`.cpg140_users AS u INNER JOIN `portal`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `portal`.cpg140_users AS u WHERE user_id='1' 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 cpg140_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
    [10] => update `portal`.cpg140_sessions set time='1133018936' where session_id=md5('db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-26 15:28:56' (0s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.208.146.36' OR ip_addr='68.208.146.36' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg140_temp_data WHERE unique_ID = 'b1b0de0d' (0.001s)
    [17] => UPDATE cpg140_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czo4OiJtYXR0LkpQRyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYzY1ZWYxZjguSlBHIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld18xMzE1MTBjNy5KUEciO319' WHERE unique_ID = 'b1b0de0d' (0.001s)
    [18] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
    [19] => SELECT cat.name FROM cpg140_categories cat, cpg140_albums alb WHERE alb.aid='1' AND cat.cid=alb.category (0.002s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => b1b0de0d
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => f9bb0b642999d828a2af8d364b49bdd8
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => webmaster
    [groups] => Array
        (
           
        )

    [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
(
   
    [1] => select * from cpg140_plugins order by priority asc; (0.001s)
    [2] => delete from `portal`.cpg140_sessions where time<1133015314 and remember=0; (0.001s)
    [3] => delete from `portal`.cpg140_sessions where time<1131809314; (0s)
    [4] => select user_id from `portal`.cpg140_sessions where session_id=md5("db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f"); (0s)
    [5] => select user_id as id, user_password as password from `portal`.cpg140_users where user_id=1 (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 `portal`.cpg140_users AS u INNER JOIN `portal`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `portal`.cpg140_users AS u WHERE user_id='1' 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 cpg140_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
    [10] => update `portal`.cpg140_sessions set time='1133018914' where session_id=md5('db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-26 15:28:34' (0s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.208.146.36' OR ip_addr='68.208.146.36' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
    [17] => SELECT unique_ID FROM cpg140_temp_data (0.001s)
    [18] => INSERT INTO cpg140_temp_data VALUES ('b1b0de0d', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czo4OiJtYXR0LkpQRyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYzY1ZWYxZjguSlBHIjt9fQ==', '1133018914') (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
           
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
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.2.2
Linked Version 1.2.2.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/share/pear | .:/usr/share/pear
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 | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.201 seconds - 19 queries in 0.011 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
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.2.2
Linked Version 1.2.2.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/share/pear | .:/usr/share/pear
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 | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.418 seconds - 20 queries in 0.014 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
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.2.2
Linked Version 1.2.2.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/share/pear | .:/usr/share/pear
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 | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.421 seconds - 21 queries in 0.013 seconds - Album set : ; Meta set: ;
Title: Re: Moving pictures into album
Post by: Nibbler on November 26, 2005, 04:47:44 pm
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Move picture to album and thumbnail problem
Post by: idontno on November 26, 2005, 08:56:33 pm
I mistakenly posted this in 1.3 support - this is a copy of what I posted. Sorry moderators

URL to gallery is http://www.mrcstudios.com/site/gallery/

User name = debuguser
password = password

Uploading image shows as succeeded however this notice shows in debug: /upload.php
Notice line 1968: Undefined variable: file_failure_array
Notice line 1969: Undefined variable: URI_failure_array
Notice line 1970: Undefined variable: zip_failure_array

Click Continue and the file name shows up but the thumbnail does not and notices = /include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Warning line 225: unlink(./albums/edit/preview_131510c7.JPG) [function.unlink]: No such file or directory
/include/functions.inc.php
Notice line 2648: Undefined variable: i
(The image that is in this directory at this point is named: mHTTP_temp_0f9a4fc6.JPG)

If I continue with the move Information shows: The previous file could not be placed.

You have successfully placed all the files.

Notices shows:/upload.php
Notice line 2181: Undefined index: user1
Notice line 2182: Undefined index: user2
Notice line 2183: Undefined index: user3
Notice line 2184: Undefined index: user4
/include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Warning line 225: unlink(albums/userpics/10001/thumb_matt~3.JPG) [function.unlink]: No such file or directory

The Directory albums/userpics/10001/ exists but the only photos in there are the original uploaded photos.

Debug info:
USER:
------------------
Array
(
    [ID] => f9bb0b642999d828a2af8d364b49bdd8
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => webmaster
    [groups] => Array
        (
           
        )

    [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
(
   
    [1] => select * from cpg140_plugins order by priority asc; (0.001s)
    [2] => delete from `portal`.cpg140_sessions where time<1133015431 and remember=0; (0.001s)
    [3] => delete from `portal`.cpg140_sessions where time<1131809431; (0s)
    [4] => select user_id from `portal`.cpg140_sessions where session_id=md5("db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f"); (0s)
    [5] => select user_id as id, user_password as password from `portal`.cpg140_users where user_id=1 (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 `portal`.cpg140_users AS u INNER JOIN `portal`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `portal`.cpg140_users AS u WHERE user_id='1' 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 cpg140_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
    [10] => update `portal`.cpg140_sessions set time='1133019031' where session_id=md5('db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-26 15:30:31' (0.001s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.208.146.36' OR ip_addr='68.208.146.36' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg140_temp_data WHERE unique_ID = 'b1b0de0d' (0s)
    [17] => UPDATE cpg140_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = 'b1b0de0d' (0.001s)
    [18] => SELECT category FROM cpg140_albums WHERE aid='1' (0s)
    [19] => DELETE FROM cpg140_temp_data WHERE unique_ID = 'b1b0de0d' (0.001s)
    [20] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 1
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => b1b0de0d
    [debugtext] => USER:
------------------
Array
(
    [ID] => f9bb0b642999d828a2af8d364b49bdd8
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => webmaster
    [groups] => Array
        (
           
        )

    [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
(
   
    [1] => select * from cpg140_plugins order by priority asc; (0.001s)
    [2] => delete from `portal`.cpg140_sessions where time<1133015336 and remember=0; (0.001s)
    [3] => delete from `portal`.cpg140_sessions where time<1131809336; (0s)
    [4] => select user_id from `portal`.cpg140_sessions where session_id=md5("db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f"); (0s)
    [5] => select user_id as id, user_password as password from `portal`.cpg140_users where user_id=1 (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 `portal`.cpg140_users AS u INNER JOIN `portal`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `portal`.cpg140_users AS u WHERE user_id='1' 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 cpg140_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
    [10] => update `portal`.cpg140_sessions set time='1133018936' where session_id=md5('db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-26 15:28:56' (0s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.208.146.36' OR ip_addr='68.208.146.36' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg140_temp_data WHERE unique_ID = 'b1b0de0d' (0.001s)
    [17] => UPDATE cpg140_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czo4OiJtYXR0LkpQRyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYzY1ZWYxZjguSlBHIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld18xMzE1MTBjNy5KUEciO319' WHERE unique_ID = 'b1b0de0d' (0.001s)
    [18] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
    [19] => SELECT cat.name FROM cpg140_categories cat, cpg140_albums alb WHERE alb.aid='1' AND cat.cid=alb.category (0.002s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => b1b0de0d
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => f9bb0b642999d828a2af8d364b49bdd8
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => webmaster
    [groups] => Array
        (
           
        )

    [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
(
   
    [1] => select * from cpg140_plugins order by priority asc; (0.001s)
    [2] => delete from `portal`.cpg140_sessions where time<1133015314 and remember=0; (0.001s)
    [3] => delete from `portal`.cpg140_sessions where time<1131809314; (0s)
    [4] => select user_id from `portal`.cpg140_sessions where session_id=md5("db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f"); (0s)
    [5] => select user_id as id, user_password as password from `portal`.cpg140_users where user_id=1 (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 `portal`.cpg140_users AS u INNER JOIN `portal`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `portal`.cpg140_users AS u WHERE user_id='1' 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 cpg140_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
    [10] => update `portal`.cpg140_sessions set time='1133018914' where session_id=md5('db58ecb15a3fec81825e0287a27c19a4957e0b9d6373a12ffe418355589b442f'); (0.001s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-26 15:28:34' (0s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.208.146.36' OR ip_addr='68.208.146.36' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
    [17] => SELECT unique_ID FROM cpg140_temp_data (0.001s)
    [18] => INSERT INTO cpg140_temp_data VALUES ('b1b0de0d', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czo4OiJtYXR0LkpQRyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYzY1ZWYxZjguSlBHIjt9fQ==', '1133018914') (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
           
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
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.2.2
Linked Version 1.2.2.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/share/pear | .:/usr/share/pear
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 | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.201 seconds - 19 queries in 0.011 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
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.2.2
Linked Version 1.2.2.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/share/pear | .:/usr/share/pear
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 | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.418 seconds - 20 queries in 0.014 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.14
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.2.2
Linked Version 1.2.2.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/share/pear | .:/usr/share/pear
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 | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.421 seconds - 21 queries in 0.013 seconds - Album set : ; Meta set: ;
Title: Re: Moving pictures into album
Post by: idontno on November 26, 2005, 09:15:01 pm
URL to gallery is http://www.mrcstudios.com/site/gallery/

User name = debuguser
password = password


OK Did what you said and found two copies of ImageMagick on the server I am on. I tried using the other both and got. The file 'albums/userpics/10001/matt~5.JPG' can't be inserted in the album

Error executing ImageMagick - Return value: 1


Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10001/matt~5.JPG' 'albums/userpics/10001/thumb_matt~5.JPG'



The convert program said:
convert: unable to open image `albums/userpics/10001/matt~5.JPG': Permission denied.



File: /var/www/html/mattc/site/gallery/db_input.php - Line: 391

So there is a clue but not sure how to solve it

Title: Re: Moving pictures into album
Post by: idontno on November 26, 2005, 09:30:21 pm
OK. Apparently the pics are uploading to the gallery with permissions of 644. All the folders from album on down to the gallery folder are 777. FOr some reason convert is not running as root. Thats my only explanation. Still don't know how to fix it
Title: Re: Move picture to album and thumbnail problem
Post by: kegobeer on November 27, 2005, 12:38:15 am
Quote
The file 'albums/userpics/10003/Sunset.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 1

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10003/Sunset.jpg' 'albums/userpics/10003/thumb_Sunset.jpg'


The convert program said:
convert: unable to open image `albums/userpics/10003/Sunset.jpg': Permission denied.

Switch to GD2 and see what happens.  Also verify your /albums directory (and all files/directories within) permission is 777.
Title: Re: Moving pictures into album
Post by: kegobeer on November 27, 2005, 12:53:50 am
Switch to GD2 - at least your gallery will work correctly.
Title: Re: Moving pictures into album
Post by: idontno on November 27, 2005, 03:02:15 am
One of the reasons I use Coppermine is because GD is not installed on that server. PHP was installed with RPM and it is gonna be easier to backup DB's and sites and do a reinstall of Fedora compiling Apahe and all from source. Trying to avoid that but it isnt looking good
Title: Re: Moving pictures into album
Post by: Nibbler on November 27, 2005, 03:04:26 am
Can't you just install the php-gd RPM ?
Title: Re: Move picture to album and thumbnail problem
Post by: idontno on November 27, 2005, 03:04:32 am
All folders are 777 and I even chmod _R 777 gallery just to make sure and changed owner of the gallery and all. I will hose it and do a proper install instead of the stock one done by whoever built this thing in the first place.
Title: Re: Moving pictures into album
Post by: Joachim Müller on November 27, 2005, 04:30:00 am
merged double posting. Don't post debug_output unless a supporter asks you to, Don't enable notices_display unless you know what you're doing.
Title: Re: Moving pictures into album
Post by: idontno on November 27, 2005, 02:30:07 pm
Sorry Gau Gau

Nibbler, I seem to remember trying that but since then I know I have installed the libraries that GD needs as well as trying to install GD from source. The problem then comes with recompiling PHP with GD support since it was initially installed from rpm. I will try again on the php-gd RPM and then see if I can manually edit PHP.ini to see what happens before I reinstall. If that doesnt work I am going to just reinstall since even the filesystem on this thing is really very strange.

Thanks all