problem with flickr

Creating and modifying plugins.
Post Reply
nPu

problem with flickr

Post by nPu »

hi, i have tried to install flickr plugin through my administration and I have ended fu*ked up

Code: Select all

Warning: generate_content(Flickr/API.php): failed to open stream: No such file or directory in /home/ftpsite/petrhavlik.profitux.cz/blog/plugins/serendipity_plugin_flickr/serendipity_plugin_flickr.php on line 166

Fatal error: generate_content(): Failed opening required 'Flickr/API.php' (include_path='.:/usr/lib/php:/home/ftpsite/petrhavlik.profitux.cz/blog/:/home/ftpsite/petrhavlik.profitux.cz/blog/bundled-libs/') in /home/ftpsite/petrhavlik.profitux.cz/blog/plugins/serendipity_plugin_flickr/serendipity_plugin_flickr.php on line 166
what shall I do?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problem with flickr

Post by garvinhicking »

This means that the Flickr/API.php file could not be found.

Please read the readme.txt of the flickr plugin for instructions on what prerequisites you need to run the plugin

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/
Guest

Post by Guest »

I had the same problem but the really big issue is I can't uninstall the plugin and it has corrupted the whole plugin side bar. My blog looks look awful now!

Help!
zoran
Regular
Posts: 71
Joined: Sun Jan 16, 2005 9:13 pm
Location: Amsterdam
Contact:

Post by zoran »

Usually you can still delete corrupted plugins from the backend.

Perhaps you can give a link to your site and explain what went wrong? If not, it is a bit hard to offer any help ...
sasha
Regular
Posts: 21
Joined: Thu Nov 24, 2005 10:45 pm

Post by sasha »

yup you were right. we were able to do that. thanks!! can you tell me where the readme file is located for flickr?

what happened was we tried to install the plugin and we saved it with a typo in our flickr account e-mail address. i don't know if this is what caused the problem but once we tried to save the plugin config it corrupted. we could not back out, we could not delete the plugin, reinstall it, or re-configure it. from the admin panel we could only see abouot 75% of our sidebar plugins and none of the event plugins in the config. plugins panel.

on the live site we only were able to view an error next to our posts. the entire plugin sidebar was gone.

we went into the backend and deleted all the flickr entries in the plugin data base.

zoran wrote:Usually you can still delete corrupted plugins from the backend.
latcarf
Regular
Posts: 25
Joined: Tue Apr 12, 2005 1:21 am
Location: Silicon Valley, CA
Contact:

Post by latcarf »

flickr plugin read me points here for instructions:

http://code.iamcal.com/php/flickr/readme.htm
philip
Regular
Posts: 8
Joined: Sat Mar 18, 2006 1:17 am

this plugin needs documentation

Post by philip »

Installing this Plugin can be a nightmare as this requirement comes without warning and will kill your blog. On a shared web host it's not always simple to install PEAR modules, and the readme is certainly not s9y specific.

How to make it work:
  1. Do not install the plugin first, but since you did, continue.
  2. Go to the following site and read the readme: http://code.iamcal.com/php/flickr/readme.htm
  3. Download the latest package from the above URL. Unzip it somewhere.
  4. s9y alters the include_path which makes this easier so use this to your advantage. You will have /yourS9YdirHere/bundled-libs/ which will already contain PEAR packages but more are needed for the Flickr plugin. Add XML/Tree*, XML/Parser.php, and of course Flickr/* to this directory (do not add the pear/ subdirectory). You will already have the others installed (at least I did) so do as you wish. It should be okay to simply move all of them but be sure to not install older versions of said PEAR packages.
  5. Install the plugin or at least hope that it works now.
This is a request to clearly mention in the s9y plugins area that this plugin requires external resources, in fact, I'd go as far as to have it check for the Flickr PEAR package first and if not found have the install fail. Or, automagically download the required PEAR packages into /bundled-libs/ during the install.

Note: I'm just a user and am not certain the above will work for everyone, but IIRC it did for me.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: this plugin needs documentation

Post by garvinhicking »

Hi!

There's a new PHP5 plugin for flickr that does not have this requirement, maybe people want to try that instead, if they have PHP5...

Sadly because of licensing issues we can't bundle the flickr API with the plugin...

Thanks for your instructions - I'm sure they can help a lot of people!

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/
Post Reply