Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.2

Bug #19308 Uncaught exception
Submitted: 2012-02-27 14:11 UTC
From: derdoc Assigned:
Status: Open Package: Services_YouTube (version 0.2.2)
PHP Version: 5.3.8 OS: OSX
Roadmaps: (Not assigned)    
Subscription  


 [2012-02-27 14:11 UTC] derdoc (Vitus Lm)
Description: ------------ I get an error when I try to list the tags. which is caused by an malformed request response from google. That is google tells me that 'Your client has issued a malformed or illegal request. ' Test script: --------------- require_once 'Services/YouTube.php'; $dev_id = ""; $tag = "test"; $youtube = new Services_YouTube($dev_id, array('useCache' => true)); $videos = $youtube->listByTag($tag); foreach ($videos->xpath('//video') as $i => $video) { print "<img src='{$video->thumbnail_url}' alt='{$video->title}' />\n"; print "<a href='{$video->url}'>URL</a><br />\n"; } Expected result: ---------------- List of tags Actual result: -------------- "Services_YouTube_Exception: simplexml_load_string(): Entity: line 2: parser error : AttValue: " or ' expected in unknown on line unknown Exception trace # Function Location 0 Services_YouTube_Exception::errorHandlerCallback(2, 'simplexml_load_s…', '/usr/local/pear/…', 599, Array) unknown:unknown 1 simplexml_load_string('<!DOCTYPE html> …') /usr/local/pear/share/pear/Services/YouTube.php:5 in /usr/local/p.."

Comments