WordPress.org

Ready to get started?Download WordPress

Forums

One-Click Child Theme
Weird errors after creating child (15 posts)

  1. karenlowe
    Member
    Posted 2 years ago #

    Getting this strange error now at my url: http://www.alldogsdream.com

    Also has booted me out of admin and I can't log back in. This error is in the admin area:
    array(5) { ["parent_template"]=> string(11) "animalhouse" ["parent_theme"]=> string(11) "animalhouse" ["new_theme"]=> string(20) "all-dogs-dream-child" ["new_theme_path"]=> string(87) "/misc/31/290/995/803/6/user/web/alldogsdream.com/wp-content/themes/all-dogs-dream-child" ["new_theme_title"]=> string(20) "All Dogs Dream child" } NULL Theme switched!

    http://wordpress.org/extend/plugins/one-click-child-theme/

  2. karenlowe
    Member
    Posted 2 years ago #

    I seemed to have fixed the problem by copying the "admin" folder from my original theme folder to the new child theme folder.

  3. alex27
    Member
    Posted 2 years ago #

    Yeah, the same thing happens with theme Delicacy. Not to mention it crashed my whole website with fatal errors. Copying admin folder from parent theme helped, but I think the whole point of this plugin, is that I don't have to do it manually via FTP.

  4. Jon Brown
    Member
    Posted 2 years ago #

    If the parent theme is coded properly this shouldn't happen.

    A blind guess, but if the parent theme is using get_stylesheet_directory to find it's admin folder instead of get_template_directory this could happen.

    Quickly looking at Delicacy it's doing some unusual conditional logic to determine where to load the admin from:

    /*------------------------------------------------------------*/
    /* Options Framework Theme
    /*------------------------------------------------------------*/
    
    /* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */
    
    if ( STYLESHEETPATH == TEMPLATEPATH ) {
    	define('OPTIONS_FRAMEWORK_URL', TEMPLATEPATH . '/admin/');
    	define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/admin/');
    } else {
    	define('OPTIONS_FRAMEWORK_URL', STYLESHEETPATH . '/admin/');
    	define('OPTIONS_FRAMEWORK_DIRECTORY', get_stylesheet_directory_uri() . '/admin/');
    }
    
    require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php');
    
    }

    I'm not going to dig into it further, but it looks like a non-standard way to define parent/child themes...

  5. viv85e
    Member
    Posted 2 years ago #

    Stopping by to say thanks to all of you above. I had the same problem and fixed it by moving the admin folder. Cheers! :)

  6. erea77
    Member
    Posted 1 year ago #

    I just got a similar error.

    Now I can't access anything on the WP admin or the actual site.

    Getting "server error" on chrome when trying to load anything.

    Did this happen to you all as well?

    Thanks

  7. Tech4Eleven
    Member
    Posted 1 year ago #

    This theme didnt work for me either. Even after moving the admin folder to the child theme. I have just about the same conditional formatting as above and I think thats what really screwing me up. My site it just blank when I do all this. back to the normal theme for now.

  8. loriverni
    Member
    Posted 1 year ago #

    I just used the One Click Child Theme (unfortunately before reading this thread!) and am getting the following error: (ACK!!!!)...

    Warning: require_once(/home/loriverni/loritheauthor.com/wp-content/themes/loritheauthors-child-theme/meta-box/meta-box.php) [function.require-once]: failed to open stream: No such file or directory in /home/loriverni/loritheauthor.com/wp-content/themes/delicacy/functions.php on line 157

    Fatal error: require_once() [function.require]: Failed opening required '/home/loriverni/loritheauthor.com/wp-content/themes/loritheauthors-child-theme/meta-box/meta-box.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/loriverni/loritheauthor.com/wp-content/themes/delicacy/functions.php on line 157

    I have no idea what I should do now! My entire website seems to be GONE! Any help would be vastly appreciated... if I had the coding knowledge, I wouldn't have been using One Click in the first place! ACK!

    Site: http://www.LoriTheAuthor.com

    Thanks in advance.

  9. Tech4Eleven
    Member
    Posted 1 year ago #

    I got this too and I get it when building sites if the theme Im using doesnt support child themes. Your theme's functions.php doesnt currently allow child themes so to fix your issue (make your site work), you'll need to go into phpmyadmin and tell the database to use your default theme. Once you get the site back up, you'll have to either forgo a child theme or edit your themes functions.php to look to your stylesheet directory.

    Your site is not gone, rest assure.

    You're errors have nothing to do with this plugin. It all goes back to your default theme.

  10. loriverni
    Member
    Posted 1 year ago #

    Thank you so much, Tech4Eleven! I just restored my site via my host, so I'm okay. But what would you suggest? Should I just always keep a copy of my .css stylesheet whenever I make customizations? Or what? I feel like it's too late to switch to an entirely different theme and I do have a lot of customizations. Thanks.

  11. Tech4Eleven
    Member
    Posted 1 year ago #

    are your customizations in your childtheme's stylesheet or just in the themes stylesheet?

  12. alex27
    Member
    Posted 1 year ago #

    If all you need are css customizatons, you could use a plugin like My Custom CSS or Custom JavaScript Editor. It allows you to input your own styles or overwrite theme stylesheet and keep the changes while updating the theme. Anyway I plan to make Delicacy Child theme friendly soon :)

  13. Tech4Eleven
    Member
    Posted 1 year ago #

    +1 (although sometimes you need to edit the header. I had to edit the header of my theme in order to find my childs stylesheet. but maybe you dont have to do that with the plugins above.

  14. loriverni
    Member
    Posted 1 year ago #

    There is no child theme... that's what I was trying to create.

    When I started my site, I used the Delicacy theme. Over time, I've gone directly into the Stylesheet (style.css) and made changes to layout, colors, etc, etc.

    I recently found out that you're not supposed to do that... you're supposed to have a Child Theme so that if there were an update you wouldn't lose all your customizations. So, I read a zillion blogs, wasted hundreds of hours trying to figure out how to do it, and ended up trying the One Click Child Theme Plugin. Ended up with the error above, etc.

    So, that's the story. Just trying to figure out what would be best to do now. I love my site and have put a lot of work into it! Thanks so much for your time... it is genuinely appreciated!!

  15. tobywearefine
    Member
    Posted 1 year ago #

    Hi All, I've downloaded & activated the One Click Child Theme Plugin via the plugin page of my clients site, I then tried to fil in the form as instructed but I then just got this message:

    This child theme requires its parent theme, RT-Theme 16.

    Any ideas or help to how I get the One Click Child Theme Plugin to work?

    Cheers
    Toby

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic