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

cron error: wrong table name error {wiki_page} should be {wiki_pages}

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • 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

      here the error after running cron

      [Thu Oct 28 14:12:00 2010] [error] [client 192.168.100.27] Default exception handler: Error reading from database Debug: Table 'moodle.mdl_wiki_page' doesn't exist\nSELECT 'x' FROM mdl_wiki_page WHERE id = ? LIMIT 0, 1\n[array (\n 0 => '7',\n)]\n* line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown\n* line 691 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()\n* line 1540 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()\n* line 1525 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_sql()\n* line 1509 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_select()\n* line 770 of /tag/lib.php: call to moodle_database->record_exists()\n* line 874 of /tag/lib.php: call to tag_cleanup()\n* line 313 of /lib/cronlib.php: call to tag_cron()\n* line 91 of /admin/cron.php: call to cron_run()\n

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            nebgor Aparup Banerjee added a comment -

            gr the tag itemtype is being used as the table name..

            do we change itemtype from 'wiki_page' to wiki_pages' for wiki tags
            or
            do we put in a ugly to check hack

            or do we change this bit of design?

            Show
            nebgor Aparup Banerjee added a comment - gr the tag itemtype is being used as the table name.. do we change itemtype from 'wiki_page' to wiki_pages' for wiki tags or do we put in a ugly to check hack or do we change this bit of design?
            Hide
            nebgor Aparup Banerjee added a comment -

            added case for wiki_page =>

            {wiki_pages}

            fixed in head.

            Show
            nebgor Aparup Banerjee added a comment - added case for wiki_page => {wiki_pages} fixed in head.
            Hide
            nebgor Aparup Banerjee added a comment -

            gr, another issue was already made today and Dongsheng had a good fix.. going to undo my fix.

            Show
            nebgor Aparup Banerjee added a comment - gr, another issue was already made today and Dongsheng had a good fix.. going to undo my fix.
            Hide
            nebgor Aparup Banerjee added a comment -

            reverted the fix. mdl-24888 was the proper fix. this bug is a clone.

            Show
            nebgor Aparup Banerjee added a comment - reverted the fix. mdl-24888 was the proper fix. this bug is a clone.

              People

              • Assignee:
                nebgor Aparup Banerjee
                Reporter:
                nebgor Aparup Banerjee
                Tester:
                Nobody
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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