January 4, 2012 at 4:27 pm #2816
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!January 4, 2012 at 4:53 pm #22044Prasanna SPMember
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-ChildJanuary 4, 2012 at 5:25 pm #22045
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!
*/January 4, 2012 at 7:43 pm #22046
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 (
<?php)January 4, 2012 at 7:44 pm #22047
Prasanna meant to comment out the code in your functions file, which would prevent those functions from being implemented. Then you would know if the functions file really is the problem.January 4, 2012 at 8:02 pm #22048January 5, 2012 at 3:58 am #22049Prasanna SPMember
Did you sort it out? Your site looks okay now.January 5, 2012 at 4:08 pm #22050
Yes I did….I ended up having an extra function file somewhere in there. Thank you for the help!January 5, 2012 at 11:42 pm #22051
Whoa…that’s a new one on me. Into the bag of tricks it goes…..
You must be logged in to reply to this topic.