Similar HTML code in two pages, but script error on one, why?
-
I run a photoblog at https://www.elcreations.org/engloy/photoblog
I have just discovered the geophototag plug-in, which provides a cool function that places an imagetag icon on any of my photos that are geotagged, and which displays a map from Google showing where that photo was taken.
However, I am a little persplexed by why the code seems to work for my main index page (and when I browse between posts from the main page), but not when I click and view on single posts.
Example:
https://www.elcreations.org/engloy/photoblog
Click on the icon on the top-left of the main image, and a map pops up.vs
https://www.elcreations.org/engloy/photoblog/?p=1070
Click on the icon on the top-left of the main image, and nothing happens.Firefox’s error console says that
Error: a is null
Source File: https://maps.gstatic.com/intl/en_ALL/mapfiles/310c/maps2.api/main.js
Line: 458when the icon is clicked.
I have checked the HTML output of both pages. The code that should pop-up the Google Map appear exactly the same:
[Code moderated as per the Forum Rules. Please use the pastebin]
Any WordPress/HTML gurus out there who can help explain to me why the code works on one page but not the other?
Thanks in advance for the help!
- The topic ‘Similar HTML code in two pages, but script error on one, why?’ is closed to new replies.