• When I was trying to create a child theme for my blog, and din’t like my results, I deleted it. Now when I delete it, I got to my site and see this:

    Warning: require_once(/home/a9603376/public_html/wp-content/themes/city-desk-child/inc/admin/options-framework.php) [function.require-once]: failed to open stream: No such file or directory in /home/a9603376/public_html/wp-content/themes/city-desk/functions.php on line 30
    
    Fatal error: require_once() [function.require]: Failed opening required '/home/a9603376/public_html/wp-content/themes/city-desk-child/inc/admin/options-framework.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9603376/public_html/wp-content/themes/city-desk/functions.php on line 30

    I don’t know what happened.

    If it helps, here is my functions.php:

    <?php
    
    if ( !function_exists( 'optionsframework_init' ) ) {
    
    	/*-----------------------------------------------------------------------------------*/
    	/* Options Framework Theme
    	/*-----------------------------------------------------------------------------------*/
    
    	/* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */
    
    		// DIRECTORIES
    		if ( STYLESHEETPATH == TEMPLATEPATH ) {
    			define('OPTIONS_FRAMEWORK_URL', TEMPLATEPATH . '/inc/admin/');
    			define('OPTIONS_FRAMEWORK_DIRECTORY', get_bloginfo('template_directory') . '/inc/admin/');
    			define('OF_FILEPATH', TEMPLATEPATH);
    			define('OF_DIRECTORY', get_bloginfo('template_directory'));
    		} else {
    			define('OPTIONS_FRAMEWORK_URL', STYLESHEETPATH . '/inc/admin/');
    			define('OPTIONS_FRAMEWORK_DIRECTORY', get_bloginfo('stylesheet_directory') . '/inc/admin/');
    			define('OF_FILEPATH', STYLESHEETPATH);
    			define('OF_DIRECTORY', get_bloginfo('stylesheet_directory'));
    		}
    
    		define('GABFIRE_INC_PATH', OF_FILEPATH . '/inc');
    		define('GABFIRE_INC_DIR', OF_DIRECTORY . '/inc');
    		define('GABFIRE_FUNCTIONS_PATH', OF_FILEPATH . '/inc/functions');
    		define('GABFIRE_JS_DIR', OF_DIRECTORY . '/inc/js');
    
    		// OPTION PANEL
    		require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php');
    		require_once (GABFIRE_INC_PATH . '/theme-init.php'); // Custom functions and plugins
    }
    // remove parentheses from category list and add span class to post count
    function categories_postcount_filter ($brackets) {
    $brackets = str_replace('(', '<span class="post-count"> ', $brackets);
    $brackets = str_replace(')', ' </span>', $brackets);
       return $brackets;
    }
    add_filter('wp_list_categories','categories_postcount_filter');
    
    function custom_menu()
    {
    if( is_user_logged_in() )
    {
    $custom_menu = 'LoginMenu';
    }
    else
    {
    $custom_menu = 'VisitorMenu';
    }
    wp_nav_menu( array( 'menu' => $custom_menu, 'theme_location' => 'secondary' ) );
    }
    add_action('wp_footer', 'custom_menu');
Viewing 3 replies - 16 through 18 (of 18 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Again, Archie22is, it is not alright to solicit work.
    Please do not ask people to email you. Keep all support on these forums.

    I am having the same problem. I can’t even login to my blog via wordpress anymore because of the error. I followed the directions to add a child theme, then clicked activate and i haven’t been able to do anything else since. Deleting the child theme has not made any difference. Can anyone help? My site is https://www.andys-voice.com.

    @kschwei – can you please start your own thread? These forums work better than way – this thread is old and unlikely the same issue you have.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Created Child Theme, Blog Now Has Problems’ is closed to new replies.