Undefined Index: widget_index
URL to the page in question:
http://
-
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
Oops – that should be /includes/page-builder.php
Thanks!
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
- The topic ‘Undefined Index: widget_index’ is closed to new replies.