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

String formatting errors when exporting module RSS feeds

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-81577-403
    • MDL-81577-404
    • Hide

      Setup

      1. Log in as admin
      2. Navigate to General > Advanced features in site administration
      3. Ensure Enable RSS feeds is turned on
      4. Navigate to Plugins > Activity modules > Forum
        • Enable RSS feeds: Yes
      5. Navigate to Plugins > Activity modules > Glossary
        • Enable RSS feeds: Yes
      6. Create a course

      Forum

      1. Navigate to course Announcements forum
      2. Edit forum settings:
        • RSS feed for this activity: Discussions
        • Number of RSS recent articles: 5
      3. Create a new discussion in the forum
      4. Press More > RSS feed of discussions from forum navigation
      5. Confirm there are no notices in webserver errors logs related to calls to format_text()

      Glossary

      1. Create a Glossary activity in the course
        • RSS feed for this activity: Concepts with author
        • Number of RSS recent articles: 5
      2. Add a new entry to the glossary
      3. Press the weird looking "... ↓" actions menu, then RSS feed
      4. Confirm there are no notices in webserver errors logs related to calls to format_text()
      Show
      Setup Log in as admin Navigate to General > Advanced features in site administration Ensure Enable RSS feeds is turned on Navigate to Plugins > Activity modules > Forum Enable RSS feeds: Yes Navigate to Plugins > Activity modules > Glossary Enable RSS feeds: Yes Create a course Forum Navigate to course Announcements forum Edit forum settings: RSS feed for this activity: Discussions Number of RSS recent articles: 5 Create a new discussion in the forum Press More > RSS feed of discussions from forum navigation Confirm there are no notices in webserver errors logs related to calls to format_text() Glossary Create a Glossary activity in the course RSS feed for this activity: Concepts with author Number of RSS recent articles: 5 Add a new entry to the glossary Press the weird looking " ... ↓ " actions menu, then RSS feed Confirm there are no notices in webserver errors logs related to calls to format_text()

      Pre-existing problems relating to calls to format_text(...) in both forum/glossary modules when exporting RSS feeds - they are now producing debugging, probably because of the tightening of the method API in MDL-80072 (which is a good thing)

      Forum

      [Wed Apr 17 10:35:25.450536 2024] [php:notice] [pid 37] [client 172.23.0.1:40742] Debugging: Passing a courseid to format_text() is deprecated, please pass a context instead. in 
      * line 1383 of /lib/weblib.php: call to debugging()
      * line 390 of /mod/forum/rsslib.php: call to format_text()
      * line 81 of /mod/forum/rsslib.php: call to forum_rss_feed_contents()
      * line 161 of /rss/file.php: call to forum_rss_get_feed()
      , referer: http://localhost:8000/mod/forum/view.php?id=1&forceview=1
      

      Glossary

      [Wed Apr 17 10:45:57.911862 2024] [php:notice] [pid 36] [client 172.23.0.1:49566] Debugging: Passing a courseid to format_text() is deprecated, please pass a context instead. in 
      * line 1383 of /lib/weblib.php: call to debugging()
      * line 100 of /mod/glossary/rsslib.php: call to format_text()
      * line 161 of /rss/file.php: call to glossary_rss_get_feed()
      , referer: http://localhost:8000/mod/glossary/view.php?id=2&mode=entry&hook=1
      [Wed Apr 17 10:45:57.911891 2024] [php:notice] [pid 36] [client 172.23.0.1:49566] Debugging: The following options are not valid: trusttext in 
      * line 1428 of /lib/weblib.php: call to debugging()
      * line 100 of /mod/glossary/rsslib.php: call to format_text()
      * line 161 of /rss/file.php: call to glossary_rss_get_feed()
      , referer: http://localhost:8000/mod/glossary/view.php?id=2&mode=entry&hook=1
      

            pholden Paul Holden
            pholden Paul Holden
            Mathew May Mathew May
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 46 minutes
                1h 46m

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