Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Same Javascript error gets logged over and over again. › Reply To: Same Javascript error gets logged over and over again.
Hi,
I see the problem now. You are using jQuery version 3+, while the WordPress built in version is 1.12.4 at the moment. The error is caused by a function call that is no longer supported from jQuery 3.
I strongly recommend sticking with the built in jQuery version, as most plugins are built/scripts are based on that.
If you want to stick with 3, than that line will have to be modified slightly:
1. Make sure to change the script version to ‘Non minfied’ here: https://i.imgur.com/eeDQGCV.png
2. Then open up the wp-content\plugins\ajax-search-pro\js\nomin\asp_wrapper.js file on your server via FTP
3. Then scroll to line 231, which should be this:
[html]scope(window).load(function () {[/html]
4. Change that line to:
[html]scope(window).on(‘load’, function () {[/html]
5. Save the file, clear your browser cache and reload the page with CTRL + SHIFT + R.
This should get rid off the problem, however I am not sure if it causes any further problems.