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

RSS Feeds do not update during Cron job and can not add new Feeds. Appears SimplePie ignores Moodle Proxy settings.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.1.3, 2.2
    • Fix Version/s: None
    • Component/s: RSS
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Requires an environment with server behind authenticated proxy server.
      Set the Server->HTTP proxy settings and account login
      In a course add a Remote RSS Feed block and add a URL, e.g. http://moodle.org/rss/file.php/1/1/forum/1/rss.xml
      When you press Add new Feed it fails.

      Also any existing feeds from previous Moodle versions stop working when refreshed.
      From command line run the cron.php job (php -f admin/cli/cron.php)

      Any RSS feeds show:
      Processing cron function for rss_client....
      http://www.abc.net.au/science/news/xml/abc_news_in_science.xml error
      SimplePie failed with error:A feed could not be found at http://www.abc.net.au/science/news/xml/abc_news_in_science.xml. A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed.

      Show
      Requires an environment with server behind authenticated proxy server. Set the Server->HTTP proxy settings and account login In a course add a Remote RSS Feed block and add a URL, e.g. http://moodle.org/rss/file.php/1/1/forum/1/rss.xml When you press Add new Feed it fails. Also any existing feeds from previous Moodle versions stop working when refreshed. From command line run the cron.php job (php -f admin/cli/cron.php) Any RSS feeds show: Processing cron function for rss_client.... http://www.abc.net.au/science/news/xml/abc_news_in_science.xml error SimplePie failed with error:A feed could not be found at http://www.abc.net.au/science/news/xml/abc_news_in_science.xml . A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      To access the internet server needs to use an authenticated proxy server.
      Details for proxy server and login account are entered and work in other areas of Moodle.

      If an attempt is made to add an Remote RSS Feed block it reports
      Error loading this RSS feed (A feed could not be found at http://moodle.org/rss/file.php/1/1/forum/1/rss.xml. A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed.)

      The file /lib/simplepie/moodle_simplepie.php mentions using Moodle cURL
      "By using the moodle curl class we ensure that the correct proxy configuration is used."
      But there appears to be no further customisation to use the proxy settings.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              rudd_j James Rudd
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: