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

block_tag_youtube is completely broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
    • Affected Branches:
      MOODLE_29_STABLE

      Description

      This might be related to youtube api changes, see MDL-50176, or maybe nobody tested this block for a while

      To reproduce:

      • Go to Site administration > Appearences > Manage tags
      • Create a new tag and click on its name
      • Turn editing on and add "youtube" block

      Warning: Creating default object from empty value in /.../blocks/tag_youtube/block_tag_youtube.php on line 41
       
      Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /.../blocks/tag_youtube/block_tag_youtube.php on line 169
       
      Warning: SimpleXMLElement::__construct(): No longer available in /.../blocks/tag_youtube/block_tag_youtube.php on line 169
       
      Warning: SimpleXMLElement::__construct(): ^ in /.../blocks/tag_youtube/block_tag_youtube.php on line 169
      Exception - String could not be parsed as XML
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:
       
          line 169 of /blocks/tag_youtube/block_tag_youtube.php: Exception thrown
          line 169 of /blocks/tag_youtube/block_tag_youtube.php: call to SimpleXMLElement->__construct()
          line 126 of /blocks/tag_youtube/block_tag_youtube.php: call to block_tag_youtube->fetch_request()
          line 71 of /blocks/tag_youtube/block_tag_youtube.php: call to block_tag_youtube->get_videos_by_tag()
          line 288 of /blocks/moodleblock.class.php: call to block_tag_youtube->get_content()
          line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
          line 971 of /lib/blocklib.php: call to block_base->get_content_for_output()
          line 1023 of /lib/blocklib.php: call to block_manager->create_block_contents()
          line 473 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
          line 52 of /theme/clean/layout/columns3.php: call to core_renderer->standard_head_html()
          line 1015 of /lib/outputrenderers.php: call to include()
          line 945 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
          line 81 of /tag/index.php: call to core_renderer->header()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: