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

Error in cron, tags section

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.3
    • Component/s: Tags
    • Labels:
      None
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I was executing a lot of cron scripts while playing with another bugs and then, sometimes, I've got this errror, related to tags:

      ERROR: column "nr" does not exist

      SELECT tb.tagid , COUNT AS nr FROM mdl_tag_instance ta INNER JOIN mdl_tag_instance tb ON ta.itemid = tb.itemid WHERE ta.tagid = 1 AND tb.tagid != 1 GROUP BY tb.tagid HAVING nr > 2 ORDER BY nr DESC

      line 686 of lib/dmllib.php: call to debugging()
      line 966 of lib/dmllib.php: call to get_recordset_sql()
      line 775 of tag/lib.php: call to get_records_sql()
      line 807 of tag/lib.php: call to tag_compute_correlations()
      line 369 of admin/cron.php: call to tag_cron()

      Using PostgreSQL (not tested under other DBs)

      Ciao

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08