Flickr api going SSL
-
Hello,
I received a message from Flickr that Flickr API is going SSL. Apparentely I don’t need a new API key for this transition but do need to change the code where I call the Flickr API, so that I call it with the HTTPS protocol, instead of HTTP. I need to change it to this:Where do I do this? On my site I only see a place to enter the API key.
Thanks
-
Same here. I just installed RFG for the first time, but got the API SSL error from Flickr.
I replaced 3 occurrences of http://api.flickr.com with https://api.flickr.com in this file:
afgFlickr/afgFlickr.php
This seemed to clear the SSL error, but now I get another error from Flickr:
There was some problem figuring out your endpoint
That error I can’t figure out.
I figured a couple of things out, not quite there yet, though.
In the abovementioned file:
afgFlickr/afgFlickr.php
At line 208 replace
if ( !preg_match(“|http://(.*?)(/.*)|”, $url, $matches) ) {
with
if ( !preg_match(“|https://(.*?)(/.*)|”, $url, $matches) ) {
at lines 382 and 384 replace
with
at line 601 replace
with
With these changes I am able to embed Flickr photos from my public profile. Flickr still chokes on the Secret key, and I cannot access my private photos on Flickr. When I try to grant access to Flickr API Secret I get sent to flickr.com, which responds with this message:
Oops! Flickr can’t find a valid callback URL.
If I figure this one out I’ll post it here.
OK, courtesy of the 4th posting in THIS THREAD I did as follows (quoting Ronak Gandhi):
Go to Flickr.com. After you login, go to Your Apps from the You menu on top. You will see your Flickr app. Click this app. Then click Edit Authentication Flow. Here you will find a setting called Callback URL. Set this to your wp-admin/ URL.
After I did that I seemed to be on my way until I started seeing this error:
Responsive Flickr Gallery Error – SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
I do not see this error every time I load a page. Maybe this reflects a temporary glitch at flickr.com.
I’ve solved the problem changing http to https in both responsive-flickr-gallery/afgFlickr/afgFlickr.php and responsive-flickr-gallery/index.php
You know what? I’m done with Flickr and Yahoo. I’m going back to Google.
My pics from the previous 2 years are being held hostage due to Yahoo’s top-secret security lock down. Really? They are pictures, not government documents…
Lezziadn – did you change http to https in all instances in those files? Or only specific places?
Hi, I was wondering if someone could help me with this as it is still a problem for the website which I am tying to maintain, I don’t understand what API or SLL mean or what they do but the website and flikr aren’t working together any more and I don’t understand what to do? Any help would be brilliant. Thank you π
I have changed all instances of http://www.flickr to https://www.flickr in the plugin files and now the gallery is showing on my website as before. However the navigation is not working. Any help much appreciated.
I changed all instances of http://www.flickr to https://www.flickr in the two files mentioned above (responsive-flickr-gallery/afgFlickr/afgFlickr.php and responsive-flickr-gallery/index.php) but this was not sufficient.
I then made the additional changes mentioned by Sorabi in his second post (such as (if ( !preg_match(“|http://(.*?)(/.*)|”, $url, $matches) ) { …) and that fixed the problem.
Thanks!!!
I have now done a search for all http: instances and where they are followed by anything related to flickr – eg farm.????.flickr etc I have changed them to https:
Now the navigation is working, though it is very very slow.
I hope that helps someone.
Tamsin
Summary of current workaround:
in afgFlickr/afgFlickr.php
replace all http://api.flickr.com
with https://api.flickr.comreplace if ( !preg_match(“|http://(.*?)(/.*)|”, $url, $matches) ) {
with if ( !preg_match(“|https://(.*?)(/.*)|”, $url, $matches) ) {replace all http://farm
with https://farmreplace http://www.flickr.com/services/auth/?api_key=
with https://www.flickr.com/services/auth/?api_key=Optional:
in responsive-flickr-gallery/index.php
replace all http://www.flickr.com/photos
with https://www.flickr.com/photosOut of curiosity, is neither WordPress nor Flickr working on a permanent fix on this? Seems like a lot of effort by many individuals to come up with solutions to this. Seems to me this is a vendor issue.
The summary made by zenmagnets worked for me.
without changing the responsive-flickr-gallery/index.phpIf I make these changes in the WordPress plugin editor, it is not possible to save them. I get an internal server error.
Any ideas how to solve that problem?Sorry, got it! I had to change these files in Plesk. Had something to do with rights. Everything is working fine now!
- The topic ‘Flickr api going SSL’ is closed to new replies.