Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Uncaught SyntaxError: Invalid or unexpected token

$
0
0

Replies: 2

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.

  • This topic was modified 37 minutes ago by kvsgetaep.

Viewing all articles
Browse latest Browse all 59525

Trending Articles