Debug messages
-
In WP 3.9.1 when WP_DEBUG is set to true, a long list of Notices gets printed before each map:
Notice: Undefined index: icon in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 262 Notice: Undefined property: stdClass::$group_map_setting in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 268 Notice: Undefined property: stdClass::$map_languages in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 290 Notice: Undefined index: heat_map in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 341 Notice: Undefined index: temp in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 342 Notice: Undefined index: wind in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 343 Notice: Undefined property: stdClass::$group_map_setting in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 358 Notice: Undefined property: stdClass::$location_animation in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 392 Notice: Undefined index: googlemap_infowindow_title_one in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 393 Notice: Undefined index: googlemap_infowindow_title_two in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 395 Notice: Undefined index: googlemap_infowindow_message_two in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 396 Notice: Undefined index: googlemap_infowindow_title_three in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 397 Notice: Undefined index: googlemap_infowindow_message_three in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 398 Notice: Undefined index: googlemap_infowindow_title_four in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 399 Notice: Undefined index: googlemap_infowindow_message_four in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 400 Notice: Undefined index: googlemap_infowindow_title_five in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 401 Notice: Undefined index: googlemap_infowindow_message_five in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 402 Notice: Undefined variable: un_map_cluster_setting in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wp-google-map-plugin.php on line 405
Also, in the backend, these messages are echoed in the header:
Notice: Undefined index: location in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wpgmp-all-js.php on line 5 Notice: Trying to get property of non-object in /home/.../public_html/wp-content/plugins/wp-google-map-plugin/wpgmp-all-js.php on line 6
Maybe these variables and indexes are defined in the pro version. But the free plugin should not give this warnings. Either check each time if they exist before using them, or initialize them with an empty value.
thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Debug messages’ is closed to new replies.