Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › n.post is not a function
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 10 months ago.
- AuthorPosts
- August 8, 2018 at 1:41 pm #18917
So i just installed the plugin but I can’t get it to work.
I created an index of my site and put the shortcode in the page.php file like so:
echo do_shortcode("[wd_asp elements='search,results' ratio='50%,50%' id=1]");
I type in what I want to search and the form just keeps on loading.
When I enter the dev tools in chrome i get the error saying “n.post is not a function”. I included a screenshot of the error.The website is still in local development so i can’t provide you with login details.
Attachments:
You must be logged in to view attached files.August 8, 2018 at 2:08 pm #18920Hi,
It is almost impossible to tell only via screenshot, but I am guessing that the n.post in this case is referring to the jQuery.post(..) method. That means, that jQuery is either not loaded properly, or something is unsetting the built in jQuery XHR post() method there.
If you use any plugins/scripts that temper with jQuery version, or replaces any of the functionality, or changes the jQuery release, then it may cause that. Once again, this is almost impossible to tell only by this short error message.Alternatively, you can change the script compatibility to ‘Minified Scoped’ under the Compatibility Options panel: https://i.imgur.com/hUIDDMZ.png
That will very likely resolve it, but I still recommend checking why the $.post(..) jQuery method is not set.I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 8, 2018 at 2:20 pm #18926Thank you for your quick reply. 🙂
August 8, 2018 at 2:34 pm #18927You cannot access this content. 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.