Fatal Error

Fatal Error

by Robert Jones -
Number of replies: 7

We installed Moodle on two different servers for two diffferent applications. Both installs went very smooth. Both are small, old, low budget systems. When we created a class on each, we got the following error message. The same message except 136 = 64 on the other computer. The system for the error message below is a K2350 with 256Mb RAM and it think is has a 13MB drive. This system is also running phpBB2. At this point we are just trying to get some experience with Moodle and are not yet trying to run production classes.


Fatal error
: Allowed memory size of 8388608 bytes exhausted (tried to allocate 184320 bytes) in /var/www/html/moodle/mod/workshop/lib.php on line 2354

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 136 bytes) in Unknown on line 0

We are running 1.2 Development 20031226 on RH 8.0.
Other than shooting the computers, do you have any suggestions.smile

Added Note: Now that I have posted this note and now found all the others with the same issue, is the answer to set memory_limit to 16M?  Or is there something else to try?

Thanks
Robert

Average of ratings: -
In reply to Robert Jones

Re: Fatal Error

by Alvin Shaffer -

Robert,

Check out http://moodle.org/mod/forum/discuss.php?d=4291

You can try to disable some of your unused modules

In reply to Alvin Shaffer

Re: Fatal Error

by Robert Jones -

Alvin

When you say "disable" modules, does that mean "Hide" or "Delete?" What if I want to enable them at some later time? Newbie questions smile

Robert

In reply to Robert Jones

Re: Fatal Error

by Alvin Shaffer -

I believe you need to delete it and delete that folder in mod/ directory.

If you want to reinstall then upload the module again in the mod/ folder and access the administration menu, moodle will normally pick it up and reinstall the module for you automatically

In reply to Robert Jones

Re: Fatal Error

by Marc Dastous -

I am trying to install Moodle on a second domain.  I currently have 1.1 working well on one domain and never had difficulty installing it.  However, I am installing 1.2 on the new domain and I am getting a similar error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 126780 bytes) in /www/s/ss4u/htdocs/moodle/lib/moodlelib.php on line 1523

I'm sure that this is related to the discussion, but I'm not sure how to fix it.  Could someone help?  Do I need to delete the modules I am not going to use, out of the web directory?

Any assistance would be greatly appreciated.

Marc

In reply to Marc Dastous

Re: Fatal Error

by Robert Jones -
Click the "Allowed Memory Size" glossary link in your posting. Change memory_limit to 16M in /etc/phpini. Then stop and restart web server. It worked for me.
In reply to Robert Jones

Re: Fatal Error

by Marc Dastous -
Uh, not an option!  I am being hosted by a company and do not have access to the web server/PHP settings.sad
In reply to Marc Dastous

Re: Fatal Error

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I've made a new FAQ entry with more information about allowed memory size errors, including another workaround for shared servers.