Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Uncaught SyntaxError: Unexpected token /
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 9 months ago.
- AuthorPosts
- December 7, 2015 at 7:07 pm #6940
Hi ! I was using ajax search pro 4.5.1 but when I upgraded to 4.6.0 the plugin stopped working and I get this message in the browser console:
Uncaught SyntaxError: Unexpected token /
You can check the search boxes in the homepage and http://dev.openqube.io/calificar-empresa/
Thanks
December 7, 2015 at 7:28 pm #6941Hi!
I see the following text in the “No results text” parameter:
<a href=/calificar>No se encontraron empresas. <strong>Agregala!</strong></a>
Unfortunately this is no longer possible to use HTML in the parameter there. It raised security concerns and I had to remove it.
Please remove HTML tags from the No results text option on the Layout Options -> Results layout panel.You can still use that HTML though, by using result templating, which is much safer and update proof as well. Here is a quick tutorial link.
In your case you will have to first copy the wp-content/plugins/ajax-search-pro/includes/views/results/no-results.php file into a new folder named “asp” in your current theme folder. Then make the change on that copied file on line 30 to:
<a href=/calificar>No se encontraron empresas. <strong>Agregala!</strong></a>
That should fix the problem 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 21, 2015 at 4:25 pm #7136Hi, thank you very much for your reply ! indeed that was the issue.
In WordPress 4.3.1 I could fix the problem the way you suggested but in 4.4 I’m getting this (see attachment)
Attachments:
You must be logged in to view attached files.December 22, 2015 at 1:08 am #7146I’m not sure what should I look for on the screenshot. Is the text missing or something else?
Is there an example where I can look at this?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.