简体   繁体   中英

PHP Fatal error: Cannot redeclare frm_dl() wordpress

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!

Locate where the function is being declared and wrap it in an if statement to ensure the function is not already declared.

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

this should solve the issue if its the same file being included twice.

alternatively, search for multiple files declaring the function and wrap each one in the conditional statement, or change on of the function names (if possible)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM