Plugin Author
MiKa
(@photoweblog)
Hello @adamromanowski
no, this should simply not be shown!
Contact us here:
https://wp-osm-plugin.hyumika.com/contact/
with:
* the link to the site the shows the error
* the WP OSM Plugin shortcode you use on this site.
Or post it here.
Br, Michael
-
This reply was modified 4 years, 6 months ago by
MiKa.
-
This reply was modified 4 years, 6 months ago by
MiKa.
Thank you for such a quick response. Unfortunately, I cannot share an URL, but I’ll try to be as specific as possible without it.
Here’s a shot of a page:
https://share.getcloudapp.com/7KuAwYkv
(error on top of content)
Here’s HTML of the same page:
https://share.getcloudapp.com/7KuAwYjv
Here is the state of constants (from Xdebug; tried with just WP_DEBUG_DISPLAY disabled as well as with WP_DEBUG):
https://share.getcloudapp.com/4guPL6Pg
https://share.getcloudapp.com/JrunQKnD
Here’s the example shortcode:
[osm_map_v3 tagged_type="ntl_place" map_center="43.7586,6.9242" zoom="1" width="100%" height="850" tagged_filter_type="ntl_place_category" tagged_filter="Jan Kolwaski" marker_name="mic_black_pinother_02.png" type="stamen_watercolor" map_border="none" tagged_color="black" ]
Note, I know that there’s nothing in the taxonomy term, so I expect not pointers. Want to avoid errors though 🙂
Interestingly when I try to save post with the same shortcode, it won’t even save. The HTML goes to the top of the returned value of the fetched response:
https://share.getcloudapp.com/4guPL6Wv
Plugin Author
MiKa
(@photoweblog)
Hello @adamromanowski
thanks for the details.
You are right, if there are no locations, the map with “all locations” fails with an error, since there are no locations to show. That was never a problem up to now, apparently nobody ever tried or needed it.
The clear solution would be show an empty map … I will have a look to it in the next version (around December).
Thank you and br, Michael
PS: Not a good idea at all(!) … but if you want to, for any reason: Osm_TraceLevel
Thanks Michael,
I guess we approached the usage of the plugin quite creatively 🙂
For now I’ ll just run another query to not run shortcode if no places to show, but I think hiding all errors based on standard WP constants would be great.
Thanks again for your awesome work.