<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>phpFlickr &#187; Bug Fixes</title>
	<atom:link href="http://phpflickr.com/category/bug-fixes/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpflickr.com</link>
	<description></description>
	<lastBuildDate>Thu, 13 May 2010 07:33:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bug Fix: Post-Upload Problems</title>
		<link>http://phpflickr.com/2006/09/29/bug-fix-post-upload-problems/</link>
		<comments>http://phpflickr.com/2006/09/29/bug-fix-post-upload-problems/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 13:10:57 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://phpflickr.com/2006/09/29/bug-fix-post-upload-problems/</guid>
		<description><![CDATA[Here&#039;s a quick bugfix for those of you who don&#039;t plan to upgrade to version 2.0.0 right away (because it&#039;ll break your apps).  If you upload a file, you&#039;ll get an error on any Flickr methods you try to call after this.  This is because the HTTP_Request object changes the post encoding when [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#039;s a quick bugfix for those of you who don&#039;t plan to upgrade to version 2.0.0 right away (because it&#039;ll break your apps).  If you upload a file, you&#039;ll get an error on any Flickr methods you try to call after this.  This is because the HTTP_Request object changes the post encoding when you upload a file and there&#039;s no systematic way to change it back.  You can, however, throw the switch manually.  Just stick the following code before the return statement in all of your upload functions in phpFlickr</p>
<p>$this->req->_requestHeaders['content-type'] = &#039;application/x-www-form-urlencoded&#039;;<br />
unset($this->req->_postFiles['photo']);</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2006/09/29/bug-fix-post-upload-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>setLicense Bug Fix</title>
		<link>http://phpflickr.com/2006/03/11/setlicense-bug-fix/</link>
		<comments>http://phpflickr.com/2006/03/11/setlicense-bug-fix/#comments</comments>
		<pubDate>Sat, 11 Mar 2006 17:06:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2006/03/11/setlicense-bug-fix/</guid>
		<description><![CDATA[There is a bug in photos_licenses.setLicense() (thanks, Christian!).  Line 1034 in phpFlickr.php should read:
$this->request(&#034;flickr.photos.licenses.setLicense&#034;, array(&#034;photo_id&#034;=>$photo_id, &#034;license_id&#034;=>$license_id), TRUE);
The problem was with capitalization of $photo_id.  If you&#039;ve been having problems setting licenses, this would be why.  I&#039;ve updated CVS and the fix will be in the next release.
]]></description>
			<content:encoded><![CDATA[<p>There is a bug in photos_licenses.setLicense() (thanks, <a target="_blank" href="http://www.h4ppy.com/blog/">Christian</a>!).  Line 1034 in phpFlickr.php should read:<br />
$this->request(&#034;flickr.photos.licenses.setLicense&#034;, array(&#034;photo_id&#034;=>$photo_id, &#034;license_id&#034;=>$license_id), TRUE);</p>
<p>The problem was with capitalization of $photo_id.  If you&#039;ve been having problems setting licenses, this would be why.  I&#039;ve updated CVS and the fix will be in the next release.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2006/03/11/setlicense-bug-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Minor bug in photosets_getPhotos()</title>
		<link>http://phpflickr.com/2005/12/16/minor-bug-in-photosets_getphotos/</link>
		<comments>http://phpflickr.com/2005/12/16/minor-bug-in-photosets_getphotos/#comments</comments>
		<pubDate>Sat, 17 Dec 2005 03:13:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/12/16/minor-bug-in-photosets_getphotos/</guid>
		<description><![CDATA[I forgot to add 7 characters to the function definition.  Line 1085 in phpFlickr.php should be changed from:
&#160;&#160;&#160;&#160;function photosets_getPhotos($photoset_id, $extras)
to:
&#160;&#160;&#160;&#160;function photosets_getPhotos($photoset_id, $extras = NULL) 
Sorry for the inconvenience.
]]></description>
			<content:encoded><![CDATA[<p>I forgot to add 7 characters to the function definition.  Line 1085 in phpFlickr.php should be changed from:<br />
&nbsp;&nbsp;&nbsp;&nbsp;function photosets_getPhotos($photoset_id, $extras)<br />
to:<br />
&nbsp;&nbsp;&nbsp;&nbsp;function photosets_getPhotos($photoset_id, $extras = NULL) </p>
<p>Sorry for the inconvenience.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/12/16/minor-bug-in-photosets_getphotos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quasi-bug: Old photo URLs</title>
		<link>http://phpflickr.com/2005/11/22/quasi-bug-old-photo-urls/</link>
		<comments>http://phpflickr.com/2005/11/22/quasi-bug-old-photo-urls/#comments</comments>
		<pubDate>Tue, 22 Nov 2005 22:14:55 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/11/22/quasi-bug-old-photo-urls/</guid>
		<description><![CDATA[It has come to my attention that if your photo&#039;s &#034;server&#034; number is 35 and you try to use the depreciated image URL format (i.e. &#034;http://photos35.flickr.com/&#8230;.&#034; it will fail to resolve that server.  You should use the new url format, which is:
&#160;&#160;&#160;&#160;http://static.flickr.com/{server-id}/{id}_{secret}_[mstb].jpg
If you&#039;re using phpFlickr::buildPhotoURL(), then you&#039;ll need to fix the format for that. [...]]]></description>
			<content:encoded><![CDATA[<p>It has come to my attention that if your photo&#039;s &#034;server&#034; number is 35 and you try to use the depreciated image URL format (i.e. &#034;http://photos35.flickr.com/&#8230;.&#034; it will fail to resolve that server.  You should use the new url format, which is:<br />
&nbsp;&nbsp;&nbsp;&nbsp;http://static.flickr.com/{server-id}/{id}_{secret}_[mstb].jpg</p>
<p>If you&#039;re using phpFlickr::buildPhotoURL(), then you&#039;ll need to fix the format for that.  In phpFlickr.php, you can replace line 262 with:<br />
&nbsp;&nbsp;&nbsp;&nbsp;$url = &#034;http://static.flickr.com/&#034; . $photo['server'] . &#034;/&#034; . $photo['id'] . &#034;_&#034; . $photo['secret'];</p>
<p><strong>Note</strong>: The old, depreciated method is supposed to continue to work, but there&#039;s apparently something wrong with the DNS resolution for that server.  You may or may not be running into this problem and I imagine that it&#039;ll clear up at some point.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/11/22/quasi-bug-old-photo-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bug fix: PEAR Include delimiter</title>
		<link>http://phpflickr.com/2005/08/23/bug-fix-pear-include-delimiter/</link>
		<comments>http://phpflickr.com/2005/08/23/bug-fix-pear-include-delimiter/#comments</comments>
		<pubDate>Tue, 23 Aug 2005 18:33:12 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/08/23/bug-fix-pear-include-delimiter/</guid>
		<description><![CDATA[Ok, I changed this once in 1.3.2, but now I realize the way I did it didn&#039;t really work either.  The result is that if you&#039;re using PHP on a Windows server, it&#039;s not including the PEAR folder correctly.  I think that the way I&#039;ve got it now will work just fine for [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I changed this once in 1.3.2, but now I realize the way I did it didn&#039;t really work either.  The result is that if you&#039;re using PHP on a Windows server, it&#039;s not including the PEAR folder correctly.  I think that the way I&#039;ve got it now will work just fine for you.  If you&#039;re using anything but Windows and not having a problem with this, you won&#039;t need to touch this code.</p>
<p>Fix:<br />
Change line 24 of phpFlickr.php from:</p>
<p><em>if (strpos($_SERVER['SERVER_SOFTWARE'], &#034;Windows&#034;) !== false) {</em></p>
<p>To:</p>
<p><em>if (strpos(__FILE__, &#034;:&#034;) !== false) {</em></p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/08/23/bug-fix-pear-include-delimiter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpFlickr 1.3.2 released!</title>
		<link>http://phpflickr.com/2005/08/17/phpflickr-132-released/</link>
		<comments>http://phpflickr.com/2005/08/17/phpflickr-132-released/#comments</comments>
		<pubDate>Thu, 18 Aug 2005 02:37:59 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[Releases]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/08/17/phpflickr-132-released/</guid>
		<description><![CDATA[I recently discovered (thanks to Eliot Shepard) two fairly major bugs.  Turns out that since I added the new Auth API (version 1.3), caching hasn&#039;t been working.  Also, in version 1.3.1, your include folders probably got royally messed up, thanks to a dumb mistake on my part.  The good news is that [...]]]></description>
			<content:encoded><![CDATA[<p>I recently discovered (thanks to <a href="http://www.slower.net/">Eliot Shepard</a>) two fairly major bugs.  Turns out that since I added the new Auth API (version 1.3), caching hasn&#039;t been working.  Also, in version 1.3.1, your include folders probably got royally messed up, thanks to a dumb mistake on my part.  The good news is that I just put out a bug fix release, <a href="http://sourceforge.net/project/showfiles.php?group_id=139987&#038;package_id=153541&#038;release_id=349965">version 1.3.2</a>, to get you back on your feet.  Hope these haven&#039;t caused too many problems for you guys.  There was also a fairly minor bug in the XML class that caused newlines to get stripped out of photo descriptions.  I&#039;ve gone ahead and fixed that too, just &#039;cause I like you guys.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/08/17/phpflickr-132-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bug fix: Newlines in XML</title>
		<link>http://phpflickr.com/2005/08/11/bug-fix-newlines-in-xml/</link>
		<comments>http://phpflickr.com/2005/08/11/bug-fix-newlines-in-xml/#comments</comments>
		<pubDate>Thu, 11 Aug 2005 15:26:44 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/08/11/bug-fix-newlines-in-xml/</guid>
		<description><![CDATA[There was a bug in the XML class that was causing it to strip newlines out of fields (a photo&#039;s description, for example).  Below is the fix that you can apply to xml.php to fix it.  I&#039;ve also updated it in CVS so that it will appear in the next update.  The [...]]]></description>
			<content:encoded><![CDATA[<p>There was a bug in the XML class that was causing it to strip newlines out of fields (a photo&#039;s description, for example).  Below is the fix that you can apply to xml.php to fix it.  I&#039;ve also updated it in CVS so that it will appear in the next update.  The only place where this doesn&#039;t quite work is if someone puts a newline at the very beginning of the description.  That will still get chopped out, but that&#039;s a fairly minor issue.</p>
<p>xml.php<br />
Change lines 27-28 to:<br />
&nbsp;&nbsp;&nbsp;var $_replace = array(&#039;°&#039;,'&#038;&#039;,&#034;\n&#034;);<br />
&nbsp;&nbsp;&nbsp;var $_replaceWith = array(&#039;{deg}&#039;, &#039;{amp}&#039;, &#039;{lf}&#039;);</p>
<p>After line 42 which reads as:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml = str_replace($this->_replace, $this->_replaceWith, $xml);<br />
Add this line:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml = str_replace(&#034;>{lf}&#034;, &#034;>\n&#034;, $xml);</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/08/11/bug-fix-newlines-in-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bug fix: photos_getNotInSet()</title>
		<link>http://phpflickr.com/2005/08/06/bug-fix-photos_getnotinset/</link>
		<comments>http://phpflickr.com/2005/08/06/bug-fix-photos_getnotinset/#comments</comments>
		<pubDate>Sat, 06 Aug 2005 16:34:38 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/08/06/bug-fix-photos_getnotinset/</guid>
		<description><![CDATA[All versions up through 1.3.1 have had a bug in photos_getNotInSet().  If a call is made while there is only one photo not in a set, the array structure of the result won&#039;t be quite the same.  This is because of the way that the xml parser arranges things.  If this is [...]]]></description>
			<content:encoded><![CDATA[<p>All versions up through 1.3.1 have had a bug in photos_getNotInSet().  If a call is made while there is only one photo not in a set, the array structure of the result won&#039;t be quite the same.  This is because of the way that the xml parser arranges things.  If this is a concern, replace the entire function (starting on line 596 in phpFlickr.php) with the code below.  I&#039;ve fixed the problem in CVS and the next update will have the correct code.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#007700">function </font><font color="#0000BB">photos_getNotInSet</font><font color="#007700">(</font><font color="#0000BB">$extras </font><font color="#007700">= </font><font color="#0000BB">NULL</font><font color="#007700">, </font><font color="#0000BB">$per_page </font><font color="#007700">= </font><font color="#0000BB">NULL</font><font color="#007700">, </font><font color="#0000BB">$page </font><font color="#007700">= </font><font color="#0000BB">NULL</font><font color="#007700">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#FF8000">/* http://www.flickr.com/services/api/flickr.photos.getNotInSet.html */<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">if (</font><font color="#0000BB">is_array</font><font color="#007700">(</font><font color="#0000BB">$extras</font><font color="#007700">)) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$extras </font><font color="#007700">= </font><font color="#0000BB">implode</font><font color="#007700">(</font><font color="#DD0000">&#034;,&#034;</font><font color="#007700">, </font><font color="#0000BB">$extras</font><font color="#007700">);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$this</font><font color="#007700">-&gt;</font><font color="#0000BB">request</font><font color="#007700">(</font><font color="#DD0000">&#034;flickr.photos.getNotInSet&#034;</font><font color="#007700">, array(</font><font color="#DD0000">&#034;extras&#034;</font><font color="#007700">=&gt;</font><font color="#0000BB">$extras</font><font color="#007700">, </font><font color="#DD0000">&#034;per_page&#034;</font><font color="#007700">=&gt;</font><font color="#0000BB">$per_page</font><font color="#007700">, </font><font color="#DD0000">&#034;page&#034;</font><font color="#007700">=&gt;</font><font color="#0000BB">$page</font><font color="#007700">));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$this</font><font color="#007700">-&gt;</font><font color="#0000BB">parse_response</font><font color="#007700">();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$result </font><font color="#007700">= </font><font color="#0000BB">$this</font><font color="#007700">-&gt;</font><font color="#0000BB">parsed_response</font><font color="#007700">[</font><font color="#DD0000">&#039;rsp&#039;</font><font color="#007700">][</font><font color="#DD0000">&#034;photos&#034;</font><font color="#007700">];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!empty(</font><font color="#0000BB">$result</font><font color="#007700">[</font><font color="#DD0000">&#039;photo&#039;</font><font color="#007700">][</font><font color="#DD0000">&#039;id&#039;</font><font color="#007700">])) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$tmp </font><font color="#007700">= </font><font color="#0000BB">$result</font><font color="#007700">[</font><font color="#DD0000">&#039;photo&#039;</font><font color="#007700">];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset(</font><font color="#0000BB">$result</font><font color="#007700">[</font><font color="#DD0000">&#039;photo&#039;</font><font color="#007700">]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$result</font><font color="#007700">[</font><font color="#DD0000">&#039;photo&#039;</font><font color="#007700">][] = </font><font color="#0000BB">$tmp</font><font color="#007700">;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return </font><font color="#0000BB">$result</font><font color="#007700">;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/08/06/bug-fix-photos_getnotinset/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photos search change</title>
		<link>http://phpflickr.com/2005/07/29/photos-search-change/</link>
		<comments>http://phpflickr.com/2005/07/29/photos-search-change/#comments</comments>
		<pubDate>Sat, 30 Jul 2005 03:22:14 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/07/29/photos-search-change/</guid>
		<description><![CDATA[In the documentation for photos_search() function, you&#039;ll see that I tell you to use a space delimited string if you&#039;re searching for tags.  Unless I am sorely mistaken, that&#039;s the way it used to work.  What I know for sure is that Flickr now wants a comma-delimited string for tags.  Which means [...]]]></description>
			<content:encoded><![CDATA[<p>In the documentation for photos_search() function, you&#039;ll see that I tell you to use a space delimited string if you&#039;re searching for tags.  Unless I am sorely mistaken, that&#039;s the way it used to work.  What I know for sure is that Flickr now wants a comma-delimited string for tags.  Which means that it should read:</p>
<p>$photos = $f->photos_search(array(&#034;tags&#034;=>&#034;brown,cow&#034;, &#034;tag_mode&#034;=>&#034;any&#034;));</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/07/29/photos-search-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>README.txt bug</title>
		<link>http://phpflickr.com/2005/06/30/readmetxt-bug/</link>
		<comments>http://phpflickr.com/2005/06/30/readmetxt-bug/#comments</comments>
		<pubDate>Thu, 30 Jun 2005 13:43:49 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>

		<guid isPermaLink="false">http://www.phpflickr.com/2005/06/30/readmetxt-bug/</guid>
		<description><![CDATA[Alx has just pointed out that the README.txt file tells you that you need to install the HTTP_Response package.  Unfortunately, this package doesn&#039;t exist.  What I meant to type was that you need the HTTP_Request package.  If you&#039;ve been having trouble installing it for that reason, installing that package should fix it. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://alias.ouvaton.org/">Alx</a> has just pointed out that the README.txt file tells you that you need to install the HTTP_Response package.  Unfortunately, this package doesn&#039;t exist.  What I meant to type was that you need the HTTP_Request package.  If you&#039;ve been having trouble installing it for that reason, installing that package should fix it.  Fortunately, I think that it&#039;s a common package to come preinstalled with some packaging systems (go <a href="http://www.debian.org">Debian</a>!)</p>
]]></content:encoded>
			<wfw:commentRss>http://phpflickr.com/2005/06/30/readmetxt-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
