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

Unable to upgrade to moodle dev 20130913 from prior version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      During the last upgrade I get the following error:

      Error reading from database
      Debug info: Unknown column 'cacherev' in 'field list'
      SELECT id,shortname,fullname,format,enablecompletion,groupmode,groupmodeforce,cacherev FROM mdl_course WHERE id = ?
      [array (
      0 => '1',
      )]
      Error code: dmlreadexception
      Stack trace:

      line 436 of \lib\dml\moodle_database.php: dml_read_exception thrown
      line 996 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
      line 1410 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
      line 1382 of \lib\dml\moodle_database.php: call to moodle_database->get_record_sql()
      line 1361 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
      line 609 of \lib\modinfolib.php: call to moodle_database->get_record()
      line 450 of \lib\modinfolib.php: call to course_modinfo::build_course_cache()
      line 411 of \lib\modinfolib.php: call to course_modinfo->__construct()
      line 2003 of \lib\modinfolib.php: call to course_modinfo::instance()
      line 1809 of \lib\navigationlib.php: call to get_fast_modinfo()
      line 1876 of \lib\navigationlib.php: call to global_navigation->generate_sections_and_activities()
      line 420 of \course\format\lib.php: call to global_navigation->load_generic_course_sections()
      line 1788 of \lib\navigationlib.php: call to format_base->extend_course_navigation()
      line 1093 of \lib\navigationlib.php: call to global_navigation->load_course_sections()
      line 2982 of \lib\navigationlib.php: call to global_navigation->initialise()
      line 3030 of \lib\navigationlib.php: call to navbar->has_items()
      line 55 of \theme\bootstrapbase\renderers\core_renderer.php: call to navbar->get_items()
      line 57 of \theme\clean\layout\columns1.php: call to theme_bootstrapbase_core_renderer->navbar()
      line 860 of \lib\outputrenderers.php: call to include()
      line 790 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 234 of \lib\outputrenderers.php: call to call_user_func_array()
      line 147 of \admin\renderer.php: call to plugin_renderer_base->__call()
      line 147 of \admin\renderer.php: call to core_admin_renderer->header()
      line 286 of \admin\index.php: call to core_admin_renderer->upgrade_confirm_page()

      I can't upgrade moodle, even if i go directly to the admin/index.php page.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              ghigio Federico
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: