0

i'm having a 500 internal server problem. http://www.bunchmag.com/

500 internal server error Fatal error: Cannot redeclare frm_dl

20130329T141539: www.bunchmag.com/index.php PHP Fatal error: Cannot redeclare frm_dl() (previously declared in /hermes/web09/aksjhfks/moo.bunchmagazinecom/bunch/index.php(1) : eval()'d code:1) in /hermes/web09/skjfljf/moo.bunchmagazinecom/bunch/wp-config.php(1) : eval()'d code on line 10

my hosting tech support is working on it but any help would be greatly appreciated!

4

1 回答 1

0

找到声明函数的位置并将其包装在 if 语句中以确保尚未声明该函数。

if( !function_exists( "frm_dl" ) ){
    function frm_dl(..){
        ...
    }
}

如果相同的文件被包含两次,这应该可以解决问题。

或者,搜索多个声明函数的文件并将每个文件包装在条件语句中,或者更改函数名称(如果可能)

于 2013-03-29T20:34:41.963 回答