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

Fatal error: Call to undefined function: print_recent_activity() when adding Recent Activity as a sticky block

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.1, 1.6.2, 1.7
    • 1.7
    • Blocks
    • None

    Description

      When adding Recent Activity as a sticky block, Sticky Blocks break and will no longer allow the administrator to add or remove sticky blocks. The error:

      Fatal error: Call to undefined function: print_recent_activity() in /blocks/recent_activity/block_recent_activity.php on line 27

      is displayed and will not allow any changes.

      Adding:

      require_once($CFG->dirroot.'/course/lib.php');

      as line 7 of /admin/stickyblocks.php appears to fix this issue.

      This problem may affect more than just Sticky Blocks. MDL-6380 (open) has been filed regarding this issue with quizzes, and MDL-5931 (reopened) has been filed regarding this issue with the database module.

      Attachments

        Activity

          People

            skodak Petr Skoda
            mcampbell Matt Campbell
            Stephen Bourget Stephen Bourget
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7/Nov/06