asmar Posted April 2, 2020 Share Posted April 2, 2020 Hi, For some reason the jquery.autocomplete.js is included before the jquery thus throwing: products.js:1028 Uncaught TypeError: $(...).autocomplete is not a function and nothing works when trying to edit a product. All tabs are not working at all. When I view the source of the output when I'm on admin it shows among others: <script type="text/javascript" src="/js/jquery/plugins/autocomplete/jquery.autocomplete.js"></script> <script type="text/javascript" src="/modules/antiviruspro/views/js/back.js"></script> <script type="text/javascript" src="/js/jquery/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="/js/jquery/jquery-migrate-1.2.1.min.js"></script> ....... How on earth I can move the jquery.autocomplete.js below the jquery? Thanks in advance Link to comment Share on other sites More sharing options...
MichaelEZ Posted April 3, 2020 Share Posted April 3, 2020 (edited) Disable all opverrides, and modules in BO. Then chceck again. If error disappear try then turn on one by one and check, also try it with antiviruspro module fisrt // edit : i ment overrides, sorry well we had same issue with wrong order, but culprit was module.. Edited April 3, 2020 by MichaelEZ (see edit history) Link to comment Share on other sites More sharing options...
asmar Posted April 3, 2020 Author Share Posted April 3, 2020 (edited) What do you meen opverrides? I disabled the antivirus pro but makes no difference. All modules that are installed in admin are by Prestashop, not 3rd part. The problem is only on admin menu when I try to edit a product. Edited April 3, 2020 by asmar (see edit history) Link to comment Share on other sites More sharing options...
asmar Posted April 3, 2020 Author Share Posted April 3, 2020 Disabling, enabling the modules make no change, same problem. Link to comment Share on other sites More sharing options...
joseantgv Posted April 3, 2020 Share Posted April 3, 2020 Which PS version are you running? Link to comment Share on other sites More sharing options...
asmar Posted April 3, 2020 Author Share Posted April 3, 2020 Latest 1.6.24. It is very bizarre, same version on the same server but on different domain works fine, it loads the js files properly. Link to comment Share on other sites More sharing options...
joseantgv Posted April 3, 2020 Share Posted April 3, 2020 It could be a module that loads jquery before controller does, that's why the other user asked you to disable modules. Have you disabled all non PS modules? Link to comment Share on other sites More sharing options...
asmar Posted April 3, 2020 Author Share Posted April 3, 2020 I have not installed any module at all for ages and the site used to work perfect with the existing ones. If I however disable the non prestashop modules from admin it works. Link to comment Share on other sites More sharing options...
joseantgv Posted April 3, 2020 Share Posted April 3, 2020 Then you would need to find which module is doing this... Link to comment Share on other sites More sharing options...
MichaelEZ Posted April 3, 2020 Share Posted April 3, 2020 Sooo i was right about it.. u just need to go one by one Link to comment Share on other sites More sharing options...
asmar Posted April 3, 2020 Author Share Posted April 3, 2020 I went one by one all non Prestashop modules including those that are on my theme and still exist the same problem. The only modules that are enabled are those that are installed by default with Prestashop. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now