• Resolved kvsgetaep

    (@kvsgetaep)


    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 2 years, 9 months ago by kvsgetaep.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @kvsgetaep,

    2022 theme is a block theme and we are not currently compatible, please try with any non block theme, something like “primer” is a popular choice.

    WordPress block builder is currently in beta and causing all sorts of issues for plugin developers. We will be adding block theme compatibility very soon.

    Thanks,

    Stiofan

    Thread Starter kvsgetaep

    (@kvsgetaep)

    Thanks, that resolved the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught SyntaxError: Invalid or unexpected token’ is closed to new replies.