WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Flickr Gallery] Fatal Error in v0.1.2 (10 posts)

  1. jaledwith
    Member
    Posted 6 years ago #

    When I attempt to enter the Flickr API key in the Flickr Gallery plugin I receive the following error:

    Fatal error: Cannot redeclare class pear in {server path}/wp-content/plugins/flickr-gallery/phpFlickr/PEAR/PEAR.php on line 103

    http://wordpress.org/extend/plugins/flickr-gallery/

  2. DanCoulter
    Member
    Posted 6 years ago #

    This will only affect a small amount of people. I'll figure out a fix for 0.1.3. In the meantime, check out the phpFlickr.php file. There are two ini_set lines at the top. One of them is commented out. If you flip those two, it should start working for you.

  3. jaledwith
    Member
    Posted 6 years ago #

    I made the change to phpFlickr.php, but now I receive the following error:

    Fatal error: Cannot redeclare class phpflickr in {server path}/wp-content/plugins/flickr-gallery/phpFlickr/phpFlickr.php on line 44

    Any suggestions?

  4. DanCoulter
    Member
    Posted 6 years ago #

    That's really odd. I'll get a release out in a day or two that should address the initial problem. Sorry for the errors.

  5. DanCoulter
    Member
    Posted 6 years ago #

    I just put up the new version. It shouldn't have any further problems with the includes. In fact, I created a branch of phpFlickr that doesn't use the PEAR libraries at all.

  6. joelgoodman
    Member
    Posted 6 years ago #

    Hey Dan, thanks for this. I've been waiting for a Flickr plugin that actually works well :) - I mean other than the ones based on phpFlickr.

  7. grid
    Member
    Posted 6 years ago #

    I get this error:

    Warning: init(phpFlickr.php) [function.init]: failed to open stream: No such file or directory in /{path_removed}/wordpress/wp-content/plugins/flickr-gallery/flickr-gallery.php on line 62
    
    Warning: init() [function.include]: Failed opening 'phpFlickr.php' for inclusion (include_path='.:/usr/lib/php') in /{path_removed}/wordpress/wp-content/plugins/flickr-gallery/flickr-gallery.php on line 62
    
    Fatal error: Cannot instantiate non-existent class: phpflickr in /{path_removed}/wordpress/wp-content/plugins/flickr-gallery/flickr-gallery.php on line 63

    This is just a capitalization issue... so the developer is probably working in a windows environment (for shame)! It works just fine once you change the includes to lowercase.

  8. grid
    Member
    Posted 6 years ago #

    I suppose it's also possible this is a product of how I'm unzipping the files... are they supposed to be capitalized in the zip? *sheepish grin*

  9. DanCoulter
    Member
    Posted 6 years ago #

    I've been developing this on Linux actually. When I download the zip or look at SVN, the file is correctly capitalized like the include. What are you using to unzip the files?

  10. grid
    Member
    Posted 6 years ago #

    I always just use unzip... unzip --help says:
    UnZip 5.52 of 28 February 2005, by Debian. Original by Info-ZIP.

    Very strange.

Topic Closed

This topic has been closed to new replies.

About this Topic