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: Won't upload files bigger than 1000px  (Read 6352 times)

0 Members and 1 Guest are viewing this topic.

nelgar

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Won't upload files bigger than 1000px
« on: December 08, 2005, 11:32:38 am »

I can't seem to upload files bigger than 1000 px.

I've set the max width or height for uploaded pictures to 5000 px (to be sure) and the max size in bytes to 3072 yet it won't upload any files bigger than 1000 px.

I've tried uploading a file smaller than 1000px of around 2 MB and then there's not problem - but as soon as the files is larger than 1000 px it won't let me upload not matter the size in bytes.

Help anyone ?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Won't upload files bigger than 1000px
« Reply #1 on: December 08, 2005, 05:00:12 pm »

I can't duplicate this on my 1.4.2 test install.  Most likely you are running into a memory limitation set by your webhost.  It takes a huge amount of memory to resize images, and it has nothing to do with the actual file size - it's all about the number of pixels in an image.

Ask your host to increase memory allocated to php.  Check out the FAQ for a complete list of php.ini entries.

http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#uploadGeneralTroubleshooting

Does this happen during the batch add process, during the web upload process, or both?
Logged
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

nelgar

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Won't upload files bigger than 1000px
« Reply #2 on: December 08, 2005, 08:46:50 pm »

It happens during both  the batch add process and the web upload process.

When I batch it it will add the smaller files but not the larger ones.
My PHP memory is 8 MB now - I can have it upgraded to 16 0r 24 MB but unfortunately I'll have to pay for that - which I don't mind if someone can actually say with some certainty it will solve this problem. (and should I upgrade to 16 or 24 MB then ?)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Won't upload files bigger than 1000px
« Reply #3 on: December 08, 2005, 11:35:39 pm »

read the sticky thread on this sub-board
Logged

nelgar

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Won't upload files bigger than 1000px
« Reply #4 on: December 09, 2005, 10:43:42 am »

The debug info gives me this

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

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

        )

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

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content, player FROM cpg140_filetypes; (0.001s)
  • [1] => select * from cpg140_plugins order by priority asc; (0.001s)
        [2] => delete from `snl93826`.cpg140_sessions where time<1134117407 and remember=0; (0.001s)
        [3] => delete from `snl93826`.cpg140_sessions where time<1132911407; (0s)
        [4] => select user_id from `snl93826`.cpg140_sessions where session_id=md5("40ee4ee38596df8699d541de2583fdc3c3cff16a5cbc631277f4d1a0bee84b3f"); (0s)
        [5] => select user_id as id, user_password as password from `snl93826`.cpg140_users where user_id=1 (0.001s)
        [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 `snl93826`.cpg140_users AS u INNER JOIN `snl93826`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `snl93826`.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 `snl93826`.cpg140_sessions set time='1134121007' where session_id=md5('40ee4ee38596df8699d541de2583fdc3c3cff16a5cbc631277f4d1a0bee84b3f'); (0s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-12-09 09:36:47' (0.001s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='80.60.249.56' OR ip_addr='80.60.249.56' 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)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
       
[URI_array] => Array
        (
           
  • =>

        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.4 - OK
------------------
mySQL version: 4.1.11-log
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
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 1
Active Links 2
Client API version 4.1.14
MYSQL_MODULE_TYPE no value
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | Off
safe_mode_exec_dir | /home/web/snl93826:/var/tmp:/usr/local/lib/php | no value
safe_mode_gid | On | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /home/web/snl93826:/var/tmp:/usr/local/lib/php | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .: | .:
open_basedir | /home/web/snl93826:/var/tmp:/usr/local/lib/php | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i -f snl93826.winta.dk | /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.078 seconds - 17 queries in 0.01 seconds - Album set : ; Meta set: ;




What conclusions can be drwn from that ?
It's probably a dumb question but I don't know anything about php  :-X

Logged

Nibbler

  • Guest
Re: Won't upload files bigger than 1000px
« Reply #5 on: December 09, 2005, 12:13:47 pm »

None whatsoever, that's why nobody asked to see it. Please post a link to a pic that you are unable to upload to Coppermine.
Logged

nelgar

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Won't upload files bigger than 1000px
« Reply #6 on: December 11, 2005, 02:04:17 pm »

well that would probably be any picture larger than 1000 px I suppose , but to give an example:


http://img.photobucket.com/albums/v206/uberloon/coppermine/Clip.jpg    2000x1333 - 258 K - Not Working
http://img.photobucket.com/albums/v206/uberloon/coppermine/Clipsmall.jpg     1000x666 - 233 K - Working
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Nibbler

  • Guest
Re: Won't upload files bigger than 1000px
« Reply #8 on: December 11, 2005, 07:42:41 pm »

I tried adding the pic that doesn't work for you to my gallery. It fails with an 8MB limit but can be added sucessfully with a 16MB limit. You could also try using imagemagick if available, it is not affected by the php memory limit.
Logged

nelgar

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Won't upload files bigger than 1000px
« Reply #9 on: December 11, 2005, 07:55:55 pm »

Thank you very much :)

I will try image magick first then :D
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.