Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2008, 02:29 PM
Junior Member
 
Join Date: Apr 2008
Posts: 2
Default 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!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 02:33 PM
Junior Member
 
Join Date: Apr 2008
Posts: 2
Default

Here's the prettier error message when I do a try catch:

Error: File "Zend/Gdata/Media/Extension/VideoQuery.php" does not exist or class "Zend_Gdata_Media_Extension_VideoQuery" was not found in the file
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:22 PM.