Large Photo's for printing not uploadable` Large Photo's for printing not uploadable`
 

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

Large Photo's for printing not uploadable`

Started by tex2, October 27, 2006, 02:10:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tex2

Dear Support
I also have the following problem which I dont know how to fix as I spend hours on your forum and manual to try to sort this.
Here is the error:
The size of file you have uploaded is too large (maximum allowed is 2048 x 2048) !

File: /home/newgallery/gallery/db_input.php - Line: 391

My debug code:
USER:
------------------
Array
(
    [ID] => 2334bff03974105b420f8b8a804fee79
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => root
    [groups] => Array
        (
           
  • => 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
    (
       
  • => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.001s)
        [1] => select * from cpg149_plugins order by priority asc; (0.001s)
        [2] => delete from `mysql`.cpg149_sessions where time<1161947026 and remember=0; (0.001s)
        [3] => delete from `mysql`.cpg149_sessions where time<1160741026; (0s)
        [4] => select user_id from `mysql`.cpg149_sessions where session_id=md5("3d82b63178648fb1fac37f3513e09291a589a7ffbd30e37f6c6813ffd6d644bd"); (0.001s)
        [5] => select user_id as id, user_password as password from `mysql`.cpg149_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 `mysql`.cpg149_users AS u INNER JOIN `mysql`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `mysql`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `mysql`.cpg149_sessions set time='1161950626' where session_id=md5('3d82b63178648fb1fac37f3513e09291a589a7ffbd30e37f6c6813ffd6d644bd'); (0.001s)
        [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-10-27 12:03:46' (0.001s)
        [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='192.168.3.200' OR ip_addr='192.168.3.188' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT category FROM cpg149_albums WHERE aid='1' (0.001s)
        [15] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.1.2 - OK
    ------------------
    mySQL version: 5.0.18
    ------------------
    Coppermine version: 1.4.9(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
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support: 1

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.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
    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 | show_source, system, shell_exec, passthru, popen, proc_open, copy | show_source, system, shell_exec, passthru, popen, proc_open, copy
    file_uploads | On | On
    include_path | .:/usr/share/php5:/usr/share/php5/PEAR | .:/usr/share/php5:/usr/share/php5/PEAR
    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 | 130 | 130
    max_input_time | 160 | 160
    upload_max_filesize | 60M | 60M
    post_max_size | 60M | 60M
    ==========================
    Page generated in 0.267 seconds - 16 queries in 0.015 seconds - Album set : ; Meta set: ;

tex2

The image properties is as follow:
Width: 2000pixels
Height: 3008 pixels
Horizontal resolution: 300dpi
Vertical resolution: 300dpi
Bit Depth: 24
File size: 1,262,627 bytes

As you can see its high resolution photographs and I dont know how to overcome this problem.

Stramm

do not post debug output unless requested

here's some interesting reading for you (the sticky thread of this board)
http://forum.coppermine-gallery.net/index.php?topic=24088.0

Nibbler

You say: 'maximum allowed is 2048 x 2048'

and  'Height: 3008 pixels'

The picture is clearly larger than the limits you have set in config.

tex2

Yes, thats correct. Its very large.
Sorry, I thought that the debug info will help.

What limit should I set then for images as large as this?
I can email you the pic if you want to see it, but like I said, its JPG and 4MB

tex2

ok, I have set the max file size to 3010
Now I get this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3988 bytes) in /home/newgallery/gallery/include/picmgmt.inc.php on line 272

What now?

Stramm


Joachim Müller

...especially http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690
Don't bother to post again without doing as suggested and reading the sticky thread (we mean it!) as well as the documentation.

tex2

Thanks, I got it!  ;D
I had to increase my memory in the php.ini file <--- For those people who is suffering with the same problem.
My memory was set to 32 and at 128 I could upload some images, after increasing even more to 256 - It worked.
Thanks GauGau
you may close the thread ;D