ZF-12504: delete tag in picasa photo error

Issue Type: Bug Created: 2013-01-09T21:26:41.000+0000 Last Updated: 2013-04-05T16:07:03.000+0000 Status: Closed Fix version(s): Reporter: Rodolfo Van Kurczyn (rkurczyn) Assignee: Frank Brückner (frosch) Tags: - Zend_Gdata

  • NeedsPatch

Related issues: Attachments:


When use the function for delete tag in picasa photo

<pre class="highlight">
deleteTag($client, $user, $album, $photo, $tagContent);

this happens:

<pre class="highlight">
Fatal error:
Uncaught exception 'Zend_Gdata_App_InvalidArgumentException' with message 'You must specify an URI to which to post.' in Zend/Gdata/App.php:623

Stack trace:

#0 Zend/Gdata.php(219): Zend_Gdata_App->performHttpRequest('DELETE', NULL, Array, '', NULL, NULL)
#1 Zend/Gdata/App.php(957): Zend_Gdata->performHttpRequest('DELETE', NULL, Array, '', NULL, NULL)
#2 Zend/Gdata/Photos.php(572): Zend_Gdata_App->delete(NULL)
#3 public_html/autenticate_zend.php(130): Zend_Gdata_Photos->deleteTagEntry(NULL, false)
#4 public_html/autenticate_zend.php(83): deleteTag(Object(Zend_Gdata_HttpClient), 'google account', 'password', '576764976912403...', 'hola mundo')
#5 {main} thrown in Zend/Gdata/App.php on line 623


Posted by Frank Brückner (frosch) on 2013-01-10T08:16:18.000+0000


<pre class="highlight">
This is not a ZF method!


This is the problem: You need the first parameter for Zend_Gdata_Photos::deleteTagEntry().


<pre class="highlight">
Here is an unit test for this method call:

public function testPreparingRequestWithoutData() { $this->assertEquals( array( 'method' => 'POST', 'url' => null, 'data' => null, 'headers' => array( 'x-http-method-override' => 'DELETE', ), 'contentType' => 'application/atom+xml', ), $this->service->prepareRequest('DELETE', null, array(), '', null, null) ); } ``` Tests passed

Posted by Rodolfo Van Kurczyn (rkurczyn) on 2013-01-11T18:53:09.000+0000

in the directory Zend/demos/Zend/Gdata/Photos.php

we have the following two functions

function addTag($client, $user, $album, $photo, $tag) { $photos = new Zend_Gdata_Photos($client);

$entry = new Zend_Gdata_Photos_TagEntry();

$photoQuery = new Zend_Gdata_Photos_PhotoQuery;

$photoEntry = $photos->getPhotoEntry($photoQuery);

$result = $photos->insertTagEntry($entry, $photoEntry);
if ($result) {
    outputPhotoFeed($client, $user, $album, $photo);
} else {
    echo "There was an issue with the tag creation.";


function deleteTag($client, $user, $albumId, $photoId, $tagContent) { $photos = new Zend_Gdata_Photos($client);

$photoQuery = new Zend_Gdata_Photos_PhotoQuery;
$query = $photoQuery->getQueryUrl();    

$photoFeed = $photos->getPhotoFeed($query);

foreach ($photoFeed as $entry) {
    if ($entry instanceof Zend_Gdata_Photos_TagEntry) {
        if ($entry->getContent() == $tagContent) {
            $tagEntry = $entry;

$photos->deleteTagEntry($tagEntry, false);

outputPhotoFeed($client, $user, $albumId, $photoId);


I probe the first function successfully. The second function fail.

Posted by Ralph Schindler (ralph) on 2013-04-05T16:07:03.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.