WordPress Flickr Manager changes for 2.9
I recently started a new blog for my photos, which I’m starting to advertise for sale through Etsy (links to follow once I have some more things in place
) and I added the WordPress Flickr Manager plugin so that I can easily pull in pictures from my Flickr account into the blog. However, it didn’t work with WordPress 2.9
So, I made a couple of changes to some files and it seems to be working now – so, if anyone is having the same problems, here’s a list of the files that I changed:
- wordpress-flickr-manager/js/wfm-lightbox.php
- wordpress-flickr-manager/js/media-panel.php
- wordpress-flickr-manager/js/wfm-hs.php
In each of those files, remove any ‘@’ characters that are in the files, for example:
this: wfmJS('a[@rel*=flickr-mgr]').each(function() {
becomes: wfmJS('a[rel*=flickr-mgr]').each(function() {
Once you have made the changes, the plugin should work fine.
EDIT – March 15 2010 @1534
I’ve just had a look at the files that I changed to provide a fuller explanation of what I changed. I can’t see what I have changed in the media-panel.php file (just downloaded the plugin again and can’t find any ‘@’ signs in there now), but the changes I made to the other files are:
wfm-hs.php
Line 13 - wfmJS('a[@rel*=flickr-mgr]').each(function() {
becomes - wfmJS('a[rel*=flickr-mgr]').each(function() {
Line 21 - wfmJS('a[@rel*=flickr-mgr]').each(function() {
becomes- wfmJS('a[rel*=flickr-mgr]').each(function() {
wfm-lightbox.php
Line 58 - wfmJS('a[@rel*=flickr-mgr]').click(function() {
becomes - wfmJS('a[rel*=flickr-mgr]').click(function() {
Line 91 - wfmJS('a[@rel*=flickr-mgr]').each(function(){
becomes - wfmJS('a[rel*=flickr-mgr]').each(function(){
I’ve tested this with WP 2.9.2 this afternoon and it seems fine.
UPDATE – 11th July 2010
I’ve just been looking a bit more at this and have added a few replies to some comments. I have the plugin working on WP3.0 now – I made no changes to the version I had before though. The one thing that doesn’t work is trying to add photos from a set rather than just from the stream.
When you try to add a photo from a set, it only finds photos that are publicly available. If the photos are not public, then it doesn’t find them in the set. I don’t know whether this is a problem with the plugin, or a problem with the Flickr API though. I make most of my photos private, so if I want to add from a set then it’s a problem – that said, I have the same problem when adding from Flickr to my photo printing service, which makes me think that the problem lies with the Flickr API rather than the plugin.
Looks like a more in depth examination of the plugin is required – if I get chance to do it, I will, but I am quite busy with work that brings in money at the moment, rather than coding for fun and hobby.



January 13th, 2010 at 3:49 pm
Would you mind sending me or placing a link to your updated files, cause I can’t get it to work with the changes you have posted.
I would really appreciate it.
February 8th, 2010 at 12:46 pm
fantastic work! i made the changes and it functions perfectly again.
i’ve also linked this page to the plugin home so that others may benefit as well.
incidentally i like using an older (v2.2) version of the plugin simply for the user interface… your hack works on that one as well.
thanks
ken
February 15th, 2010 at 9:28 pm
It’s not working for me either. It works fine until it gets to the “insert” stage, and then it stops working.
February 25th, 2010 at 6:06 pm
[...] ネタもと。 WorkflowFAQ » Blog Archive » WordPress Flickr Manager changes for 2.9 [...]
March 5th, 2010 at 12:12 pm
Thank you sooo much for this help! Luckily WFM is working fine now with WP 2.9.
March 9th, 2010 at 1:53 pm
it’s working !!! Thanks
March 14th, 2010 at 8:42 pm
Hey, works great! Thanks a lot
March 15th, 2010 at 2:55 pm
Hack appears not to be working. I am running 2.9.2. Is there some obvious step like deactivating/reactivating the plug-in I am missing? I did clear out the cache.
March 15th, 2010 at 3:04 pm
Hmmm – not that I am aware of. I don’t use the plugin on this blog, it’s on one of my other ones. I’ve just updated it to 2.9.2 after your comment and tried it with no problem. Are you sure that you got all the @s?
March 23rd, 2010 at 2:08 pm
[...] 这位朋友找到了兼容性问题的根源。 [...]
March 24th, 2010 at 12:02 am
[...] http://www.workflowfaq.com/wordpress-flickr-manager-changes-for-2-9 [...]
April 1st, 2010 at 9:38 am
Works like a charm!
Thanks so much!
April 5th, 2010 at 2:16 am
Thanks a ton. I appreciate you posting the changes that you made instead of redistributing a package. Earlier I had found a package for 2.8 and it was embedding hidden div tags into my articles. I got rid of that fast.
April 27th, 2010 at 3:05 pm
Yup that did it – thanks!
April 27th, 2010 at 10:24 pm
[...] with Kelly off and on the past few months regarding VMware topics. They quickly turned me on to this page which described fix. All I had to do was modify three of the plugin files, removing any [...]
May 4th, 2010 at 4:56 pm
I am putting this on a new site- and on the site listed above, it’s always worked with a slide show- you clicked on the photo and it loaded over my blog with an arrow on the side to let you scroll through the set of photos. I wonder why that function is no longer working now.
May 4th, 2010 at 4:57 pm
I got it to work with the changes you made, btw, other than that it won’t slide through the photos. That’s what I’m really wanting it to do.
May 10th, 2010 at 11:25 pm
The first time I used this plug-in a screen popped up where I could customize it. I would like to get back to this screen so that I can change the number of photos it shows me at a time. How do I get back to this screen?
May 11th, 2010 at 10:24 am
Hi,
When I try to Authenticate the flickr manager in setting page, the following error appears:
Oops! The API key or signature is invalid.
Did anyone meet this problem?
UPDATE: I was trying to use my own API key to change its original API (in FlickrCore.php) but it still don’t work.
How to solve it ?
Thanks
May 13th, 2010 at 11:53 am
Hi,
Followed your instructions and now it’s working like a charm. I’m using it on a WordPress 2.9.2 site.
Thnx for the info!
May 19th, 2010 at 10:23 am
Hello, Thanks for this wonderful tutorial but it doesn’t work. My browser is always crashing when I after choosing a file to upload.
May 30th, 2010 at 4:37 pm
Great ! Thank you !!!!
June 5th, 2010 at 2:42 am
can someone post a working link for me to download the modded version thanks.
June 5th, 2010 at 6:06 am
I don’t know whether anyone has packaged up a modded version – I haven’t done one but someone else may have done. If they have and post a link, I’ll certainly link to it and publish the comment
June 13th, 2010 at 12:54 am
fix doesn’t work for WordPress 2.9.2 + Flickr Manager 2.3
June 13th, 2010 at 7:32 am
Works for me on WP 2.9.2 and Flickr Manager 2.3 – I’ve just tested it on my other blog with no problems.
July 2nd, 2010 at 3:39 pm
Doesn’t seem to work for me, WP 3.0. Anyone tried on WP 3.0?
July 3rd, 2010 at 11:08 am
Tried this fix in WP 2.9.2. All seems good until you try to select a set from drop down menu on the ‘My Photosets’ tab.
All the sets show in the dropdown but if anything ofther than the latest sets is selected it keeps claiming ‘No photos found’. If you force the issue and select ‘Insert set’, this warning comes up on the next screen inplace of where the thumbnails of the set would be:
Warning: Invalid argument supplied for foreach() in /home/julandy/scarlet.purestarlets.com/wordpress/wp-content/plugins/wordpress-flickr-manager/FlickrManager.php on line 1693
It know it’s there because the Title and description show. You can hard code it into the post too and it show on the published post. Just a small conflict with the editor I think.
Any solutions anyone? I’m no coder!
July 7th, 2010 at 9:41 pm
This is broken in WP 3.0, both IE and Firefox. It appears there’s a PHP error in the code…
Fatal error: Call to a member function getAbsoluteUrl() on a non-object in /home/philnich/public_html/cmohf.philnicholas.com/wp-content/plugins/wordpress-flickr-manager/js/media-panel.php on line 11
I may try to mess with it to see if I can get it going since I really want this plug-in to work.
July 10th, 2010 at 11:40 am
I’d be curious to here if anyone has tried this in WP 3.0 too. I am planning to upgrade a client from WP 2.5.1 to 3.0, but am a little nervous as they are highly dependent on the WP Flickr Manager plugin.
Anyone have any tips I should follow for making the upgrade with this plugin (steps, process to follow, etc.)?
Thanks!
July 10th, 2010 at 3:43 pm
Your fix worked perfectly! Thank you!
July 10th, 2010 at 4:11 pm
For anyone that is having trouble getting the plugin to actually insert photos into your post, go back and open up all of the .php files in the /js folder, and do a mass search-and-delete for any @ symbols.
July 11th, 2010 at 7:49 pm
Including images from the photo stream seems fine in version 3.0, but attempting to add images from a specific set causes problems.
No photos show up in the a specific set, and trying to add a whole set gives an error – Warning: Invalid argument supplied for foreach() which is to be expected. The plugin can’t find any files so the foreach() errors….
If I get chance, I’ll try to have a look – I always add from the photostream rather than a set, which is why I’ve not spotted it before. There may well be an official fix by now, but I’ve not checked it out.
July 11th, 2010 at 7:50 pm
Adding a photo from the photostream works for me in version 3.0 using Firefox. I only get an error when trying to add a complete set.
July 11th, 2010 at 7:51 pm
I have the same problem – will have a look if I get chance. Otherwise, adding from the photo stream rather than a set works for me.
July 14th, 2010 at 10:32 am
[...] et j’ai enfin r
July 19th, 2010 at 7:44 pm
My gut feeling is that this is something to do with the Flickr API – I have the same problem with a professional site I use for photo printing.
My assumption is that the Flickr API is only looking for publicly available pictures – which makes sense if you are then using it on a blog. I haven’t had chance to look at the API in any detail, though.
July 19th, 2010 at 8:41 pm
I’d really need this to work for a client and I’ll gladly donate a couple of bucks to the one who comes up with a solution for this problem…
August 4th, 2010 at 8:10 am
Is any one having a problems since the 3.1 update?
August 4th, 2010 at 8:10 am
Hi
I’m not sure if I’m being an idiot. So I hope someone might be able to help.
I’ve made the changes to the plug-in files and it seems to work to an extent. I can upload images to Flickr and then insert them into the post. However, if I then re-open the Flickr Manager browser it doesn’t show any photos under “My Photos”, “My Photosets” or “Public Photos”. It simply says “No photos found.” I haven’t really used Flickr before so I’m not sure if I’ve missed a setting there.
Any idea what I’ve done wrong?
Thanks.
August 11th, 2010 at 2:21 pm
Thank you! I was so frustrated and then I found this page. You saved my new WP install.
August 20th, 2010 at 6:01 pm
thanks a lot, really!
lightbox doesnt work, but heck, thats detail
what doesnt seem to work are the user level restrictions – i have a lot of contributors but even then they cant upload directly to flickr even though i gave them permission…
does anyone know?
August 20th, 2010 at 6:02 pm
Works for me in 3.0.1
August 31st, 2010 at 7:22 pm
I am using WP 3 and the fix works fine.
September 6th, 2010 at 6:53 pm
Works in 3.0.1. Thank you very much.
September 24th, 2010 at 9:25 pm
I just followed the instructions listed above on my WordPress 3.0.1 installation and was able to get the plugin to work, except for one minor thing (which I’ve been pulling my hair out trying to figure out all afternoon).
When I go to insert any sized photo into the post except for “Medium 640″, I am able to get it to insert without a hitch. But when I insert a “Medium 640″ image, the image source does not get passed across properly and the “image” just appears as a broken link. I’m thinking this probably has something to do with the fact that when the plugin was written, Flickr did not offer that size as an option so it’s just a matter of going through and adding that in where appropriate within the code. I was able to find a couple of these but there must be a few that are still eluding me. The two arrays that I updated were in “FlickrCore.php” all the way down on line 194 which lists the various ways in which the file names are altered depending on the size of the photo and in “FlickrManager.php” on line 1731 where the array for the lightbox preview size is constructed.
Is there anyone out there that is having this same issue? If so, are there any PHP or WordPress wizards that might be able to point me in the right direction in terms of cracking this nut?
October 4th, 2010 at 1:32 am
[...] for me to create the Pix page. Thank heavens for a post on boche.net that then led to a post on Workflow FAQ that explained what I needed to do to get it to work – basically, just taking the @ symbol [...]
October 6th, 2010 at 3:36 am
Thank you. You made this great plugin work again
November 8th, 2010 at 2:42 pm
Flickr is the best photosharing tool that can resize my pictures so well
January 25th, 2011 at 3:51 pm
I seem to be having the inverse problem that most people are having. I’m able to select photos from old photosets, or entire photosets, however I am not able to see anything in the “My photos” or “public photos” tabs.
Has anyone else experienced this issue and corrected it?
April 8th, 2011 at 5:17 am
Just installed the WFM on WP3.1.1 and applied the modifs as explained in this post. Works like a charm out of the box. Thank you!! I don’t know what I’d do without Flickr Manager. That no one has replicated this awesome plug-in following Mr. Gartner’s vanishing from the net is beyond me!
August 24th, 2011 at 6:22 am
Thanks for providing this changes and sharing with us.
August 24th, 2011 at 11:40 pm
Hi,
i have just updated worpdress to 3.2.1 and the original probleme came back. No more Lightbox and the insert button is not working anymore. Do you know if there is a special modification in wp ?