WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal error: Allowed memory size of 33554432 bytes exhausted (4 posts)

  1. Christiaan
    Member
    Posted 4 years ago #

    I'm getting this message when I upload an image:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2848 bytes) in /homedirectory/wp-admin/includes/image.php on line 147

    Sometimes the file will actually get uploaded properly. Sometimes not.

    If I add php_value memory_limit 32M to my htaccess file then I get a 500 Internal Server Error on my whole site.

    Any advice?

  2. alism
    Member
    Posted 4 years ago #

    You can try adding:
    define('WP_MEMORY_LIMIT', '64M');
    into your wp-config.php file.

    or, add:
    memory_limit = 32M ;
    to your php.ini (if you have access)

    or, just talk to your host.

  3. whooami
    Member
    Posted 4 years ago #

    .. just a friendly reminder that had you put your topic title into the search box, you would have gotten your answer also.

  4. Christiaan
    Member
    Posted 4 years ago #

    You can try adding:
    define('WP_MEMORY_LIMIT', '64M');
    into your wp-config.php file.

    This one appears to have done the trick, thanks very much.

    Strange thing is I've been with Hostpapa for a while now and this just came out of nowhere for the first time.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.