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

Fatal error: Class 'block_rss_client\output\core_text' not found in /blocks/rss_client/classes/output/item.php on line 130

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.3
    • Component/s: Blocks, RSS
    • Labels:

      Description

      Line 26 states namespace block_rss_client\output, hence using core_text::method() expects the class "core_text" under the same namespace, but it is a core class. Therefore it is necessary to add an "\" on that call:

      \core_text::substr($title, 0, 20) . '...';

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eberhardt Jan Eberhardt
              Reporter:
              eberhardt Jan Eberhardt
              Peer reviewer:
              Marina Glancy
              Integrator:
              Andrew Nicols
              Tester:
              Jun Pataleta
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16