• Resolved zuoothomas

    (@zuoothomas)


    Hey Raul,

    All of a sudden all our websites using your plugin have an the following error message in the cached footer js:

    Uncaught SyntaxError: Unexpected token ‘)’

    Clearing cache temporarily fixes it but it will return as soon as a new footer file is generated.

    Any idea what is causing it?

    Thanks in advance,
    Thomas

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

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter zuoothomas

    (@zuoothomas)

    If you can comment that line out (prefix a # before it) and test it again, and if it works, let me know.

    Commenting out that line makes it work! So that is probably it then?

    Plugin Author Raul P.

    (@alignak)

    Do you mean between 2.8.2 and 2.8.3? That is where the issue started.

    Yes, it was a typo.

    Commenting out that line makes it work! So that is probably it then?

    It’s not probably, it’s definite. The problem is, I couldn’t replicate it so far, but I can test it.

    Can you please save the generated FVM js file with and without that regex commented out and send me a copy? I need to do a diff to see exactly what is missing between the 2 files.

    Also can you send me a screenshot of the chrome console where that error shows up?

    Thanks

    • This reply was modified 4 years, 6 months ago by Raul P..
    Thread Starter zuoothomas

    (@zuoothomas)

    Hey,

    Alright, that clears it up.

    Here is a wetransfer link to the two js files and screenshot:

    https://we.tl/t-BVkRtI5LBD

    Let me know if it works!

    Thomas

    Thread Starter zuoothomas

    (@zuoothomas)

    I put the two files in a differencer myself, and spotted the difference at the same place that google console spots the error:

    https://ibb.co/R7gDmbR

    The regex messes something up at that part of the code.

    Plugin Author Raul P.

    (@alignak)

    Thank you very much, I believe 2.8.7 should work for you.
    I edited the regex to be more specific when removing sourcemapping, and it doesn’t affect that line of code anymore.

    Thanks again for your valuable help sort this bug.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Uncaught SyntaxError: Unexpected token ‘)’’ is closed to new replies.