-
Author
-
September 9, 2013 at 16:55 #2523
fcm2013
ParticipantEvery 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
September 9, 2013 at 21:42 #2543SQadmin
KeymasterHi,
Definitely you are doing something wrong in the file :). Paste the contents of your file here so we can take a lookHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 10, 2013 at 07:38 #2575SQadmin
KeymasterWow.
That is your main theme functions.php
Your sweetdate-child should be empty or some demo lines I have added to itHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 10, 2013 at 15:15 #2593fcm2013
ParticipantSO I should replace it with the original child theme functions.php and then add the extra code to that?
September 10, 2013 at 16:44 #2597SQadmin
KeymasterYes or create a new file called functions.php and just add
COPY CODE<?phpon 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 -
AuthorPosts
The topic ‘Problem with functions.php in child theme’ is closed to new replies.

