phpFlickr stopped working - SSL Endpoints?
Closed this issue · 6 comments
Last week, my phpFlickr stopped working. I think I see why (http://code.flickr.net/2014/04/30/flickr-api-going-ssl-only-on-june-27th-2014/)
I downloaded the latest master version (3.1.1) but still cannot get the example.php to work.
I tried adding the setToken() line but that did not work either.
$f = new phpFlickr("abc123");
$f->setToken("abc-123-456");
$recent = $f->photos_getRecent();
Is there something else I need to be doing? Many thanks for this plugin. I've used it for at least 7 years - it's just great.
Turns out I forgot to update the sockets code on 3.1.1. If you were using sockets because you didn't have CURL installed, you weren't using SSL. Try the latest version of the file in the repo.
Thanks Dan. Tried the latest version (Merge pull request #17...) but still not working for me. Basically example.php is coming back with a blank page.
In addition, I think getToken.php may not be working completely either. When I run that page, the correct callback page gets called (http://[mysiteurl/path]/phpFlickr/auth.php?frob=[123-frobcodefromFlickr]). However, the page is blank - I can only see the frob in the URL. Should I also be able to see it displayed on the page somewhere?
I'm using a shared hosting site. It looks like they are allowing SSL calls (otherwise, the auth.php page wouldn't have gotten called back, right?).
I don't have access to the server logs so its hard to trace this issue from my host. I've tried putting in some getErrorMsg() into pages (after my new phpFlickr and _getRecent() calls) but still nothing comes back.
Thanks again.
I ended up by passing CURL by commenting out lines 223 - 231 and line 269 to just use sockets to get everything to work.
mine also stopped working.. I downloaded new code got new auth and private and read token but no go. I tried to use the sockets only but it still didnt work..
I have the same issue.
Disabling cURL extension is a work-around that avoids the problem (but doesn't fix it).
the phpflickr.php work if in the new version add 2 following lines (after line 227..)
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
after the others curl_setopt and before : $response = curl_exec($curl);