Fatal error: Cannot redeclare graphene_custom_header_width
I have never had a problem with my child theme until this morning. When going to my site, the following message appeared instead:
Fatal error: Cannot redeclare graphene_custom_header_width() (previously declared in /hermes/bosweb/web107/b1071/ipg.odysseyhealthsystems/functions.php:3) in /hermes/bosweb/web107/b1071/ipg.odysseyhealthsystems/wp-content/themes/Graphene-Child/functions.php on line 4
I am not sure what happened or how to fix this. I did not make any changes to the header recently, nor have I done anything with the functions. Everything was working fine yesterday but today I only get that fatal error. Any help would be greatly appreciated…thank you!
AnonymousJanuary 4, 2012 at 4:53 pm #22044
Quick fix: Comment everything in your child theme’s functions.php file. i.e put /* at the beginning of the file and */ at the end.
Then give us the code in your functions.php file (use pastebin.com if it is too long). We might suggest you any solutions.
It’s off the topic, but it is always good to use lower case letters while naming the directory like, graphene-child rather than Graphene-Child
Thanks for the info about using lower case letters, I will have to change that. I am new to CSS and HTML. As for my functions.php file, its pretty small and simple. The only function I made was for the header, which was months ago and I have never had a problem until now. Thanks for the help!
Is there a link to your site? The one you entered in your profile returns a 404.
It’s possible your host upgraded or changed something which is now incompatible. (How likely is this? Who knows?)
Also, be sure that there are no trailing spaces anywhere in your functions file, and absolutely nothing (not even a space) before the opening PHP tag (
AnonymousJanuary 5, 2012 at 3:58 am #22049
Did you sort it out? Your site looks okay now.
- You must be logged in to reply to this topic.