Wednesday, February 24, 2010

Wordpress Flickr Manager Broken? Possible fix for you

Hey, I am remembering to write this one down right after I solved the problem. Aren't you proud of me?

So, open source software is great. All those free apps, and free doodads you can run on your website! Shopping carts, project management sites, wordpress plugins...Yay!

Except when they break and the developer has stopped working on them.

Wordpress is a great piece of open source software, but I have seen two of the plugins I rely upon for clients go unsupported in the past year.

The latest one is the Wordpress Flickr Manager(WFM), which makes it easy for people to post their own pictures on their sites without having to ftp them and figure out what the URL is for the image. (Note: Wordpress has a native image uploader now, but the Wordpress Flickr Manager still has some advantages. One, it has a built in Lightbox javascript pop-up image display; Two: if the site owner will add tags and a link to the proper blog page in the image descr. on flickr, it becomes another source of traffic for the blog/site.)

WFM hasn't been updated for the latest versions of Wordpress, so the built in Lightbox function isn't working anymore. You can still insert Flickr pictures, but the Lightbox effect doesn't work, and you can't upload pictures via the plugin.

However there are fixes!

First of all, you need to edit some files in the plugin's folder. I don't have to tell you to use a text editor like Window's Notepad, or Notepad++ (Free Code Editor), do I?

In order to fix the Lightbox not working issue, edit wfm-lightbox.php and wfm-hs.php and remove the @ characters from the file. (2 in each file). Those php files are in the /js folder inside the plugin's folder. This solution was found here: Plugin Broken With WP2.8.

In order to fix the upload issue, comment out line 139 in FlickrCore.php like this

Change this:
echo 'Content-Type: ' . mime_content_type($filename) . "\r\n";

Into this:
// echo 'Content-Type: ' . mime_content_type($filename) . "\r\n";

This 'solution' was found here: Uploads don't work local. I have no way of knowing what commenting out that line really does, so use at your own risk.



Post a Comment

Links to this post:

Create a Link

<< Home