Uncaught SyntaxError: Invalid or unexpected token
-
I was preparing new WordPress site, blank with only the GeoDirectory Plugin and basic 2022 theme for showing a client as an option when I ran across this error during testing.
The JavaScript syntax appears be be broken:
if ((window.gdSetMap=='google' || window.gdSetMap=='auto') & #038; & #038; window.google & #038;& #038; typeof google.maps!=='undefined') {
Spaces added to encoded values for this post.
Should probably be:if ((window.gdSetMap=='google' || window.gdSetMap=='auto') && window.google && typeof google.maps!=='undefined') {
This seems to be appears to be an issue with all && being encoded. This makes adding a listing from the user side impossible and is a non-starter.
The page I need help with: [log in to see the link]
- The topic ‘Uncaught SyntaxError: Invalid or unexpected token’ is closed to new replies.