2

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

0

2 Answers 2

3

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.

1
  • This looks like a likely cause. But it has worked this way before, and that line looks exactly like in the original theme file. I have searched some more, and I think my problem has something to do with this question. I don't have time anymore to fix it today, but tomorrow I will let you know how I solved it.
    – Forza
    Commented May 22, 2013 at 13:36
0

@toscho is correct that poor coding in the parent theme has broken your site.

As for your second question, how to revert to your previous theme, if you login to your site via FTP (or SFTP, SSH, etc) and delete or rename the child theme folder, WordPress will detect that this theme no longer exists and revert to the default theme. Then you should be able to visit your themes dashboard page and switch to a theme of your liking.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.