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

Upgrade: mod_forum upgrade produces a warning for every item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      command line upgrader
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      During the moodle.org upgrade, mod_forum produced the following php notice 19,904 times.
      Whilst not fatal, so many was incredibly annoying.

      PHP Notice: Undefined property: stdClass::$entrycomment in /html/mod/forum/db/upgrade.php on line 201
      PHP Stack trace:
      PHP 1.

      Unknown macro: {main}

      () Command line code:0
      PHP 2. require_once() Command line code:1
      PHP 3. upgrade_noncore() /html/admin/cli/upgrade.php:114
      PHP 4. upgrade_plugins() /html/lib/upgradelib.php:1285
      PHP 5. upgrade_plugins_modules() /html/lib/upgradelib.php:294
      PHP 6. xmldb_forum_upgrade() /html/lib/upgradelib.php:510

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            jtomkinson Jordan Tomkinson
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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