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

Recent Activity block gives 'Fatal error' when displayed on 'Sticky blocks' admin page.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.4
    • Component/s: Administration, Blocks
    • Labels:
      None
    • Environment:
      n/a
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE

      Description

      In the 'Sticky blocks' admin page, if the 'Recent Activity' block is added to a 'Community type page, the following PHP 'Fatal error' message is displayed:
      "
      Fatal error: Call to undefined function: print_recent_activity() in /var/www/intranet/moodle/blocks/recent_activity/block_recent_activity.php on line 27
      "

      This appears to be becasue a required library file has not been included.

      Out solution is to add the following line to the start of moodle/blocks/recent_activity/block_recent_activity.php:
      "
      require_once("$CFG->dirroot/course/lib.php");
      "

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              jamesr James Robertson
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/Jan/07