Moodle
  1. Moodle
  2. MDL-24803

Moodle Cron issue with updated tag correlation table

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 1.9.10, 2.0
    • Component/s: Tags
    • Labels:
      None
    • Environment:
      Linux,PSQL,2.0 RC1 (Build: 20101020)
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      When the Moodle cron is updating the tag_correlation table, it needs the id from the get_record query, otherwise you get this error :-

      Default exception handler: Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified. Debug:

      • line 904 of /lib/dml/pgsql_native_moodle_database.php: coding_exception thrown
      • line 967 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->update_record_raw()
      • line 860 of /tag/lib.php: call to pgsql_native_moodle_database->update_record()
      • line 873 of /tag/lib.php: call to tag_compute_correlations()
      • line 313 of /lib/cronlib.php: call to tag_cron()
      • line 61 of /admin/cli/cron.php: call to cron_run()

        Gliffy Diagrams

          Activity

          Hide
          Tim Lock added a comment -

          Patch to fix the tag correlation issue

          Show
          Tim Lock added a comment - Patch to fix the tag correlation issue
          Hide
          Petr Skoda added a comment -

          Fixed, thanks a lot for the report.

          Petr Skoda

          Show
          Petr Skoda added a comment - Fixed, thanks a lot for the report. Petr Skoda
          Hide
          dim added a comment -

          Please help me.. how i can run the patch to solve the problem?

          Show
          dim added a comment - Please help me.. how i can run the patch to solve the problem?

            People

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

              Dates

              • Created:
                Updated:
                Resolved: