Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

migrated from webmasters.stackexchange.com May 22 '13 at 9:46

This question came from our site for pro webmasters.

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.

share|improve this answer
    
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 May 22 '13 at 13:36

@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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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