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
  • #36762
    Aaron Van Ruler

    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'];
    		$panels_data['widgets'][$i]['panels_info']['widget_index'] = $i;

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

    Aaron Van Ruler

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

    Bill Robbins

    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,

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