Welcome to WebmasterWorld Guest from 54.204.74.171

Forum Moderators: phranque

Message Too Old, No Replies

Wordpress Magpie Fatal Error

cannot redeclare

   
2:56 pm on Jan 25, 2008 (gmt 0)

5+ Year Member



Okay, I know this happens all the time for Wordpress users, but I cannot find an up-to-date workaround. Anybody know how to deal with this fatal error?

Fatal error: Cannot redeclare fetch_rss() (previously declared in /var/www/vhosts/mydomain.com/httpdocs/wp-includes/rss.php:1209) in /var/www/vhosts/mydomain.com/httpdocs/wp-admin/magpierss/rss_fetch.inc on line 221

This is basically shutting down a crucial plugin.

Thanks,
ssling

12:16 am on Jan 26, 2008 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hmmm. Poor design. I would check to see if the function exists first (if they are truly the same exact function). If not, go ahead and define it, or include it ... whichever.
if (!function_exists [php.net]('fetch_rss')) { 
function fetch_rss()
{
// function definition here
}
}
7:19 am on Jan 28, 2008 (gmt 0)

5+ Year Member



hi coopster,

thanks for your suggestion. got me thinking... i ended up just killing the request, however, and the plugin works fine now.

yes poor design i agree.

/ssling