• Resolved Setsuna.16

    (@setsuna16)


    HI I’m having an error:

    “Uncaught SyntaxError: Identifier ‘geocoder’ has already been declared”

    Could have been the bridge theme redeclared the js file already?

    Thanks!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    what are you trying to do?

    Thread Starter Setsuna.16

    (@setsuna16)

    Hi There, I have solved the problem by changing the const geocode to const geocode2 in the plugin JS file. Im not sure if that’s the best thing to do.

    How do I initiate the map to update the clang and clat attributes when the marker has been moved to a new location? been trying to figure this out but no luck.

    Thank you!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I have solved the problem by changing the const geocode to const geocode2 in the plugin JS file. Im not sure if that’s the best thing to do.

    that seems rather random, and will break next time you update the plugin.

    So unless you explain what you are trying to do, there isn’t much I can do to help.

    It would seem that another plugin/script is running with a geocode variable name clash.

    How do I initiate the map to update the clang and clat attributes when the marker has been moved to a new location? been trying to figure this out but no luck.

    that’s a separate question, please start a new thread.

    Thread Starter Setsuna.16

    (@setsuna16)

    It would seem that another plugin/script is running with a geocode variable name clash.

    – yes this is the problem. I have a theme named Bridge which uses same geocode as a variable. I can’t modify that variable since it is in the parent theme folder.

    that’s a separate question, please start a new thread.

    Will do now. Thank you!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I have a theme named Bridge which uses same geocode as a variable.

    is this a google map geocoder related functionality provided by the theme? Are you not able to dequeue de js file on the form page so as to stop the conflict?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I released v1.8.1 with a change in the variable name so as to make it more unique and therefore less susceptible to clashes with themes/plugins.

    Thread Starter Setsuna.16

    (@setsuna16)

    is this a google map geocoder related functionality provided by the theme? Are you not able to dequeue de js file on the form page so as to stop the conflict?

    Hi, unfortunately I cannot dequeue the JS file because it comes with another script that the theme is using. Thank you for the update. Appreciate much!

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Thank you for the update. Appreciate much!

    you’re wc. Do leave a review when you have a moment to spare.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Uncaught SyntaxError: Identifier ‘geocoder’ has already been declared’ is closed to new replies.