This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

n.post is not a function

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18917
    tpuljaktpuljak
    Participant

    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: [php]echo do_shortcode("[wd_asp elements='search,results' ratio='50%,50%' id=1]");[/php]

    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.

    #18920
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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!

    #18926
    tpuljaktpuljak
    Participant

    Thank you for your quick reply. 🙂

    #18927
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.