• Resolved Alexander Gieg

    (@alexgieg)


    I’ve installed the new version in my local WP installation, which has the debug constant enabled, and noticed these three warnings starting to pop up:

    NOTICE: D:\Site\www\wordpress\wp-content\plugins\wp-google-maps\wpGoogleMaps.php:1133 - Use of undefined constant wpgmza_pro_advanced_menu - assumed 'wpgmza_pro_advanced_menu'
    
    NOTICE: D:\Site\www\wordpress\wp-content\plugins\wp-google-maps\wpGoogleMaps.php:290 - Undefined index: page
    
    NOTICE: D:\Site\www\wordpress\wp-content\plugins\wp-google-maps\wpGoogleMaps.php:295 - Undefined index: page

    Also, right after updating from 5.01 to 5.02 three warnings about failed database structure update attempts appeared, but I forgot to write them down.

    In any case, the plugin seems to be working fine.

    I hope this helps!

    http://wordpress.org/extend/plugins/wp-google-maps/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Alexander Gieg

    (@alexgieg)

    Hi. Here are the fixes, all in wpGoogleMaps.php:

    a) Line 290, from:

    if (is_admin() && $_GET['page'] == 'wp-google-maps-menu' && $_GET['action'] == "edit_marker") {

    To:

    if (is_admin() && isset( $_GET['page'] ) && $_GET['page'] == 'wp-google-maps-menu' && isset( $_GET['action'] ) && $_GET['action'] == "edit_marker") {

    b) Line 295, from:

    else if (is_admin() && $_GET['page'] == 'wp-google-maps-menu' && $_GET['action'] == "edit") {

    To:

    else if (is_admin() && isset( $_GET['page'] ) && $_GET['page'] == 'wp-google-maps-menu' && isset( $_GET['action'] ) && $_GET['action'] == "edit") {

    c) Line 1133, from:

    if (function_exists(wpgmza_pro_advanced_menu)) {

    To:

    if (function_exists('wpgmza_pro_advanced_menu')) {

    I hope this helps!

    Plugin Author WPGMaps

    (@wpgmaps)

    Thank you Alexander!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Google Maps] Warnings in 5.02’ is closed to new replies.