WordPress.org

Ready to get started?Download WordPress

Forums

F8 Lite
fatal error when creating child theme (4 posts)

  1. Jamil Jonna
    Member
    Posted 2 years ago #

    Hello,

    Can anyone tell me why I get a fatal error when creating a child theme? All my style.css file has in it is the following:

    /**
     * Theme Name: OE Media Group
     * Theme URI: http://graphpaperpress.com/themes/f8-lite/
     * Description: Child Theme for Occupy Eugene Media Group (based on F8 lite)
     * Version: 0.1
     * Author: Jamil
     * Author URI: http://occupyeugenemedia.org/
     * Template: f8-lite
     */
    
    /* Importing the parent theme stylesheet. */
    @import url("../f8-lite/style.css");
    
    /* All custom style rules should be placed below here. */
    
    .postmetadata {
    	color: #bbb;
    }
    
    .postmetadata a {
    	color:#ff0000;
    }
    
    .postmetadata a:hover {
    	color:#bbb;
    }

    Yet I get the following errors when I preview:

    Warning: require_once(/home/oemedia/public_html/occupy/wp-content/themes/oe-media-group/theme-options.php) [function.require-once]: failed to open stream: No such file or directory in /home/oemedia/public_html/occupy/wp-content/themes/f8-lite/functions.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required '/home/oemedia/public_html/occupy/wp-content/themes/oe-media-group/theme-options.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/oemedia/public_html/occupy/wp-content/themes/f8-lite/functions.php on line 4

    Many thanks.

    http://wordpress.org/extend/themes/f8-lite/

  2. burleighgirly
    Member
    Posted 2 years ago #

    I experienced the same problem, once with an edited CSS, and then creating the child immediately after reinstalling everything. Same problem.

  3. Trippa
    Member
    Posted 2 years ago #

    Just doing the first steps with this theme and getting this same error with only the stylesheet import in a child theme.

  4. Digital Raindrops
    Member
    Posted 2 years ago #

    The problem is in the parent theme functions.php as you are using a child theme it is looking for two files in the child themes folder.

    // Load theme options
    require_once ( get_stylesheet_directory() . '/theme-options.php' );
    
    // Load Post Images
    require_once ( get_stylesheet_directory() .  '/images.php');

    "Contact the author to get the theme updated", as this should be get_template_directory(), for now you could copy theme-options.php and images.php from the parent to the child theme's folder.

    HTH

    David

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags