[serendipity_plugin_flickr] account not available

Creating and modifying plugins.
Post Reply
artodeto
Regular
Posts: 12
Joined: Sat Jul 30, 2011 12:07 am
Contact:

[serendipity_plugin_flickr] account not available

Post by artodeto »

Hey members,

since a few days, I run into the problem that the plugin "serendipity_plugin_flickr" is not working anymore (or something has changed on the flickr front I totaly missed).
The two defined messages "PLUGIN_SIDEBAR_FLICKR_ERROR_WRONGUSER" and ""PLUGIN_SIDEBAR_FLICKR_ERROR_NOIMG" are shown on the page.
For sure, I havn't changed anything, but I did a quick search and found two blogs having the same error message output.
http://www.thorstennis.org/serendipity/
http://diwision.de/blog/index.php?/arch ... 04/C5.html
http://abschnitt6.leibelt.de/

//part one since I'm using more than four urls
artodeto
Regular
Posts: 12
Joined: Sat Jul 30, 2011 12:07 am
Contact:

Re: [serendipity_plugin_flickr] account not available

Post by artodeto »

//part two

I did a search for "flickr api changelog" and out https://www.flickr.com/services/developer/changelog/ and http://code.flickr.net/2014/04/30/flick ... 27th-2014/.

All I did was a quick one.
I changed into the directory "plugins/serendipity_plugins_flickr". Maybe I missed some caching, but I checked the api key and the secret key and they are correct.

Hope I added enough informations or at least a point where you are able to start with. If I can add more informations or support you, simple let me know.

Greetings and thanks,
artodeto
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [serendipity_plugin_flickr] account not available

Post by garvinhicking »

Hey,

thanks for reporting. Let's see if we can debug this.

Upgrading the flickr library was a good idea already, indeed it seems the API endpoints changed.

Indeed there is caching going on. Check the configuration of the flickr sidebar plugin and set the cachetimout to a value like 1, just so that we can prevent issues.

If it still does not work, check the serendipity_plugin_flickr.php file, it has this at around line 209:

Code: Select all

if (stristr($username,'@')) {
                        $nsid = $f->people_findByEmail($username);
                        }
                else {
                        $nsid = $f->people_findByUsername($username);
                }
You could change that to:

Code: Select all

echo "FLICKR-DEBUG: Showing pictures of $username<br />\n";
if (stristr($username,'@')) {
    $nsid = $f->people_findByEmail($username);
    echo "FLICKR-DEBUG: findByEmail result: <pre>" . print_r($nsid, true) . "</pre><br />\n";
} else {
    $nsid = $f->people_findByUsername($username);
    echo "FLICKR-DEBUG: findByUsername result: <pre>" . print_r($nsid, true) . "</pre><br />\n";
}
This debug output should lead us on track.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
artodeto
Regular
Posts: 12
Joined: Sat Jul 30, 2011 12:07 am
Contact:

Re: [serendipity_plugin_flickr] account not available

Post by artodeto »

Hey Garvin,

so I was trolled by the caching ... dump one I am.
Anyways, I did an plugin update on my blogs so I saw what you (or a other maintainer) did there - thanks for the quick fix :-).
Post Reply