• I have a JS error on my website: “SyntaxError: expected expression, got ‘<‘.” I’m not sure where the error is in the JS, but I’ll list the code below.

    <script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/6ffb692bbc9bc8d1cc7f34f90/9f6c7507346cce16096c5da30.js");</script>

    Other helpful information…

    :: The browsers that you are experiencing the problem in: Chrome and Firefox.
    :: Whether SCRIPT_DEBUG fixed the error or not: I’m not sure what I’d even remove in the code.
    :: The JavaScript error: SyntaxError: expected expression, got ‘<‘.
    :: The location of the error – both the file name and the line number: The file name is “/my_custom_script.js,” and in that file, it’s all on one line, so line number 1.
    :: The context of the error – including the whole error stack will help developers: I’m not sure.

    Thanks for any help you can deliver.

    • This topic was modified 5 years, 12 months ago by kasy.allen.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That seems to have something do do with a popup form.

    If it’s legit file (which I doubt), you can disable all plugins then turn them back on, one at a time, to see which might be associated with it.

    On the other hand, you have probably been hacked. Get a fresh cup of coffee, take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    Pete Moore

    (@techmystressaway)

    chimpstatic.com is a mailchimp domain do you have some kind of mailchimp pop form

    Thread Starter kasy.allen

    (@kasyallen)

    I Googled it too and found that chimptastic.com is part of MailChimp. I wasn’t using any of their pop-up forms, but was using an extension so that MailChimp would work with Contact7. I tried turning off all of the plugins and turning them on one-by-one, but that didn’t get rid of the error either. I then deleted that file altogether and it’s still showing up for me – odd. I’ll give it a day and see if it clears itself up.

    Thanks!

    • This reply was modified 5 years, 11 months ago by kasy.allen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JavaScript Error Help: “SyntaxError: expected expression, got ‘<'"’ is closed to new replies.