Troubles uploading Troubles uploading
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Troubles uploading

Started by pccrew, February 20, 2008, 07:50:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pccrew

Every time i try to upload any image it isn't displayed -- i look in my folder and it uploaded fine, but it isn't displayed, all i get is a red X... Please help, i've read many articles :'(


Critical Error:The file 'albums/userpics/10001/haha___.jpeg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/a1553286/public_html/gallery/db_input.php - Line: 402


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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => pccrew
    [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 cp_filetypes; (0s)
    [1] => select * from cp_plugins order by priority asc; (0s)
    [2] => delete from `a1553286_cpm1`.cp_sessions where time<1203485985 and remember=0; (0s)
    [3] => delete from `a1553286_cpm1`.cp_sessions where time<1202279985; (0s)
    [4] => select user_id from `a1553286_cpm1`.cp_sessions where session_id=md5("2cbf7423eb6ff7d532a00923ce71c0e006388552cb4fb1baf2809f7e14aebf83"); (0s)
    [5] => select user_id as id, user_password as password from `a1553286_cpm1`.cp_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 `a1553286_cpm1`.cp_users AS u INNER JOIN `a1553286_cpm1`.cp_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `a1553286_cpm1`.cp_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 cp_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cp_usergroups WHERE group_id= 1 (0s)
    [10] => update `a1553286_cpm1`.cp_sessions set time='1203489585' where session_id=md5('2cbf7423eb6ff7d532a00923ce71c0e006388552cb4fb1baf2809f7e14aebf83'); (0s)
    [11] => SELECT user_favpics FROM cp_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cp_banned WHERE expiry < '2008-02-20 06:39:45' (0s)
    [13] => SELECT * FROM cp_banned WHERE (ip_addr='75.156.58.77' OR ip_addr='75.156.58.77' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT category FROM cp_albums WHERE aid='1' (0s)
    [15] => SELECT COUNT(*) FROM cp_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 1
    [MAX_FILE_SIZE] => 1048576
    [title] => asdf
    [caption] => asdf
    [keywords] => asdf
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.5 - OK
------------------
mySQL version: 4.1.22-standard-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 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.22
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
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 | system, show_source, exec, shell_exec, proc_open, passthru, set_time_limit, ini_restore, mysql_list_dbs, ini_alter, ftp_connect, dl, pfsockopen, openlog, syslog, readlink, symlink, link, chgrp, leak, popen, escapeshellcmd, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual, mb_send_mail | system, show_source, exec, shell_exec, proc_open, passthru, set_time_limit, ini_restore, mysql_list_dbs, ini_alter, ftp_connect, dl, pfsockopen, openlog, syslog, readlink, symlink, link, chgrp, leak, popen, escapeshellcmd, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual, mb_send_mail
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 15 | 15
max_input_time | 10 | 10
upload_max_filesize | 2M | 2M
post_max_size | 2M | 2M
==========================
Page generated in 0.065 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;


Notices: /db_input.php
Notice line 292: Undefined index: user1
Notice line 293: Undefined index: user2
Notice line 294: Undefined index: user3
Notice line 295: Undefined index: user4
Notice line 398: Undefined index: width
Notice line 398: Undefined index: height
/include/picmgmt.inc.php
Notice line 205: Undefined index: OS
Notice line 210: Undefined variable: retval
Warning line 210: exec() has been disabled for security reasons
Notice line 214: Undefined variable: retval
Warning line 283: chmod() [function.chmod]: No such file or directory
Warning line 285: getimagesize(albums/userpics/10001/thumb_haha___.jpeg) [function.getimagesize]: failed to open stream: No such file or directory
Warning line 288: unlink(albums/userpics/10001/thumb_haha___.jpeg) [function.unlink]: No such file or directory


Joachim Müller

Nobody asked for the debug_output nor the notices. Do exactly as suggested in the upload troubleshooting section of the docs. Read on to the section "asking for support on upload issues". If you don't do as suggested there, we won't be able to help you.

pccrew


Joachim Müller

That's not all we need. Do as I suggested: RTFM!

pccrew

sorry, i'll look for the proper way now.... but yea

and i put the debug incase someone needed it, don't flame me for adding things plz

pccrew

here's the account:

user:test
password:password

that what you're looking for?

Joachim Müller

Check your phpinfo-page to see if safe_mode is enabled on your webserver. Upgrade as well - you're running cpg1.4.10, while the most recent stable release currently is cpg1.4.16

pccrew

safe_mode =   Off

and i'll upgrade

Joachim Müller

OK. Set permissions as suggested in the permissions section of the docs for the albums folder and everything within it. The folder and all contents need to be writable by the script.

pccrew

i've set all permissions to 777

i'm updating versions at the moment so yea, the site will be down for the rest of the night... but thanks

Joachim Müller

Quote from: pccrew on February 20, 2008, 09:29:23 AM
i've set all permissions to 777
Are you sure that 777 is what is needed on your server?

Nibbler

You are trying to use ImageMagick but you can't because exec() has been disabled by your host. Switch to GD2 in config.

pccrew

ah, thanks so much -- i'll check it out

pccrew

we're good to go, thanks a ton