tags:

views:

71

answers:

0

Hello guys,

Recently I have noticed that the code that worked for ages is gives the following error on $yt->insertEntry...

C0 GData ParseException Error trying to parse element. 0

This is the code I use. It's a standard one:

$httpClient=Zend_Gdata_ClientLogin::getHttpClient($username,$password,'youtube',null,$source,null,null,$authenticationURL);

$yt = new Zend_Gdata_YouTube($httpClient,$applicationId, $clientId, $developerKey);
$yt->setMajorProtocolVersion(2);

$videoEntry = $yt->getVideoEntry('FbkmWvoy3G0');
$videoEntry->setVideoRating(2); 
$ratingUrl = $videoEntry->getVideoRatingsLink()->getHref();

try { 
$ratedVideoEntry = $yt->insertEntry( $videoEntry, $ratingUrl,'Zend_Gdata_YouTube_VideoEntry');} 
catch (Zend_Gdata_App_HttpException $httpException) {  echo $httpException->getRawResponseBody();}

As the version of API has recently changed maybe there is something I missed and need to update my code? I downloaded new Zend Gdata 1.8.3 but it didn't help. Does anybody have an idea what the problem could be?

Thanks in advance!