• I’ve been trying to upload photos to my page’s as the featured images and it’s been working fine but now it’s coming up with this when i try to upload.

    “Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20736 bytes) in /home/summerca/public_html/administration/wp-includes/media.php on line 254”

    How do I go about fixing this??

Viewing 3 replies - 1 through 3 (of 3 total)
  • That is quite a lot of memory to be using for a normal WordPress installation, do you have a lot of plugins activated? That is usually the cause of this error. If so try deactivating ones that are not essential to the site and see if the problem goes away.

    Alternatively,

    Are you using shared hosting or vps/dedicated?

    On shared you could try to override the php memory limit:
    In .htaccess: php_value memory_limit 96M
    OR
    In PHP file: ini_set(‘memory_limit’, ’96M’);

    On vps/dedicated you can just change the memory limit in the php.ini file using shell or file manager.

    Thread Starter daveedgar

    (@daveedgar)

    If set it up through another server with the wordpress plug-in where would I find the .htacess: php_value memory_limit 96m??

    Im the root of your installation you should find the .htaccess. You just need to add that line before or after the WordPress lines.

    If you don’t already have a .htaccess file you can create one and upload it with that line in it.

    You can change the 96M to any value but be aware on a shared host it still may not do anything depending on restrictions on your account.

    If you don’t have many plugins running and the memory limit does not work I suggest contacting your hosting provider.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Allowed memory size of 67108864 bytes exhausted’ is closed to new replies.