forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: tex2 on October 27, 2006, 02:10:33 pm

Title: Large Photo's for printing not uploadable`
Post by: tex2 on October 27, 2006, 02:10:33 pm
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
        (
           
        )

    [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
(
    [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: ;
Title: Here is the file detail
Post by: tex2 on October 27, 2006, 02:15:56 pm
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.
Title: Re: Large Photo's for printing not uploadable`
Post by: Stramm on October 27, 2006, 02:16:51 pm
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
Title: Re: Large Photo's for printing not uploadable`
Post by: Nibbler on October 27, 2006, 02:56:51 pm
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.
Title: Re: Large Photo's for printing not uploadable`
Post by: tex2 on October 27, 2006, 03:25:47 pm
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
Title: Re: Large Photo's for printing not uploadable`
Post by: tex2 on October 27, 2006, 04:00:07 pm
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?
Title: Re: Large Photo's for printing not uploadable`
Post by: Stramm on October 27, 2006, 04:05:44 pm
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
Title: Re: Large Photo's for printing not uploadable`
Post by: Joachim Müller on October 29, 2006, 09:50:54 pm
...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 (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble).
Title: Re: Large Photo's for printing not uploadable`
Post by: tex2 on October 30, 2006, 12:19:56 pm
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