Fatal error: Cannot redeclare error() (previously declared in /usr/home/http/mysite.com/modules/PN_zClassifieds/common.php:80) in /usr/home/http/mysite.com/modules/rssdisplay/pnincludes/rss_fetch.inc on line 221
the code on rss_fetch.inc on line 221 reads:
Code
function error ($errormsg, $lvl=e_user_warning) {
global [19] $MAGPIE_ERROR;
global [19] $MAGPIE_ERROR;
the code on Classfieds in common is:
Code
function error( $error )
{
echo [20] "<br><br><p class=\"classifieds-messages\">"._ERROR.": $error\n";
echo [21] " <a href=\"javascript:history.back()\">"._BACK."</a></p><br><br>\n";
//exit();
}
{
echo [20] "<br><br><p class=\"classifieds-messages\">"._ERROR.": $error\n";
echo [21] " <a href=\"javascript:history.back()\">"._BACK."</a></p><br><br>\n";
//exit();
}
im not a big PHP expert but it seems they are both using a function called error.. how could this be resolved, is there a way to clear the functions when going to another part of the site?
sorry PHP newbie :)
