WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error - wrong settings (6 posts)

  1. Dazin
    Member
    Posted 2 years ago #

    I know that this problem was solved, but on my WordPress it doesn't work.
    I use this gallery polugin:
    http://wordpress.org/extend/plugins/gallery-plugin/
    and pictures upload correct, but when I want to public my gallery I can see this text:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 14400 bytes) in /home/dazinf/domains/dazinf.tk/public_html/wp-includes/media.php on line 258

    I have changed upload_max_filesize and post_max_size for 32MB on my PHP settings and added "define('WP_MEMORY_LIMIT', '32M')" on wp-config.php.

    Sorry for my english, I still learn. I hope you understand.

  2. s_ha_dum
    Member
    Posted 2 years ago #

    Sounds like you aren't exhausting memory on upload. You are exhausting it on page load. How big are you images (in kilobytes or megabytes)?

  3. Dazin
    Member
    Posted 2 years ago #

    I tryed upload only one 2MB picture and "the same story" ;/ I have got under 400MB free space on my hosting.

  4. s_ha_dum
    Member
    Posted 2 years ago #

    400MB of what? Hard drive space or RAM?

  5. Dazin
    Member
    Posted 2 years ago #

    400MB of drive space of course.

  6. s_ha_dum
    Member
    Posted 2 years ago #

    Not "of course". I have 1.5Gb RAM on one of my servers, with somewhere between 70Mb and 700Mb available depending on load.

    Your problem is not hard drive space. It is RAM. You are running out of RAM.

    upload_max_filesize and post_max_size won't help you. Your problem is with displaying the page not with uploading the image, as per your first post. You need to increase PHP's general memory limit.

    http://www.lost-in-code.com/programming/php-code/php-increase-memory-limit/

    Of course, you have to have the physical (or virtualized) RAM available in order to assign it. I don't know how much RAM you have.

Topic Closed

This topic has been closed to new replies.

About this Topic