dkirwin
10-24-2008, 05:59 PM
okay i need help with this i was hoping someone on this forum can tell me how to fix this i try to submit feed and when i click submit gbase feed this is what happens
Fatal error: Cannot redeclare unhtmlspecialchars() (previously declared in /home/handmad1/public_html/includes/functions.php:24) in /home/handmad1/public_html/admin/templates/gbasemod.tpl.php on line 34
now i can see the reason this is happening cause the exact same code being this
function unhtmlspecialchars ($string) {
$string = str_replace (''', '\'', $string);
$string = str_replace ('%23', '\"', $string);
$string = str_replace ('"', '\"', $string);
$string = str_replace ('<', '<', $string);
$string = str_replace ('>', '>', $string);
$string = str_replace ('&', '&', $string);
$string = str_replace (' ', ' ', $string);
$string = stripslashes($string);
return $string;
}
this code is both in the includes/functions.php and gbasemod.tpl and they are conflicting but i tried taking this code out of the includes file and things went haywire so how do i fix this???
Fatal error: Cannot redeclare unhtmlspecialchars() (previously declared in /home/handmad1/public_html/includes/functions.php:24) in /home/handmad1/public_html/admin/templates/gbasemod.tpl.php on line 34
now i can see the reason this is happening cause the exact same code being this
function unhtmlspecialchars ($string) {
$string = str_replace (''', '\'', $string);
$string = str_replace ('%23', '\"', $string);
$string = str_replace ('"', '\"', $string);
$string = str_replace ('<', '<', $string);
$string = str_replace ('>', '>', $string);
$string = str_replace ('&', '&', $string);
$string = str_replace (' ', ' ', $string);
$string = stripslashes($string);
return $string;
}
this code is both in the includes/functions.php and gbasemod.tpl and they are conflicting but i tried taking this code out of the includes file and things went haywire so how do i fix this???