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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.6.4
    • 1.6.2
    • Administration, Blocks
    • None
    • n/a
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE

      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");
      "

            skodak Petr Skoda
            jamesr James Robertson (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.