I run a photoblog on https://www.elcreations.org/engloy/photoblog
The pictures I show on my posts have geotags in their EXIFs. The GeotagPhoto plug in is doing a good job popping up maps for those pictures that are Geotagged.
However, the maps refuse to work when a single post is clicked.
Eg.
https://www.elcreations.org/engloy/photoblog
Click on the icon on the top left of the main image and a map loads.
but when it’s https://www.elcreations.org/engloy/photoblog/?p=1070
Clicking on the icon on the same image doesn’t load the map. Internet Explorer says there’s a script error. The Firefox consoles says that there is an error:
Error: a is null
Source File: https://maps.gstatic.com/intl/en_ALL/mapfiles/310c/maps2.api/main.js
Line: 458
I am thinking that there is something to do with differences between the Google Maps API v2 and v3. I’m not a plug-in writing expert and would like to ask the gurus out there: Is there something I can change in the plugin to solve this?
]]>Fresh install. Pulled in a photo with known EXIF data snapped with GPS-enabled camera. Errors out with
Fatal error: Call to undefined function exif_read_data() in /home/*********/public_html/wp-content/plugins/geotagphoto/geotagphoto.php on line 201
Help?!?
]]>The proper scripts are not registered properly for WordPress 3.0. To register them properly you must edit the script.
Apply to : GeotagPhoto Version 0.8.6
Change module : geotagphoto.php
Comment lines 271, 273, 275 :
271 // echo ‘<script type=”text/javascript” src=”‘ . get_bloginfo(‘wpurl’) . ‘/wp-includes/js/jquery/jquery.js”></script>’.”\n”;
273 // echo ‘<script type=”text/javascript” src=”‘ . get_bloginfo(‘wpurl’) . ‘/wp-includes/js/thickbox/thickbox.js”></script>’.”\n”;
275 // echo ‘<style type=”text/css” media=”all”>@import “‘ . get_bloginfo(‘wpurl’) . ‘/wp-includes/js/thickbox/thickbox.css”;</style>’.”\n”;
Add the following lines after line 83 add_action(‘admin_menu’, ‘geotagphoto_menu’); :
wp_enqueue_style(‘thickbox’); // inserting style sheet for Thickbox.
wp_enqueue_script(‘jquery’); // including jquery.
wp_enqueue_script(‘thickbox’); // including Thickbox javascript.
Save the plugin and retry. It should work now. Make sure the option “Add Thickbox to all photos (not just tagged ones)” is enabled in the plugin settings.
]]>I am using WPML and the GeotagPhoto plugin. I noticed the plugin does not show the icon link to the Google map if I go in another language than the default language. WPML is configured to use language parameter on my blog (i.e. https://blog.jonathantessier.com?lang=fr) and this is causing the issue.
Apply to : GeotagPhoto Version 0.8.6
Module : geotagphoto.php, line 195
Replace:
$finalpath = str_replace( get_bloginfo(‘home‘), ABSPATH, $image);
By :
$finalpath = str_replace( get_bloginfo(‘wpurl‘), ABSPATH, $image);
Note : “home” is deprecated for the get_bloginfo function and it is returning the language parameter that cause the issue. “wpurl” does not return it. This should fix the problem.
]]>