WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] Undefined property: stdClass::$status on post (2 posts)

  1. flynsarmy
    Member
    Posted 1 year ago #

    With WP_DEBUG turned on I get the following two warnings when submitting a post that I haven't entered any map data for:

    Notice: Undefined property: stdClass::$status in /mnt/stor09-wc1-ord1/731806/www.mypolicedev.com/web/content/wp-content/plugins/pronamic-google-maps/classes/Pronamic_Google_Maps_Admin.php on line 225

    Notice: Undefined property: stdClass::$status in /mnt/stor09-wc1-ord1/731806/www.mypolicedev.com/web/content/wp-content/plugins/pronamic-google-maps/classes/Pronamic_Google_Maps_Admin.php on line 225

    This line
    update_post_meta($postId, Pronamic_Google_Maps_Post::META_KEY_GEOCODE_STATUS, $pgm->status);
    should be changed to
    update_post_meta($postId, Pronamic_Google_Maps_Post::META_KEY_GEOCODE_STATUS, isset($pgm->status) ? $pgm->status : null);

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

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 1 year ago #

    We just launched a new version of the Pronamic Google Maps plugin:
    http://wordpress.org/extend/plugins/pronamic-google-maps/

    I believe this issue is solved in this release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.