Can you help? I have reinstalled the plugin with no luck.
Looking near line 157 I see this below, with line 157 beginning with “for each”:
// counts the number of active GMW widgets in sidebars
static function count_active_widgets() {
$count = 0;
$sidebars = get_option('sidebars_widgets', array());
foreach ($sidebars as $sidebar_name => $widgets) {
if (strpos($sidebar_name, 'inactive') !== false || strpos($sidebar_name, 'orphaned') !== false) {
continue;
}
if (is_array($widgets)) {
foreach ($widgets as $widget_name) {
if (strpos($widget_name, 'googlemapswidget') !== false) {
$count++;
}
}
}
} // foreach sidebar
]]>