Fatal error: Allowed memory size of 8388608 bytes exhausted

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted

by Brad H -
Number of replies: 0

Howard,

You're a gentleman and a scholar smile That .htaccess trick solved the problem! I am pasting it below to help anyone else who is following:

We are taking steps to reduce some of the recent increases in memory requirements before the release of Moodle 1.2, but in the meantime, the easiest workaround to keep full functionality is to increase the allowed memory limit.

  1. If you have access to your main php.ini file, then find the line that looks like this:

    memory_limit = 8M;
    and change it to:

    memory_limit = 16M;

    then restart Apache.

  2. Otherwise, you may be able to change this value just for your site by creating or editing a .htaccess file in your main Moodle directory to contain this line:

    php_value memory_limit "16M"

Another option is to completely delete modules that you aren't using - you can do this by going to Admin -> Configuration -> Modules.