So, I have a child-theme with nothing but the required CSS file in it. Once I activated this child-theme my entire site is down. I end up with 2 questions:

  1. How can activating a child-theme with nothing but a CSS in it break my site?
  2. How can I revert to my original theme?

These are the errors the site gives me:

Warning: require_once(/wp-content/themes/interio_child/admin/options-framework.php) [function.require-once]:
failed to open stream: No such file or directory in
/wp-content/themes/interio/functions.php on line 54

Fatal error: require_once()
[function.require]:

Failed opening required
'/wp-content/themes/interio_child/admin/options-framework.php'
(include_path=".:/usr/lib/php:/usr/local/lib/php")

in /wp-content/themes/interio/functions.php on line 54

2 Answers
2

Your parent theme is probably broken. I guess it is using code like this:

require_once get_stylesheet_directory() . '/admin/options-framework.php';

So it will search in the child theme for files that are present in the parent theme only. It should use get_template_directory() instead.

Leave a Reply

Your email address will not be published. Required fields are marked *