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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.6.4
    • Administration, Blocks
    • None
    • n/a
    • MOODLE_16_STABLE
    • 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

            skodak Petr Skoda
            jamesr James Robertson
            Nobody Nobody
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/Jan/07