Copied entire functions.php file to child theme and broke the site
-
Hi all,
I’m running the Mystique theme, which automatically creates a child theme. I had some custom code in the functions.php file, but then when the theme updated I lost that code. No problem I thought, I’ll just put the code back in–but this time, I’ll put it in the child theme folder.
So I copy the entire functions.php file to my child theme folder and promptly broke the site. I assumed that WordPress would load the child theme functions.php instead of the main theme functions.php, but instead it loaded both of theme.
No problem, I just deleted the functions.php file from the child theme and restored functionality.
However, I’m still getting some lingering errors. My comment fields are blank (so rather than displaying “Name” in the field where users should put their names to comment, it displays nothing), and my theme settings pages says
““Warning: fopen(/home/impro/public_html/wp/wp-content/themes/mystique-extend/lang/.mo) [function.fopen]: failed to open stream: No such file or directory in /home/impr/public_html/wp/wp-includes/pomo/streams.php on line 109″”
How do I fix this error and make sure my site returns to normal?
Is it possible to reinstall my main theme without losing the settings in my child theme?
Is it possible to reinstall my child theme without deleting my main theme?
What is my best course of action here?
Any advice would be appreciate ??
- The topic ‘Copied entire functions.php file to child theme and broke the site’ is closed to new replies.