Encountered Problems in Programming Announcement

Hi Everyone,

    Today I setup LectureShare to run the YouTube Data API. Fortunately, Google bundles the Goggle Data PHP Client Library with the Zend Framework which makes it easy to install. 

Problem:

     However, I ran into one fairly large problem with the installation. The Zend Gdata 1.7.2 version was missing the Comments.php file. I dont know how or why it was missing but I know it was missing.  I got this error when trying to run the installation checker :

Warning: require_once(Zend/Gdata/Extension/Comments.php) [function.require-once]: failed to open stream: No such file or directory in /????/????/????/ZendGdata/library/Zend/Gdata/YouTube/VideoEntry.php on line 27

Solution:

I have attached the Comments.php to this post. You have to put it in the Zend/Gdata/Extension/Comments.php directory. Once you place the file in the directory everything should work peachy.

NOTE: I saves the file as a txt to upload it to LectureShare so you may have to remove the txt file extension.

php Zend Framework LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL httpframework.zend.comlicensenew-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web please send an email to licensezend.com so we can send you a copy immediately. category Zend package Zend_Gdata copyright Copyright c 2005-2008 Zend Technologies USA Inc. httpwww.zend.com license httpframework.zend.comlicensenew-bsd New BSD License see Zend_Gdata_Extension require_once ZendGdataExtension.php see Zend_Gdata_Extension_FeedLink require_once ZendGdataExtensionFeedLink.php Represents the gdcomments element category Zend package Zend_Gdata copyright Copyright c 2005-2008 Zend Technologies USA Inc. httpwww.zend.com license httpframework.zend.comlicensenew-bsd New BSD License class Zend_Gdata_Extension_Comments extends Zend_Gdata_Extension protected _rootElement comments protected _rel null protected _feedLink null public function __constructrel null feedLink null parent__construct this-_rel rel this-_feedLink feedLink public function getDOMdoc null majorVersion 1 minorVersion null element parentgetDOMdoc majorVersion minorVersionif this-_rel null element-setAttributerel this-_rel if this-_feedLink null element-appendChildthis-_feedLink-getDOMelementownerDocument return element protected function takeChildFromDOMchild absoluteNodeName child-namespaceURI . . child-localName switch absoluteNodeName case this-lookupNamespacegd . . feedLink feedLink new Zend_Gdata_Extension_FeedLink feedLink-transferFromDOMchild this-_feedLink feedLink break default parenttakeChildFromDOMchild break protected function takeAttributeFromDOMattribute switch attribute-localName case rel this-_rel attribute-nodeValue break default parenttakeAttributeFromDOMattribute public function getRel return this-_rel public function setRelvalue this-_rel value return this public function getFeedLink return this-_feedLink public function setFeedLinkvalue this-_feedLink value return this
Download Comments_120535.txt

Comments

Post a Comment

Please to post a comment.