Notice : Undefined property : WP_Query::queried_object
-
Hi,
I’m using the plugin on a newly released website, and some users are getting this error when viewing the map in a tag.php context
Notice : Undefined property : WP_Query::queried_objectThe error is displayed multiple time in place of the actual map.
The tricky part is that I’m not able to reproduce it on my computer, but got it on my phone for example. So it’s quite unreliable
here is one page that has been reported as faulty (it’s in french but no really relevant) : http://lesbaroudeurs.me/tag/10-photos/
The code I’m using to display the map
<?php if ( class_exists( 'GeoMashup' ) ) { echo GeoMashup::map( array( 'map_content' => $wp_query, 'width' => '100%', 'height' => '100%' ) ); } ?>Hope you can guide me to fix this, because I don’t understand why it’s behaving like this.
On another note, is there a way to turn of the notices/errors for your plugin ? WP_DEBUG is set to false, but only the geo mashup notices/errors keep displaying.
The topic ‘Notice : Undefined property : WP_Query::queried_object’ is closed to new replies.