Plugin Author
Joe
(@morehawes)
Hi @zerider,
Thanks for reaching out and I am sorry to hear you are experiencing issues.
Looking at your site, I can see that the background requests to load the Maps are failing (HTTP 500 – Server Error). I recommend changing the “Shortcode Method” to embed (Settings > Advanced > Collection Options).
I hope this helps.
Joe
Hi Joe,
Thanks for your fast answer. But unfortunately the setting to “embed” causes all the pages with collection map to be not displayed at all. All the page is blank now. Note that pages with simple map remain correctly displayed.
Plugin Author
Joe
(@morehawes)
Hi @zerider,
I’m sorry to hear that did not work. From here I cannot say why those background HTTP requests started producing an error. Are you able to view your PHP error log? That may give some clues.
Cheers,
Joe
Hi Joe,
Here is a PHP error log :
Date : 22/06/2024 15:31:04
IP : 88.123.81.80:0
Requête : /voyages/?waymark_http=1
Code HTTP : 500
Referer : https://doumetherve.com/voyages/traces-gpx/
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Erreur : AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /htdocs/voyages/wp-content/plugins/waymark/inc/Helpers/Waymark_Helper.php:458\nStack trace:\n#0 /htdocs/voyages/wp-content/plugins/waymark/inc/Helpers/Waymark_Helper.php(458): json_decode(Array)\n#1 /htdocs/voyages/wp-content/plugins/waymark/inc/Helpers/Waymark_Helper.php(513): Waymark_Helper::set_map_data_property(Array, ‘description’, ‘<div class=”way…’, true)\n#2 /htdocs/voyages/wp-content/plugins/waymark/inc/Front/Waymark_HTTP.php(86): Waymark_Helper::add_map_link_to_description(‘8847’, ‘Oslo-France’, Array)\n#3 /htdocs/voyages/wp-includes/class-wp-hook.php(324): Waymark_HTTP->template_redirect(”)\n#4 /htdocs/voyages/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)\n#5 /htdocs/voyages/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#6 /htdocs/voyages/wp-includes/template-loader.php(13): do_action(‘template_redire…’)\n#7 /htdocs/voyages/wp-blog-…’
Plugin Author
Joe
(@morehawes)
Hi @zerider,
Thank you, using the errors I was able to reproduce this issue and identify the bug. I have just released v1.3.2 with a fix for this, please do let me know if this does not resolve your issue.
Cheers,
Joe
Hi Joe,
Thank you so much for the fix. It works perfectly.
I will continue to use this powerful and useful plugin.
Hervé.
Plugin Author
Joe
(@morehawes)
Hi @zerider,
I am very glad to hear that worked 🙂 Please consider leaving a review, it helps a lot.
Joe