Zend Gdata framework is driving me insane with YouTube API - getting errors
I installed Gdata in my php5 lib directory in MAMP where I put all my php libraries and the Picasa API works just fine. However when I try to run the simplest example:
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();
$query = $yt->newVideoQuery();
It crashes on the last line with:
Fatal error: Uncaught exception 'Zend_Exception' with message 'File "Zend/Gdata/Media/Extension/VideoQuery.php" does not exist or class "Zend_Gdata_Media_Extension_VideoQuery" was not found in the file' in /Applications/MAMP/bin/php5/lib/php/Zend/Loader.php:88 Stack trace: #0 /Applications/MAMP/bin/php5/lib/php/Zend/Gdata/App.php(719): Zend_Loader::loadClass('Zend_Gdata_Medi...') #1 [internal function]: Zend_Gdata_App->__call('newVideoQuery', Array) #2 /Users/jaycallicott/Sites/ina-governor-newsroom/web/src/class.Video.php(34): Zend_Gdata_YouTube->newVideoQuery() #3 /Users/jaycallicott/Sites/ina-governor-newsroom/web/src/class.Video.php(26): Video->showVideoList() #4 /Users/jaycallicott/Sites/ina-governor-newsroom/web/shared/src/class.WebApplication.php(143): Video->show_default() #5 /Users/jaycallicott/Sites/ina-governor-newsroom/web/src/class.Video.php(19): WebApplication->getDirective() #6 /Users/jaycallicott/Sites/ina-governor-newsroom/web/video.php(8): Video->Video() #7 {main} thrown in /Applications/MAMP/bin/php5/lib/php/Zend/Loader.php on line 8
I've tried modifying my include path a thousand different ways so that I could include every folder and sub folder but I really shouldn't have to do that in the first place. I have the newest build of 1.5. HELP!!!
|