Fatal error: Cannot redeclare graphene_custom_header_width

  • khudec06


    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!



    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!



    function graphene_custom_header_width(){

    return 1024;


    function graphene_custom_header_height(){

    return 211;


    add_filter(‘graphene_header_image_width’, ‘graphene_custom_header_width’);

    add_filter(‘graphene_header_image_height’, ‘graphene_custom_header_height’);




    Kenneth John Odle


    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)


    Kenneth John Odle


    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.



    Here is the link to my site:




    Did you sort it out? Your site looks okay now.



    Yes I did….I ended up having an extra function file somewhere in there. Thank you for the help!


    Kenneth John Odle


    Whoa…that’s a new one on me. Into the bag of tricks it goes…..


Viewing 9 posts - 1 through 9 (of 9 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum