Jump to content

Javascript not included in correct order in back office (jquery.autocomplete.js)


asmar

Recommended Posts

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

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 by MichaelEZ (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...