largish file upload - UPDATED largish file upload - UPDATED
 

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

largish file upload - UPDATED

Started by revolt, February 14, 2006, 04:31:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

revolt

Hi, I have read through all the neccessary docs/posts.

I can upload smallish images (1024x768 @ 300k) but not 1600x1200 / 500k images.

Config for coppermine is setup to allow this size and slightly bigger. When trying to upload the larger files it seems to begin working then
http://www.myfto.co.uk/cpg143/db_input.php file just hangs on a blank page with no error.

website:
W: http://www.myfto.co.uk/cpg143
L: test
P: testuser

I dont have access to php.ini so cant make changes there :(


USER:
------------------
Array
(
    [ID] => 02d7ce37df1727f38789ae31408cac78
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 4
                [1] => 5
            )

    )

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

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.002s)
        [1] => select * from cpg143_plugins order by priority asc; (0.001s)
        [2] => delete from `myfto`.cpg143_sessions where time<1139926931 and remember=0; (0.001s)
        [3] => delete from `myfto`.cpg143_sessions where time<1138720931; (0.001s)
        [4] => select user_id from `myfto`.cpg143_sessions where session_id=md5("fd7fe520d131d1637219ccfc52ff7a65cbc15d89659d84103298f64ad6fe0c2d"); (0.001s)
        [5] => select user_id as id, user_password as password from `myfto`.cpg143_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 `myfto`.cpg143_users AS u INNER JOIN `myfto`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `myfto`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
        [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 cpg143_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `myfto`.cpg143_sessions set time='1139930531' where session_id=md5('fd7fe520d131d1637219ccfc52ff7a65cbc15d89659d84103298f64ad6fe0c2d'); (0.001s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.002s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-02-14 15:22:11' (0.001s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='81.171.159.73' OR ip_addr='81.171.159.73' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT aid, title FROM cpg143_albums WHERE category < 10000 ORDER BY title (0.001s)
        [15] => SELECT aid, title FROM cpg143_albums WHERE category='10001' ORDER BY title (0.001s)
        [16] => DELETE FROM cpg143_temp_data WHERE timestamp < 1139926931 (0.001s)
        [17] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.001s)
        [18] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='5' AND cat.cid=alb.category (0.001s)
        [19] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0.001s)
        [20] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='6' AND cat.cid=alb.category (0.001s)
        [21] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='3' AND cat.cid=alb.category (0.001s)
        [22] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='1' AND cat.cid=alb.category (0.003s)
        [23] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='4' AND cat.cid=alb.category (0.001s)
        [24] => SELECT cat.name FROM cpg143_categories cat, cpg143_albums alb WHERE alb.aid='7' AND cat.cid=alb.category (0.001s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 4.1.15-standard
    ------------------
    Coppermine version: 1.4.3(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.11
    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.1.4
    Linked Version 1.1.4
    ==========================
    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 | shell_exec,exec,system,passthru,popen | shell_exec,exec,system,passthru,popen
    file_uploads | On | On
    include_path | .:/usr/share/pear | .:/usr/share/pear
    open_basedir | /tmp:/usr/share/pear:/home/fhlinux218/m/myfto.co.uk/user | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | postmaster@myfto.co.uk | 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.164 seconds - 25 queries in 0.029 seconds - Album set : ; Meta set: ;


Nibbler

You've probably reached the limit of what your server resources allows. Resize your pics manually prior to upload.

revolt

Quote from: Nibbler on February 14, 2006, 05:29:29 PM
You've probably reached the limit of what your server resources allows. Resize your pics manually prior to upload.

Damn, I was hoping you were not going to say that! :(

revolt

Tried setting up on a different server, I am now getting the following error! Please help......

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6528 bytes) in /home/fhlinux218/r/revolt.myfto.co.uk/user/htdocs/cpg143/include/picmgmt.inc.php on line 259


Nibbler

There is a sticky thread dedicated to that issue, please search the board before posting.

Joachim Müller


revolt

Quote from: GauGau on February 15, 2006, 08:54:08 AM
http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690

Thankyou!

All sorted now working well, seems i will have to stick to 1024x768 sized images, which is not a problem. Will run quicker :P