Warning: Trying to access array offset on value of type bool in /code/wp
-
I’m getting this warning on the page that is displaying my map
Warning: Trying to access array offset on value of type bool in /code/wp-content/plugins/mapster-wp-maps/public/class-mapster-wordpress-maps-public.php on line 189
I’m guessing it’s because a field or setting is not set in the plugin. I looked at the source code and it appears have something to do with these lines:
// Check for required dependencies
$directions_enabled = ( get_field( ‘directions_control’, $atts[‘id’] ) ? get_field( ‘directions_control’, $atts[‘id’] )[‘enable’] : false );
$store_locator_enabled = ( get_field( ‘list’, $atts[‘id’] ) ? get_field( ‘list’, $atts[‘id’] )[‘store_locator_options’][‘enable’] : false );
$geocoder_enabled = false;
What do I need to set to get that warning to go away?
- You must be logged in to reply to this topic.