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

tag_cron() is failing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Tags, Wiki (2.x)
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Im getting the following error when running cron. Looks to be looking for wiki_page instead of wiki_pages. The table name seems to be coming out of the database.

      !!! Error reading from database !!!
      !! Table 'moodle2.mdl_wiki_page' doesn't exist
      SELECT 'x' FROM mdl_wiki_page WHERE id = ? LIMIT 0, 1
      [array (
      0 => '1',
      )] !!
      !! Stack trace: * line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown

      • line 691 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      • line 1540 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()
      • line 1525 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_sql()
      • line 1509 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_select()
      • line 770 of /tag/lib.php: call to moodle_database->record_exists()
      • line 874 of /tag/lib.php: call to tag_cleanup()
      • line 314 of /lib/cronlib.php: call to tag_cron()
      • line 91 of /admin/cron.php: call to cron_run()
        !!

      Note that at line 219 is a an if statement that means this code will usually not be executed. Probably want to temporarily modify it to see this error occur.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dongsheng Dongsheng Cai
                Reporter:
                andyjdavis Andrew Davis
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10