Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Troubles uploading  (Read 5582 times)

0 Members and 1 Guest are viewing this topic.

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Troubles uploading
« on: February 20, 2008, 07:50:58 am »

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:
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
/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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Troubles uploading
« Reply #1 on: February 20, 2008, 07:52:50 am »

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.
Logged

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #2 on: February 20, 2008, 07:53:13 am »

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Troubles uploading
« Reply #3 on: February 20, 2008, 07:54:37 am »

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

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #4 on: February 20, 2008, 07:59:20 am »

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
Logged

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #5 on: February 20, 2008, 08:00:43 am »

here's the account:

user:test
password:password

that what you're looking for?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Troubles uploading
« Reply #6 on: February 20, 2008, 08:57:06 am »

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
Logged

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #7 on: February 20, 2008, 09:00:18 am »

safe_mode =   Off

and i'll upgrade
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Troubles uploading
« Reply #8 on: February 20, 2008, 09:02:42 am »

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.
Logged

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #9 on: February 20, 2008, 09:29:23 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Troubles uploading
« Reply #10 on: February 20, 2008, 09:48:09 am »

i've set all permissions to 777
Are you sure that 777 is what is needed on your server?
Logged

Nibbler

  • Guest
Re: Troubles uploading
« Reply #11 on: February 20, 2008, 01:54:53 pm »

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

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #12 on: February 20, 2008, 02:59:27 pm »

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

pccrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Troubles uploading
« Reply #13 on: February 20, 2008, 03:24:22 pm »

we're good to go, thanks a ton
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.