Uncaught SyntaxError: missing ) after argument list
-
Hello 🙂 I’m getting the above error, I see it’s happened before. I’d really like to fix it.
-
I have now fixed the error, and note it was exactly the same error reported in the thread nine months ago. What happened after you asked that chap to contact you offsite?
I have the same problem. I think it is because another tooltip keyword is in the tooltip description. I think escaping with ” instead of ‘ might help.
-
This reply was modified 10 months, 3 weeks ago by
mhmuc.
Dear @venutius and mhmuc,
I hope this message finds you well and that you are enjoying happy days with your family. 🙂
Thank you for the bug report; we are happy to resolve the issue for you. 🙂
Regarding the “uncaught syntax error,” we apologize for the inconvenience. We conducted several tests, but we were unable to replicate the issue on our side. We have created a tooltip demo here — demos.tooltips.org/thank-you-for-the-bug-report/:
If you hover over the tooltip term in demos.tooltips.org/thank-you-for-the-bug-report/ , you will see everything works well. Additionally, in the tooltip popup window, you will find that we inserted another tooltip keyword, “Welcome,” in the description of the tooltip term “Contact us now.” Unfortunately, as you can see, there are no issues present in this demonstration.
The challenge we face is that we are unable to replicate the problem, so we cannot debug it to identify the cause. Would you please:
- Log in as a WordPress admin.
- In the WordPress dashboard, click on the tooltips menu item.
- Click “Export Tooltips” to export the tooltip terms. This will generate a CSV file containing the tooltip terms. Could you please share this file with us? We will import the tooltips on our side and attempt to replicate the issue in order to resolve it for you. 🙂
We apologize for the delay in our response. If you contact us via tooltips.org/contact-us/, we have a gift for you! 🙂
Thank you, and have a blessed day with your family!
Best Regards,
WordPress TooltipsHi, I’ll be happy to send you the CSV however to replicate the issue you have to select the following options:
- Show every occurence of the keyword on the page (iso only the first occurence)
- Have a keyword within the tooltip-content.
To stick to your example: Change the text of your demo-tooltip to something containing the phrase “Contact us now”.
This will generate Java-Script-Code in the tooltip output with incorrectly escaped quotations which results in the javascript-failure.
I came across this problem, because I used a word in the tooltip description that is another tooltip-keyword.
-
This reply was modified 10 months, 2 weeks ago by
mhmuc.
What I found, oddly, was that for some reason, deactivation of Query Monitor caused this, and a bunch of other issues to go away.
Query Monitor has been updated. It seems they were creating a bunch of html errors that was breaking pages. I’ve got it up and running, and all seems good so far.
-
This reply was modified 10 months, 3 weeks ago by
The topic ‘Uncaught SyntaxError: missing ) after argument list’ is closed to new replies.