Add-ons
  1. Add-ons
  2. CONTRIB-3804

"Constant REPORT_CUSTOMSQL_MAX_RECORDS already defined" error

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.4
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_22_STABLE
    • Rank:
      43021

      Description

      Since updating a 2.2 site to the most recent 2.2.4 update, the following error has appeared at the top of any page that has the Configurable Reporting block on and any page thereafter to do with the configurable reports.
      The site also has adhoc_reports on.

      Notice: Constant REPORT_CUSTOMSQL_MAX_RECORDS already defined in /home/youthn1p/domains/supportzone.barclaysmoneyskills.com/public_html/blocks/configurable_reports/reports/sql/report.class.php on line 25

      Updating the block to the very latest available didn't fix this issue.

      To temporarily fix this, I had to disable the define in line 25 and set the $limitnum to 5000 manually. (Which is what define was set to).
      This doesn't seem to have made any other issues apart from fix this error.

        Activity

        Hide
        Daniel Bennett added a comment -

        Erk! Somehow managed to double click the submit button and generate two bug reports at once. Apologies!
        http://tracker.moodle.org/browse/CONTRIB-3803

        Show
        Daniel Bennett added a comment - Erk! Somehow managed to double click the submit button and generate two bug reports at once. Apologies! http://tracker.moodle.org/browse/CONTRIB-3803

          People

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

            Dates

            • Created:
              Updated:

              Development