Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7997561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:59:33+00:00 2026-06-04T14:59:33+00:00

I am working for a client who is using the flickerRSS RU plugin for

  • 0

I am working for a client who is using the flickerRSS RU plugin for WordPress. However when they try to put more than one calling of the function per page they get this error in the error_log:

PHP Fatal error:  Cannot redeclare get_and_delete_option() (previously declared 
in .../wp-content/plugins/flickrrss-ru/flickrrssRU.php:21) in 
.../wp-content/plugins/flickrrss-ru/flickrrssRU.php on line 21

First of the plugin calls is:

get_flickrRSSRU(array(
    'set' => '72157624558519886',
    'num_items' => 3,
    'type' => 'set',
    'html' => ' <a href="%flickr_page%" title="%title%"><img src="%image_square%" alt="%title%"/ height="68px" ></a>'));

Followed by:

get_flickrRSSRU(array(
    'set' => '72157624558519886',
    'num_items' => 11,
    'type' => 'set',
    'html' => ' <a href="%flickr_page%" title="%title%"><img src="%image_square%" alt="%title%"/ height="75" ></a>'));

I am not sure why these two calls would try to initialize the plugin again if it was loaded via WordPress.

I found out that this specific function being used is in the plugin as such:

$flickrRSSRU = new flickrRSSRU();
add_action( 'admin_menu', array(&$flickrRSSRU, 'setupSettingsPage') );
add_action( 'plugins_loaded', array(&$flickrRSSRU, 'setupWidget') );
register_activation_hook( __FILE__, array( &$flickrRSSRU, 'setupActivation' ));

function get_flickrRSSRU($settings = array()) {
    global $flickrRSSRU;
    $flickrRSSRU->printGallery($settings);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:59:34+00:00Added an answer on June 4, 2026 at 2:59 pm

    My guess is it’s line 49 in flickrrssRU.php

    if (!get_option('flickrRSSRU_settings')) $this->setupActivation();
    

    This one is likely calling $this->setupActivation() both times, which is declaring the get_and_delete_option() function inside of that method. It should have been creating the options when the plugin was activated, however it seems to be having trouble accessing it.

    Look in your wp_options table and see if you can find the “flickrRSSRU_settings” key in there.

    Alternative solution is to change line 21 of that same file from

    function get_and_delete_option($setting) { $v = get_option($setting); delete_option($setting); return $v; }
    

    to

    if(!function_exists('get_and_delete_option')) {
        function get_and_delete_option($setting) { $v = get_option($setting); delete_option($setting); return $v; }
    }
    

    However if it’s not finding the settings, you may run into other problems later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we're working with a client who's parent company is using intershop enfinity 6 as
I'm working with a client who is using an old version of GCC (3.2.3
I'm working for a client who installed WordPress on his server. But it doesn't
I'm working with a client who has just upgraded from SQL 2000 to SQL
I am working on Windows client application using c#, have two projects in my
I'm working with client who provided me with somewhat vague instructions. Here's what I'm
I'm working with a client who wants to mix LINQ to SQL with their
I'm working with a client who has an existing system, built on what is
I am working for a client who gets data in Excel spreadsheets but wants
I am working on a Corba client for some time. One problem that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.