forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: ricco0672 on March 28, 2010, 06:58:03 pm

Title: Thumbnails not created
Post by: ricco0672 on March 28, 2010, 06:58:03 pm
Hi,

I get the following error when trying to add some pics (not too large).

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/ricco/public_html/fotos/include/picmgmt.inc.php  on line 262

I was looking at the help, and found that:

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize

But, this did not solve my problem - cause I have 32 MB available in PHP.INI. I have tried to add only one photo or 10, it gives me always the same error message. Well, when using ImageMagick it was slightly different.

So, no clue where the problem could be. What data do you need from me?

This is the Debug info:
USER:
------------------
Array
(
    [ID] => f21e9953711437bf375e184a84998aba
    [am] => 1
    [lang] => german
    [liv] => Array
        (
           
        )

)

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

    [disk_max] => 90000000
    [disk_min] => 90000000
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 4
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 90000000
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [insert] => 1
)

==========================
POST :
------------------
Array
(
    [d0000] => 46
    [pics] => Array
        (
           
        )

    [album_lb_id_i0000] => d0000
    [picfile_i0000] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMwMzcuSlBH
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMwNDAuSlBH
    [album_lb_id_i0002] => d0000
    [picfile_i0002] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMwNDIuSlBH
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMwNDMuSlBH
    [album_lb_id_i0004] => d0000
    [picfile_i0004] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMwNDQuSlBH
    [album_lb_id_i0005] => d0000
    [picfile_i0005] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMwNDUuSlBH
    [album_lb_id_i0006] => d0000
    [picfile_i0006] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMxMTUuSlBH
    [album_lb_id_i0007] => d0000
    [picfile_i0007] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMxMzIuSlBH
    [album_lb_id_i0008] => d0000
    [picfile_i0008] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMxMzMuSlBH
    [album_lb_id_i0009] => d0000
    [picfile_i0009] => MjAxMC8yMDEwLTAyIEZlYnJ1YXIvSU1HXzMxMzQuSlBH
    [insert] => Markierte Dateien einfügen
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.13 - OK
------------------
mySQL version: 5.0.89-community
------------------
Coppermine version: 1.4.26(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 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:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.89
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib64 -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 | dl, exec, shell_exec, system, passthru, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid | dl, exec, shell_exec, system, passthru, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 50M | 50M
post_max_size | 8M | 8M
==========================
Page generated in 0.031 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;


many thanks in advance.

Andreas
Title: Re: Thumbnails not created
Post by: papukaija on March 28, 2010, 07:09:47 pm
Please post a link to your gallery (as asked in board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html)). How big is your photo? You can also use imagemagic since it is run outside php.

Finally, please remember this about the debug mode:
Quote
Turn it on (option "Everyone") if you are requesting help on the coppermine support board, so the supporters can have a look at the debug output as well.
Title: Re: Thumbnails not created
Post by: ricco0672 on March 28, 2010, 09:52:28 pm
Hi,

sorry,

http://72.29.73.247/~ricco/fotos

The photos are not bigger than 2,5 MB. I used ImageMagick before, but thumbnails were not generated since February. I don´t know what has changed as many pictures have been uploaded before that.

thanks,

Title: Re: Thumbnails not created
Post by: Joachim Müller on March 29, 2010, 08:08:58 am
But, this did not solve my problem - cause I have 32 MB available in PHP.INI.
So what? You need to re-read the section you refer to. Your reply
The photos are not bigger than 2,5 MB
clearly shows that as well: the file size doesn't matter at all. It's the dimensions of the image that counts.

This is the Debug info
Nobody asked for it.

If you have issues with upload, you need to do exactly as suggested in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support

I used ImageMagick before, but thumbnails were not generated since February. I don´t know what has changed as many pictures have been uploaded before that.
Then ask your webhost what has changed on your webserver setup. However, judging from the fact that you posted the link to your gallery by IP address I guess that you're self-hosting, which might be the initial cause for your issues.