This topic has 6 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #2523
     fcm2013
    Participant

    Every time I put the functions.php into the child theme I get the following message and have just realized it’s the same error message from previous updates that I was doing and thinking was the code I was inserting. As soon as I remove it the problems goes away. Which doesn’t make any sense at all.

    Warning: require_once(framework/constants.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/99/11448799/html/test/wp-content/themes/sweetdate-child/functions.php on line 39

    Fatal error: require_once() [function.require]: Failed opening required ‘framework/constants.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/99/11448799/html/test/wp-content/themes/sweetdate-child/functions.php on line 39

    #2543
     SQadmin
    Keymaster

    Hi,
    Definitely you are doing something wrong in the file :). Paste the contents of your file here so we can take a look

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2554
     fcm2013
    Participant
    COPY CODE
    
    //code
    
    #2555
     fcm2013
    Participant

    Thanks for looking at this for me.

    #2575
     SQadmin
    Keymaster

    Wow.
    That is your main theme functions.php
    Your sweetdate-child should be empty or some demo lines I have added to it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2593
     fcm2013
    Participant

    SO I should replace it with the original child theme functions.php and then add the extra code to that?

    #2597
     SQadmin
    Keymaster

    Yes or create a new file called functions.php and just add

    COPY CODE
    
    
    <?php
    

    on the first line. Then paste custom codes into it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Problem with functions.php in child theme’ is closed to new replies.

Log in with your credentials

Forgot your details?