WordPress.org

Ready to get started?Download WordPress

Forums

WP Google Maps
[resolved] Warnings in 5.02 (3 posts)

  1. Alexander Gieg
    Member
    Posted 1 year ago #

    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/

  2. Alexander Gieg
    Member
    Posted 1 year ago #

    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!

  3. WPGMaps
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you Alexander!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.