Fatal error: Allowed memory size of ... Fatal error: Allowed memory size of ...
 

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

Fatal error: Allowed memory size of ...

Started by popoeo, August 11, 2006, 06:31:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

popoeo

Hello everyone. I have a big problem uploading my pics: when i confirm the final upload step (description of pic) coppermine give me this error:

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 2000 bytes) in /web/htdocs/www.esmeraldaviaggi.com/home/cpg148/include/picmgmt.inc.php on line 272

Someone can help me? I set permissions on 777.
I noticed that coppermine creates the pics (small and intermediate) by exploring ftp but it can't be able to upload them into the album.
If you want to visit the gallery for some experiment the address is:

http://www.esmeraldaviaggi.com/cpg148/index.php
login: test
password: test


My infos are:

USER:
------------------
Array
(
    [ID] => 739dc4c694d262541cf10f99e7688010
    [am] => 1
    [lang] => italian
    [liv] => Array
        (
        )

)

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

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [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] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.001s)
        [1] => select * from cpg148_plugins order by priority asc; (0s)
        [2] => delete from `Sql104712_2`.cpg148_sessions where time<1155308698 and remember=0;

    (0.001s)
        [3] => delete from `Sql104712_2`.cpg148_sessions where time<1154102698; (0.001s)
        [4] => select user_id from `Sql104712_2`.cpg148_sessions where

    session_id=md5("6088a4f26bb6a86a51f99cb4764b1d4408962d3a230518c683133d030193faef"); (0.001s)
        [5] => select user_id as id, user_password as password from `Sql104712_2`.cpg148_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 `Sql104712_2`.cpg148_users AS u INNER JOIN

    `Sql104712_2`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `Sql104712_2`.cpg148_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 cpg148_usergroups WHERE group_id in (1)

    (0.001s)
        [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `Sql104712_2`.cpg148_sessions set time='1155312298' where

    session_id=md5('6088a4f26bb6a86a51f99cb4764b1d4408962d3a230518c683133d030193faef'); (0.001s)
        [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg148_banned WHERE expiry < '2006-08-11 16:04:58' (0s)
        [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='82.52.183.252' OR

    ip_addr='82.52.183.252' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT aid, title FROM cpg148_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg148_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0.001s)
        [17] => SELECT unique_ID FROM cpg148_temp_data (0.001s)
        [18] => INSERT INTO cpg148_temp_data VALUES ('a064b271',

    'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoyMjoiU2FtdG9fRG9taW5nb19fMDI2LmpwZyI7czoxNDoidG

    VtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfZGVlNzU4Y2EuanBnIjt9fQ==', '1155312298') (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [URI_array] => Array
            (
               
  • =>
                [1] =>
                [2] =>
            )

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 5.0.23-standard-log
    ------------------
    Coppermine version: 1.4.8(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    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.20
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1.2
    Linked Version 1.2.1.2
    ==========================
    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 | no value | no value
    file_uploads | On | On
    include_path | .:/php/lib/php/ | .:/php/lib/php/
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 120 | 120
    max_input_time | -1 | -1
    upload_max_filesize | 50M | 50M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.308 seconds - 19 queries in 0.015 seconds - Album set : ; Meta set: ;


Joachim Müller

Reason: Fatal error: Allowed memory size of X bytes exhausted
In the future, please don't post debug_output unless requested and search the board for your error message first.
The account you posted is an admin account - never do this on a public board - someone could have ruined your entire site in an instant or installed a backdoor. I created another user named "gaugau" (you can savely delete that user now) in order to make the test user account you posted a member of the registered group instead of the admin group. For security reasons, change all your passwords now.
Uploading a file with decent dimensions worked flawlessly (see http://www.esmeraldaviaggi.com/cpg148/displayimage.php?pos=-1).
Read the upload troubleshooting section from the docs and do exactly as suggested there if you have upload issues in the future (after having read the sticky thread article I refered to in the first place).

Joachim

popoeo

Dear GauGau,
I'm terribly sorry (what a newbie figure!!  :-[), I had my head in the clouds.
You say in the troubleshooting that is the resolution the problem, in fact my pics are high resolution 1600x1200 and over.  :-\
The optimal solution is to talk with my hoster in final way, I'll do that.
Thank you very much for the very fast support!  ;D

popoeo

Another fast question: what about using Imagemagick? The problem will probably remain?

Nibbler

Use imagemagick and your problem is solved. It isn't subject to the php memory limit since it runs outside of php.

popoeo