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: Problems when uploading pictures.  (Read 4398 times)

0 Members and 1 Guest are viewing this topic.

morbid

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Problems when uploading pictures.
« on: July 19, 2006, 11:26:06 pm »

Hi all..

I´m having proböems when i try to upload a picture to my gallery. I am really poor at this, so I would appreciate some help.

This is what I get:

Critical error
The file 'albums/userpics/10001/Ammo1-2006~1.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/morbid/public_html/coppergall/db_input.php - Line: 391

 
And this:

USER:
------------------
Array
(
    [ID] => 242ca2670d0b31198d3732c12f061165
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => morbid
    [groups] => Array
        (
           
  • => 1

        )

    [disk_max] => 1024
    [disk_min] => 1024
    [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] => 1024
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
  • [1] => delete from `morbid_copp1`.cpg_sessions where time<1153340357 and remember=0; (0s)
        [2] => delete from `morbid_copp1`.cpg_sessions where time<1152134357; (0s)
        [3] => select user_id from `morbid_copp1`.cpg_sessions where session_id=md5("9f12803d2c770cf61c84750b4603efe63c56d321465f0cb9d1e0f8b9dfcacfcc"); (0s)
        [4] => select user_id as id, user_password as password from `morbid_copp1`.cpg_users where user_id=1 (0s)
        [5] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `morbid_copp1`.cpg_users AS u INNER JOIN `morbid_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [6] => SELECT user_group_list FROM `morbid_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [7] => 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)
        [8] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [9] => update `morbid_copp1`.cpg_sessions set time='1153343957' where session_id=md5('9f12803d2c770cf61c84750b4603efe63c56d321465f0cb9d1e0f8b9dfcacfcc'); (0s)
        [10] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [11] => DELETE FROM cpg_banned WHERE expiry < '2006-07-19 21:19:17' (0s)
        [12] => SELECT * FROM cpg_banned WHERE (ip_addr='81.224.240.118' OR ip_addr='81.224.240.118' OR user_id=1) AND brute_force=0 (0s)
        [13] => SELECT category FROM cpg_albums WHERE aid='6' (0s)
        [14] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    )

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.18-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
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.18
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 | exec,passthru,proc_open,system,posix_kill,popen | exec,passthru,proc_open,system,posix_kill,popen
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 | -1 | -1
upload_max_filesize | 55M | 55M
post_max_size | 55M | 55M
==========================
Page generated in 0.165 seconds - 15 queries in 0 seconds - Album set : ; Meta set: ;

What am I doing wrong?

Warm regards,
Miqe
http://www.terrariummorbidum.se/coppergall/
« Last Edit: July 21, 2006, 08:06:31 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Problems when uploading pictures.
« Reply #1 on: July 19, 2006, 11:54:49 pm »

Are you using GD or IM?

See http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble and update your gallery.
Logged

morbid

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problems when uploading pictures.
« Reply #2 on: July 20, 2006, 08:00:39 am »

Are you using GD or IM?

See http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble and update your gallery.

I´m sorry, man.. But I don´t know what you mean by "GD or IM" Forgive me, but I am just a stupid Swede..  ::)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Problems when uploading pictures.
« Reply #3 on: July 20, 2006, 08:05:06 am »

admin mode=>config=>Files and thumbnails advanced settings=>Method for resizing images
if you are using Imagemagick (IM) check the path to be correct and also try using GD2 instead
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems when uploading pictures.
« Reply #4 on: July 20, 2006, 08:07:29 am »

You either need GD or ImageMagick to run Coppermine (see "minimum requirements"). Check what you have on your server as suggested on the FAQ page and set Coppermine up accordingly (refer to documentation: Method for resizing images).
Don't answer a support suggestion with another question - do as suggested instead by doing exactly as described in the upload troubleshooting section of the docs (Nibbler has refered to that). Upgrading is mandatory as well and not related to your lack of knowledge about GD vs. ImageMagick.
Being a newbie is a poor excuse for not doing as suggested and failing to read. Don't expect to be spoon-fed. >:(
Logged

morbid

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problems when uploading pictures.
« Reply #5 on: July 20, 2006, 03:01:19 pm »

You either need GD or ImageMagick to run Coppermine (see "minimum requirements"). Check what you have on your server as suggested on the FAQ page and set Coppermine up accordingly (refer to documentation: Method for resizing images).
Don't answer a support suggestion with another question - do as suggested instead by doing exactly as described in the upload troubleshooting section of the docs (Nibbler has refered to that). Upgrading is mandatory as well and not related to your lack of knowledge about GD vs. ImageMagick.
Being a newbie is a poor excuse for not doing as suggested and failing to read. Don't expect to be spoon-fed. >:(

Hey, man.. I´m not expecting to ge spoon-fed.. Take it easy.. And I did not answer with a question! I know how to read, bur some of the words you people use, are like Lathin to me, you see, I AM from Sweden and I am not use to some of the words, frases or shortening of words that you use. I only ask when I do not understand, ok..
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems when uploading pictures.
« Reply #6 on: July 20, 2006, 09:19:57 pm »

Issue solved then?
Logged

morbid

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problems when uploading pictures.
« Reply #7 on: July 21, 2006, 03:58:20 pm »

My problem with the Gallery is solved, so now you don´t have to see me here...  >:(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems when uploading pictures.
« Reply #8 on: July 21, 2006, 08:07:51 pm »

What a nice person. Thanks for having given us the opportunity to support you. I admire your attitude. Wish there were more folks to encourage supporters.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.