• Resolved GregW

    (@gwmbox)


    I have Theme Check installed to check my themes when testing and setting up a new site, When I installed the latest Frontier I am getting the below error;

    Why would I be getting this error for Frontier, is there something I need to edit?

    Notice: Undefined index: body in myhomedir\template-wordpress\wp-content\themes\frontier\functions.php on line 199

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Could you please provide us the code from the relevant file and line, so we can examine it?

    Before posting any code here, please see:

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    Without the code, we cannot assist much.
    However, this problem most likely occured because you forgot to declare the variable.

    Use isset to check if your variable is declared.

    Example:

    if(isset($_POST['whatever'])) {
       $value = $_POST['whatever'];
    }

    Thread Starter GregW

    (@gwmbox)

    Oops sorry here is the code relevant to line 199

    function frontier_register_sidebars_extra() {
    	$widget_areas = frontier_option('widget_areas');
    
    	if ( $widget_areas['body'] == 1 ) {
    		register_sidebar( array(
    			'name' 			=> __('Body', 'frontier'),
    			'id' 			=> 'widgets_body',
    			'description'	=> __('Widgets outside of the container. If used, you\'ll have to position the widgets with css.', 'frontier'),
    			'before_widget' => '<div id="%1$s" class="widget-body frontier-widget %2$s">',
    			'after_widget' 	=> '</div>',
    			'before_title' 	=> '<h4 class="widget-title">',
    			'after_title' 	=> '</h4>') );
    	}

    If more is needed please let me know.

    Can you provide me with the frontier_option function?

    Theme Author ronangelo

    (@ronangelo)

    I’m using Theme Check and I’m not seeing any errors at all. I’ll assume that you’re using the latest theme version and the latest version of Theme Check. Have you modified any php files. It’s possible that some of your files are missing or corrupted. The relevant files are functions.php, options.php and the options-framework folder inside the includes folder.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Notice: Undefined index: body …’ is closed to new replies.