denewman Posted February 26, 2011 Share Posted February 26, 2011 I am getting the following error trying to login to my wordpress backoffice. Fatal error: Cannot redeclare iis7_supports_permalinks() (previously declared in /home/denewman/public_html/KoodayOnline.com/wp-includes/functions.php:3476) in /home/denewman/public_html/KoodayOnline.com/wp-admin/includes/misc.php on line 403 Searching online it appears there is a conflict where there should be a require_once function or something of that sort. There is even a post on this board that talks about it at http://www.phpfreaks.com/tutorial/defining-a-php-function-only-once Since I have never actually dealt with this code before I am not sure where I need to put it for this error. Basically I need help. I have attached the code in two notepad files. Would appreciate any help I can get [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/228899-fatal-error-cannot-redeclare-problem/ Share on other sites More sharing options...
gizmola Posted February 26, 2011 Share Posted February 26, 2011 Well you have 2 files with the same function declared. This is why you're getting the error. Comment out the function in one or the other of the include files. Quote Link to comment https://forums.phpfreaks.com/topic/228899-fatal-error-cannot-redeclare-problem/#findComment-1179934 Share on other sites More sharing options...
denewman Posted February 26, 2011 Author Share Posted February 26, 2011 Thanks, that was the esiest way to do it. I nearly asked how to comment it out, that's how much I haven't used this stuff...lol. Did it and it came up with a similar type of error which I managed to do the same for. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/228899-fatal-error-cannot-redeclare-problem/#findComment-1179954 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.