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

Upgrade to 3.0 through the browser fails: class question_graded_automatically not found

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Some of this test steps should be executed before upgrading to latest 30 and master*
      • You will need to check your apache error log, so ensure you can read it properly, defaults to syslog (probably /var/log/apache/error.log)

      You will need to repeat the same test for 30 and master:

      1. install Moodle 2.9.3
      2. install memcached server (sudo apt-get install memcached php5-memcached), restart apache if needed
      3. go to Site administration > Plugins > Caching > Configuration
      4. add an instance of memcached store, configure it (you can use default server 127.0.0.1)
      5. Edit mapping for "Question definitions" cache and point it to the new memcached store
      6. stop memcached server (sudo service memcached stop)
      7. make sure that there is no tick in the "Ready" column for this instance
      8. now you can upgrade using teh browser (http://YOURSITE/admin/index.php)
      9. ensure the process finishes as expected and you can see a button at the end
      10. check your apache php error log, it should have no 'Class 'question_graded_automatically' not found' errors
      Show
      Some of this test steps should be executed before upgrading to latest 30 and master* You will need to check your apache error log, so ensure you can read it properly, defaults to syslog (probably /var/log/apache/error.log) You will need to repeat the same test for 30 and master: install Moodle 2.9.3 install memcached server (sudo apt-get install memcached php5-memcached), restart apache if needed go to Site administration > Plugins > Caching > Configuration add an instance of memcached store, configure it (you can use default server 127.0.0.1) Edit mapping for "Question definitions" cache and point it to the new memcached store stop memcached server (sudo service memcached stop) make sure that there is no tick in the "Ready" column for this instance now you can upgrade using teh browser ( http://YOURSITE/admin/index.php ) ensure the process finishes as expected and you can see a button at the end check your apache php error log, it should have no 'Class 'question_graded_automatically' not found' errors
    • Workaround:
      Hide

      Work around 1
      Use the command line upgrade script.

      cd /YOUR/MOODLE/ROOT/
      php admin/cli/upgrade.php
      

      Work around 2

      • Ensure the cache stores you set are available when upgrading
      Show
      Work around 1 Use the command line upgrade script. cd /YOUR/MOODLE/ROOT/ php admin/cli/upgrade.php Work around 2 Ensure the cache stores you set are available when upgrading
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52162_master

      Description

      PHP Fatal Error while upgrading Moodle 2.9 to 3.0:

      PHP Fatal error: Class 'question_graded_automatically' not found in /var/www/html/moodle/question/type/multichoice/question.php on line 37

      Steps to reproduce it:

      1. Upgrade any 2.9 Moodle installation to 3.0 using Git.
      2. Proceed to the "Plugins check" page.
      3. When clicking on "Upgrade Moodle database now", database upgrade will begin but will eventually fail when trying to upgrade table "qtype_multianswer".

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Dec/15