Some error and missing files with upload process? Some error and missing files with upload process?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Some error and missing files with upload process?

Started by sanax, June 07, 2006, 02:06:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanax

I contacted my host and they investigate into my problem. It says I've uploaded the images successful but the pics doesn't show up after uploading. Just a broken image. I've set all the settings according to size etc.

Here is their findings:

With debug mode turned on, you can see files may not be uploaded properly due to the following errors with the script:

/include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Warning line 225: unlink(./albums/edit/preview_48415227.jpg) [function.unlink]: No such file or directory

/include/functions.inc.php
Notice line 2648: Undefined variable: i


I recommend you contact CopperMine support with this information as well as the following information for support regarding this. Coppermine is familiar with their script and has most likely dealt with and resolved this issue in the past.

If you would like us to continue investigating, please let us know.

It will be helpful to provide Coppermine support with the error/notice messages I posted earlier, as well as the following debug output from your upload script:

USER:
------------------
Array
(
[ID] => 1f2bc411d56167f6845c737caa673368
[am] => 1
[lang] => english
)

==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => TheBoss
[groups] => Array
(
[0] => 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
(
[0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
[1] => select * from cpg_plugins order by priority asc; (0s)
[2] => delete from `gangster_copp1`.cpg_sessions where time<1149633834 and remember=0; (0s)
[3] => delete from `gangster_copp1`.cpg_sessions where time<1148427834; (0s)
[4] => select user_id from `gangster_copp1`.cpg_sessions where session_id=md5("f3e5992ab73bffc3a389838b90dce44d561077a37cfbacd44a78192b299aa0b6"); (0s)
[5] => select user_id as id, user_password as password from `gangster_copp1`.cpg_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 `gangster_copp1`.cpg_users AS u INNER JOIN `gangster_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `gangster_copp1`.cpg_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 cpg_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1 (0s)
[10] => update `gangster_copp1`.cpg_sessions set time='1149637434' where session_id=md5('f3e5992ab73bffc3a389838b90dce44d561077a37cfbacd44a78192b299aa0b6'); (0s)
[11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
[12] => DELETE FROM cpg_banned WHERE expiry < '2006-06-06 23:43:54' (0s)
[13] => SELECT * FROM cpg_banned WHERE (ip_addr='70.239.154.102' OR ip_addr='70.239.154.102' OR user_id=1) AND brute_force=0 (0s)
[14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
[15] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
[16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
[17] => SELECT unique_ID FROM cpg_temp_data (0s)
[18] => INSERT INTO cpg_temp_data VALUES ('c0cb029b', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMzoiaGFwcHlfY2F0LmpwZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjI6Im1VUklfdGVtcF80ZGQ5ZTJkZS5qcGciO319', '1149637435') (0s)
)

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

==========================
POST :
------------------
Array
(
[URI_array] => Array
(
[0] => http://www.grimstveit.no/jakob/files/images/happy_cat.jpg
[1] =>
[2] =>
)

[control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.19-standard
------------------
Coppermine version: 1.4.2(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
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.13
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 1.145 seconds - 19 queries in 0 seconds - Album set : ; Meta set: ;

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

sanax

Thanks.. i followed the instructions and with the help of the server techs I got an image into my gallery... but I still receive this error in a scroll box below the image...

Here is the actual page:  http://gallery.theartgangster.com/displayimage.php?pos=-2

USER:
------------------
Array
(
    [ID] => e5317f834daece7ea878370f3f58d247
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => delete from `gangster_copp1`.cpg_sessions where time<1149657817 and remember=0; (0s)
    [3] => delete from `gangster_copp1`.cpg_sessions where time<1148451817; (0s)
    [4] => select user_id from `gangster_copp1`.cpg_sessions where session_id=md5("a3fbcf5735e81d9cd8c2e5461805b42e02e9ba4ab3171693852ac5657c9a1b8c"); (0s)
    [5] => select user_id as id, user_password as password from `gangster_copp1`.cpg_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 `gangster_copp1`.cpg_users AS u INNER JOIN `gangster_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `gangster_copp1`.cpg_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 cpg_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [10] => update `gangster_copp1`.cpg_sessions set time='1149661417' where session_id=md5('a3fbcf5735e81d9cd8c2e5461805b42e02e9ba4ab3171693852ac5657c9a1b8c'); (0s)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2006-06-07 06:23:37' (0s)
    [13] => SELECT * FROM cpg_banned WHERE (ip_addr='24.161.204.233' OR ip_addr='24.161.204.233' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid from cpg_pictures WHERE pid='2'  LIMIT 1 (0s)
    [15] => SELECT title,keyword from cpg_albums WHERE aid='1' (0s)
    [16] => SELECT COUNT(*) from cpg_pictures WHERE (aid='1'  )    (0s)
    [17] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg_pictures WHERE (aid='1'  )    ORDER BY filename ASC  (0s)
    [18] => SELECT title,keyword from cpg_albums WHERE aid='1' (0s)
    [19] => SELECT COUNT(*) from cpg_pictures WHERE (aid='1'  )    (0s)
    [20] => SELECT * from cpg_pictures WHERE (aid='1'  )    ORDER BY filename ASC  LIMIT 1 ,1 (0s)
    [21] => SELECT title, comments, votes, category, aid FROM cpg_albums WHERE aid='1' LIMIT 1 (0s)
    [22] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM cpg_comments WHERE pid='2' ORDER BY msg_id ASC (0s)
    [23] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    [24] => SELECT title,keyword from cpg_albums WHERE aid='1' (0s)
    [25] => SELECT COUNT(*) from cpg_pictures WHERE (aid='1'  )    (0s)
    [26] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg_pictures WHERE (aid='1'  )    ORDER BY filename ASC  LIMIT 0 ,10 (0s)
)

==========================
GET :
------------------
Array
(
    [pos] => -2
)

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

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.19-standard
------------------
Coppermine version: 1.4.2(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
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.13
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.093 seconds - 27 queries in 0 seconds - Album set


..and these in the notice section:

/include/functions.inc.php
Notice line 88: Undefined variable: cpg_show_private_album
/include/themes.inc.php
Notice line 2238: Undefined variable: report_tgt
/displayimage.php
Notice line 310: Undefined variable: meta_keywords

Paver

I don't think you have any errors...

The debug_info box is just for debugging problems.  You can turn it off on the admin config panel.

The notices section shows you "notices", which are not errors.  The first notice was removed in the current version (1.4.7), for example.  Notices are just that, notices.  They might indicate a problem, but they can also be just empty variables that affect nothing.

Since you are running 1.4.2, you are strongly recommended to upgrade to the current version 1.4.7.

sanax

Thanks Paver... I was about to abort those 'errors' as if I've never seen them..lol

I'll upgrade in a minute... thanks!