-
Bug
-
Resolution: Fixed
-
Critical
-
2.7.5, 2.8.3, 2.8.7, 2.9.1, 3.0
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
MDL-49085_master -
-
Team '; drop tables Sprint 9
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
I noticed this on Moodle.org when I tried to access the page https://moodle.org/tag/index.php?tag=moodle
I asked Matt the details of the exception, here they are:
|
[Wed Feb 04 11:53:50.785954 2015] [:error] [pid 27970] [client 150.101.174.144:52055] PHP Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/vhosts/moodle.org/html/blocks/tag_youtube/block_tag_youtube.php on line 173, referer: https://moodle.org/login/index.php
|
|
[Wed Feb 04 11:53:50.785982 2015] [:error] [pid 27970] [client 150.101.174.144:52055] PHP Warning: SimpleXMLElement::__construct(): name lookup timed out in /var/www/vhosts/moodle.org/html/blocks/tag_youtube/block_tag_youtube.php on line 173, referer: https://moodle.org/login/index.php
|
|
[Wed Feb 04 11:53:50.785990 2015] [:error] [pid 27970] [client 150.101.174.144:52055] PHP Warning: SimpleXMLElement::__construct(): ^ in /var/www/vhosts/moodle.org/html/blocks/tag_youtube/block_tag_youtube.php on line 173, referer: https://moodle.org/login/index.php
|
|
[Wed Feb 04 11:53:50.786583 2015] [:error] [pid 27970] [client 150.101.174.144:52055] Default exception handler: Exception - String could not be parsed as XML Debug:
|
Error code: generalexceptionmessage
|
* line 173 of /blocks/tag_youtube/block_tag_youtube.php: Exception thrown
|
* line 173 of /blocks/tag_youtube/block_tag_youtube.php: call to SimpleXMLElement->__construct()
|
* line 130 of /blocks/tag_youtube/block_tag_youtube.php: call to block_tag_youtube->fetch_request()
|
* line 75 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 962 of /lib/blocklib.php: call to block_base->get_content_for_output()
|
* line 1014 of /lib/blocklib.php: call to block_manager->create_block_contents()
|
* line 392 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
|
* line 27 of /theme/moodleorgcleaned/layout/moodleorg/columns2.php: call to core_renderer->standard_head_html()
|
* line 915 of /lib/outputrenderers.php: call to include()
|
* line 845 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
|
* line 80 of /tag/index.php: call to core_renderer->header()
|
, referer: https://moodle.org/login/index.php
|
Essentially the response from YouTube is not valid XML, causing an exception while loading it. We should handle the case where the response was not valid, due to a timeout or whatever, and ignore it.
- has a non-specific relationship to
-
MDL-50176 Youtube repository no longer working
-
- Closed
-
-
MDL-50572 Youtube repository should be disabled by default.
-
- Closed
-
- has been marked as being related by
-
MDLQA-8180 YouTube and Flickr blocks on tag page display related content
-
- Open
-
-
MDLQA-20038 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Open
-
-
MDLQA-15240 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-15830 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-16476 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-17093 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-17684 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-18190 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-18685 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
-
MDLQA-19148 CLONE - YouTube and Flickr blocks on tag page display related content
-
- Passed
-
- has to be done before
-
MDL-83095 Final deprecation of functions in blocks/tag_youtube/block_tag_youtube.php
-
- Closed
-
- is duplicated by
-
MDL-50866 block_tag_youtube is completely broken
-
- Closed
-