Rob Young

Twitter Flickr Last.fm LinkedIn LinkedIn
MarshmallowsGuess what it is!Moth EggsBehe-mothSummer BarbecueRed Wine MeniscusWest Coast SunsetMay BugA Burst Of WhiteGreen & PinkIris

Fix Your Broken flickrRSS WordPress Plugin

with 3 comments

A few days ago I noticed my flickrRSS WordPress plugin had inexplicably stopped working, and was not loading any of my images. Is your problem the same as mine? I’m running WordPress 2.6.2 and flickrRSS Version 4. Here’s how I fixed it…
Ok firstly, here’s how my site looked when the flickrRSS plugin was mysteriously broken:

Picture 1.png

If yours looks like this, or is displaying the flickr link but not the photos, then this might help.

The problem lies on line 53 of flickrRSS.php, which reads:

preg_match('<img src="([^"]*)" [^/]*/>', $item['description'],$imgUrlMatches)

This needs changing to:

preg_match('/img src=([a-zA-Z0-9:\/._]+) /', $item['description'],$imgUrlMatches)

Mine started working again after that!

Hope this helps!

Written by Rob

October 22nd, 2008 at 8:19 pm

Posted in Programming,Tutorials

Tagged with ,

3 Responses to 'Fix Your Broken flickrRSS WordPress Plugin'

Subscribe to comments with RSS or TrackBack to 'Fix Your Broken flickrRSS WordPress Plugin'.

  1. Mine stopped working within the past couple of days. On mine, there wasn’t anything showing… just blank. I uploaded your fix and it’s now working. Thank you so much!

    Jason Hansen

    20 Nov 08 at 7:55 pm

  2. No problem Jason! Glad it helped :)

    Rob

    21 Nov 08 at 11:20 am

  3. This depresses me. I still can’t get it to work. And it was working just fine until today. :(

    Shadow

    2 Jan 09 at 7:49 pm

Leave a Reply

You must be logged in to post a comment.