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: Large Photo's for printing not uploadable`  (Read 4219 times)

0 Members and 1 Guest are viewing this topic.

tex2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Large Photo's for printing not uploadable`
« 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
        (
           
  • => 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: ;
« Last Edit: October 30, 2006, 05:18:37 pm by GauGau »
Logged

tex2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Here is the file detail
« Reply #1 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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Large Photo's for printing not uploadable`
« Reply #2 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

Nibbler

  • Guest
Re: Large Photo's for printing not uploadable`
« Reply #3 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.
Logged

tex2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Large Photo's for printing not uploadable`
« Reply #4 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
Logged

tex2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Large Photo's for printing not uploadable`
« Reply #5 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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Large Photo's for printing not uploadable`
« Reply #6 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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Large Photo's for printing not uploadable`
« Reply #7 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.
Logged

tex2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Large Photo's for printing not uploadable`
« Reply #8 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
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 20 queries.