• Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 8192 bytes) in /home/merlin/public_html/wordpress/wp-includes/media.php on line 2130

    Is there some way to purge this memory? Or increase it? If it is memory, then it should not matter how many images I have uploaded to the Media Library?

    Thanks!

    merlin

Viewing 7 replies - 1 through 7 (of 7 total)
  • It’s about the amount of memory allocated to PHP. This should help explain things a bit. Increasing memory allocated to PHP

    Thread Starter merlin4539

    (@merlin4539)

    OK, but what files do I need to edit to increase the php memory, and how can I do this?

    Also, why I am running out of php memory? Does something need to be purged, and if so, how?

    Thanks!

    Does something need to be purged, and if so, how?

    No. It means a script that’s running on your site wants to use more PHP memory to complete its task than your host allows PHP to use by default. Not to be confused with physical server memory.

    OK, but what files do I need to edit to increase the php memory, and how can I do this?

    wp-config.php The information I pointed you to is just one small section in the entire document. If you scroll up to the top of the page, the info starts here: Editing wp-config.php

    The fastest route to a solution may be to simply contact your hosts support group and ask them to increase the limit for you.

    Thread Starter merlin4539

    (@merlin4539)

    Thanks very much. I have sent a support ticket to my webhost. But is there some way I can edit the wp-config.php file in wordpress dashboard? And if so, where does the line increasing memory need to be placed?

    define( ‘WP_MEMORY_LIMIT’, ’96M’ );

    is there some way I can edit the wp-config.php file in wordpress dashboard?

    No. Only by FTP, the file manager in your hosts control panel, or secure shell.

    Try placing it directly above/before this line..

    /* That's all, stop editing! Happy blogging. */

    Thread Starter merlin4539

    (@merlin4539)

    Thanks again, CLayton. Looks like the problem was with my webhost. All is now working correctly again.

    But for future reference, so I can d/l the php file, edit it on my computer, and then send it back up via ftp?

    so I can d/l the php file, edit it on my computer, and then send it back up via ftp?

    While it’s always a good idea to make sure you do a backup first, you can actually do a “live” edit if you like. Your ftp client or file manager will usually allow you to edit on the fly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘memory problem when trying to upload media’ is closed to new replies.