]> git.mjollnir.org Git - moodle.git/commitdiff
setup: Need memory before setup_DB.
authortjhunt <tjhunt>
Fri, 10 Jul 2009 03:31:30 +0000 (03:31 +0000)
committertjhunt <tjhunt>
Fri, 10 Jul 2009 03:31:30 +0000 (03:31 +0000)
!This is the correct version of the previous commit!

I was getting an interesting failure with $CFG->prefix commented
out in config.php (by mistake!). Abbreviated stack trace
lib/setup.php -> setup_DB -> dml_exception('prefixcannotbeempty') ->
  get_string -> string_manager->__construct -> get_plugin_types

That loads lib.php from every module, which runs out of memeory.

lib/setup.php

index 66339af6ef1ebe918c2f625dc05fb291cd8fb974..bedd57cf7d6c7accbd63de28c26de097bbc6beb4 100644 (file)
@@ -263,7 +263,7 @@ global $SCRIPT;
     setup_validate_php_configuration();
 
 /// Increase memory limits if possible
-    //raise_memory_limit('96M');    // We should never NEED this much but just in case...
+    raise_memory_limit('96M');    // We should never NEED this much but just in case...
 
     /// Connect to the database
     setup_DB();