Error after uploading a file (2 posts)

  1. szimek
    Posted 9 years ago #


    when I'm uploading files (through admin->manage->pages->edit->upload) I get the following error:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2560 bytes) in /home/.../public_html/wp-admin/admin-functions.php on line 2153

    However the file is uploaded correctly and is visible in the "browse" tab.

    I'm using (most probably) PHP 4.4.1.

    Thanks in advance

  2. Ajd777
    Posted 9 years ago #

    I would first try re-uploading admin-functions.php because sometimes PHP files can get corrupted (either in uploading or because of server glitches) and end up in a permanent loop.

    If that doesn't fix it, it is a problem with the server itself. Ask your host to (or do it yourself if you have the ability) increase the amount of memory available to PHP.

    EDIT: Actually I'm positive the server is running out of alloted memory. You will have to change the value of 'memory_limit' in your php.ini or .htaccess file to something larger than 8mb. or you will need to make the image itself smaller.

Topic Closed

This topic has been closed to new replies.

About this Topic