phpFlickr proxy not working call to member function error <p>I have downloaded and setup phpFlickr library but I need to use it from behind a proxy, so I have added the line to the example file and it throws an error. As its all pretty much out of the box, im flumaxed I also dont get the call to member function on a non object error it completely baffles me.</p> <p>The readme paragraph</p> <blockquote> <ol> <li>Some people will need to ues phpFlickr from behind a proxy server. I've implemented a method that will allow you to use an HTTP proxy for all of your traffic. Let's say that you have a proxy server on your local server running at port 8181. This is the code you would use: $f = new phpFlickr("[api key]"); $f->setProxy("localhost", "8181"); After that, all of your calls will be automatically made through your proxy server.</li> </ol> </blockquote> <p>The example.php file with my single modified line</p> <pre><code>require_once("phpFlickr.php"); $f = new phpFlickr("********************"); $f-&gt;setProxy("cache.mysite.org.uk", "80"); $recent = $f-&gt;photos_getRecent(); foreach ($recent['photo'] as $photo) { $owner = $f-&gt;people_getInfo($photo['owner']); echo "&lt;a href='http://www.flickr.com/photos/" . $photo['owner'] . "/" . $photo['id'] . "/'&gt;"; echo $photo['title']; echo "&lt;/a&gt; Owner: "; echo "&lt;a href='http://www.flickr.com/people/" . $photo['owner'] . "/'&gt;"; echo $owner['username']; echo "&lt;/a&gt;&lt;br&gt;"; </code></pre> <p>}</p> <p>Any idea why im getting the following error Call to a member function setProxy() on a non-object in public_html/phpFlickr/phpFlickr.php on line 338</p> <p>That code is</p> <pre><code>#336 function setProxy ($server, $port) { #337 // Sets the proxy for all phpFlickr calls. #338 $this-&gt;req-&gt;setProxy($server, $port); } </code></pre>