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

RSS - SimplePie: Improved 'invalid characters' message

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 3.2
    • 2.9
    • RSS
    • MOODLE_29_STABLE
    • MOODLE_32_STABLE

      Just an Improvement I want to share.

      A feed with an encoding problem filled our logs without telling the feed url. Thats why I changed the corresponding line in /lib/simplepie/library/SimplePie.php, line 1386 to get more information about the mean feed:
      $this->error = sprintf('This XML document is invalid, likely due to invalid characters. XML error: %s at line %d, column %d, encoding %s, URL: %s', $parser->get_error_string(), $parser->get_current_line(), $parser->get_current_column(), $encoding, $this->feed_url);

            poltawski Dan Poltawski
            pegenau Steffen Pegenau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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