2009年7月22日星期三

[fw-gdata] Problem with Zend_Gdata_YouTube::getVideoFeed()

Hi All,

I was using ZF 1.8.0 and recently upgraded to 1.8.4 at which time I
started getting the following error when querying Youtube:

*Warning*: include(Zend/Gdata/Media/Extension/VideoQuery.php)
[function.include
<http://dev.yourmagz.local/media/index/article/function.include>]:
failed to open stream: No such file or directory in
*/home/jbusby/workspace/library/Zend/Loader.php* on line *83

*The results come back fine, but I'm unable to discover the problem
here. I know the file Zend/Gdata/Media/Extension/VideoQuery.php does
not exist, it's actually located in the Zend/Gdata/YouTube/
directory. I've search my entire project looking for where the missing
file is being called but I've had no luck so far.
The block of code that gives me the error is:

$yt = new Zend_Gdata_YouTube();
$yt->setMajorProtocolVersion(2);
$query = $yt->newVideoQuery();
$query->setOrderBy('viewCount');
$query->setSafeSearch('strict');
$query->setFormat($this->_searchFormat);
$query->setVideoQuery($this->getTagwords());
$query->setMaxResults($this->getLimit());
$query->setStartIndex($this->getOffset());
$this->_results = $yt->getVideoFeed($query->getQueryUrl(2));

Anyone else experienced this and hopefully has a solution?

Cheers,

Jeff Busby

没有评论: