Undefined Index: widget_index

Support Area Forums Church Builder Undefined Index: widget_index

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://
  • Author
    Posts
  • #36762
    Aaron Van Ruler
    Participant

    There is an error with the current version of SiteOrigin + this theme.

    I received this error:

    Notice: Undefined index: widget_index in /siteorigin-panels/siteorigin-panels.php on line 1242

    I tracked this down to some missing code in churcy_builder_panel_render. SiteOrigin added the following:

    
    // We need this to migrate from the old $panels_data that put widget meta into the "info" key instead of "panels_info"
    if( !empty( $panels_data['widgets'] ) && is_array($panels_data['widgets']) ) {
    	foreach ( $panels_data['widgets'] as $i => $widget ) {
    		if( empty( $panels_data['widgets'][$i]['panels_info'] ) ) {
    			$panels_data['widgets'][$i]['panels_info'] = $panels_data['widgets'][$i]['info'];
    			unset($panels_data['widgets'][$i]['info']);
    		}
    
    		$panels_data['widgets'][$i]['panels_info']['widget_index'] = $i;
    	}
    }

    I think this should be adding to lines 616-626 of /includes/page-build.php

    #36763
    Aaron Van Ruler
    Participant

    Oops – that should be /includes/page-builder.php Thanks!

    #36765
    Bill Robbins
    Moderator

    Thanks Aaron for the heads up and tracking that down for me. I’ll roll it into the next theme update for Church Builder and also for the other themes that use this too.

    Appreciate it much,
    Bill

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Undefined Index: widget_index’ is closed to new replies.