Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-36454

Clean Moodle install fails due to caching

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Caching, Installation
    • Labels:
    • Testing Instructions:
      Hide
      • Install master from integration.git from scratch (not having any config.php file).
      • TEST: You're able to pick a lang, setup dirs, configure the db and arrive to the copyright page (that launches installation) without any problem.
      • Optional TEST: Continue the installation (db structures, admin user, frontpage config) and it ends without error.
      Show
      Install master from integration.git from scratch (not having any config.php file). TEST: You're able to pick a lang, setup dirs, configure the db and arrive to the copyright page (that launches installation) without any problem. Optional TEST: Continue the installation (db structures, admin user, frontpage config) and it ends without error.
    • Workaround:
      Hide

      I was able to get past this by dropping in a pre-made config.php file.

      Show
      I was able to get past this by dropping in a pre-made config.php file.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE

      Description

      On a fresh install, the following error is reported in the installation process. It happens after selecting a language and nominating the paths.

      Fatal error: Class 'cache' not found in D:\xampp\htdocs\moodle_master_test_mysql_copy\lib\moodlelib.php on line 6492

      David Mo got a bit more detail when he replicated the problem.

      Fatal error: Class 'cache' not found in /home/davidm/Desktop/moodlecode/INTEGRATION/master/lib/moodlelib.php on line 6492
      Call Stack: 0.0016 983192
      1. {main}() /home/davidm/Desktop/moodlecode/INTEGRATION/master/install.php:0 0.0670 27070760
      2. get_string() /home/davidm/Desktop/moodlecode/INTEGRATION/master/install.php:451 0.0670 27070920
      3. get_string_manager() /home/davidm/Desktop/moodlecode/INTEGRATION/master/lib/moodlelib.php:7388 0.0670 27073272
      4. core_string_manager->__construct() /home/davidm/Desktop/moodlecode/INTEGRATION/master/lib/moodlelib.php:6326 

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              fred Frédéric Massart added a comment -

              I tried to find a workaround by including the cache/lib.php but it then create problems because CFG is not yet set. I tried to manually set CFG to run the install, but the script failed by running out of memory. Don't have much more information than that!

              Show
              fred Frédéric Massart added a comment - I tried to find a workaround by including the cache/lib.php but it then create problems because CFG is not yet set. I tried to manually set CFG to run the install, but the script failed by running out of memory. Don't have much more information than that!
              Hide
              rwijaya Rossiani Wijaya added a comment -

              I experienced this issue also when installing a fresh copy of master for MDL-36196.

              Show
              rwijaya Rossiani Wijaya added a comment - I experienced this issue also when installing a fresh copy of master for MDL-36196 .
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              I'm self-integrating this to have integration.git installable ASAP. Trivial enough for my abilities:

              --- a/install.php
              +++ b/install.php
              @@ -193,6 +193,7 @@ require_once($CFG->libdir.'/deprecatedlib.php');
               require_once($CFG->libdir.'/adminlib.php');
               require_once($CFG->libdir.'/environmentlib.php');
               require_once($CFG->libdir.'/componentlib.class.php');
              +require_once($CFG->dirroot.'/cache/lib.php');

              Ciao

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - I'm self-integrating this to have integration.git installable ASAP. Trivial enough for my abilities: --- a/install.php +++ b/install.php @@ -193,6 +193,7 @@ require_once($CFG->libdir.'/deprecatedlib.php'); require_once($CFG->libdir.'/adminlib.php'); require_once($CFG->libdir.'/environmentlib.php'); require_once($CFG->libdir.'/componentlib.class.php'); +require_once($CFG->dirroot.'/cache/lib.php'); Ciao
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              Integrated (master, aka 2.4 only), self-thanks / self-welcome...

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - Integrated (master, aka 2.4 only), self-thanks / self-welcome...
              Hide
              abgreeve Adrian Greeve added a comment -

              Tested on the latest Integration branch.
              I did a clean install all the way to importing in users and creating courses.
              No errors found.
              Test passed.

              Show
              abgreeve Adrian Greeve added a comment - Tested on the latest Integration branch. I did a clean install all the way to importing in users and creating courses. No errors found. Test passed.
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              Amazed. Inspired. Grateful. That’s how your generosity makes me feel.

              (not really)

              Closing, thanks!

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - Amazed. Inspired. Grateful. That’s how your generosity makes me feel. (not really) Closing, thanks!

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    3/Dec/12