Jump to content

[SOLVED] JQuery error in autocomplete when check $.browser


Recommended Posts

Hi, im getting this error from jquery when i try to add new order manually or access some modules with overrides:

jquery.autocomplete.js:84 Uncaught TypeError: Cannot read property 'opera' of undefined
    at new $.Autocompleter (jquery.autocomplete.js:84)
    at HTMLInputElement.<anonymous> (jquery.autocomplete.js:33)
    at Function.each (jquery-1.11.0.min.js:2)
    at n.fn.init.each (jquery-1.11.0.min.js:2)
    at n.fn.init.autocomplete (jquery.autocomplete.js:32)
    at HTMLDocument.<anonymous> (index.php?controller=AdminOrders&addorder&token=XXXXXX:1352)
    at j (jquery-1.11.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
    at Function.ready (jquery-1.11.0.min.js:2)
    at HTMLDocument.K (jquery-1.11.0.min.js:2)

I read some posts about $.browser is deprecated but PS 1.7.6.8 use jquery 1.11.0 so i prefer to not made nothing strange.

Another test was to put classic theme but error doesnt dissapear.

Somebody know something about this error?


Thanks

Edited by NBlack (see edit history)
Link to comment
Share on other sites

  • 3 months later...
On 10/5/2020 at 2:51 PM, NBlack said:

SOLVED

Problem comes from jquery theme. Use independent JS instead use PS jquery.

Sorry NBlack, I have the same problem and no idea how to solve it. Could you help me please? I changed the theme, disable non PS modules, even disabling overrinding, and get nothing 😥

Uncaught TypeError: Cannot read property 'opera' of undefined
    at new $.Autocompleter (jquery.autocomplete.js:84)
    at HTMLInputElement.<anonymous> (jquery.autocomplete.js:33)
    at Function.each (main.bundle.js:277)
    at De.fn.init.each (main.bundle.js:277)
    at De.fn.init.autocomplete (jquery.autocomplete.js:32)
    at Object.initSearchBox (product-category-tags.js:149)
    at Object.init (product-category-tags.js:22)
    at String.initTagsManagement (product-category-tags.js:204)
    at HTMLDocument.<anonymous> (default.js:73)
    at Object.emitEvent (default.js:84)
main.bundle.js:277 Uncaught TypeError: Cannot read property 'opera' of undefined
    at new $.Autocompleter (jquery.autocomplete.js:84)
    at HTMLInputElement.<anonymous> (jquery.autocomplete.js:33)
    at Function.each (main.bundle.js:277)
    at De.fn.init.each (main.bundle.js:277)
    at De.fn.init.autocomplete (jquery.autocomplete.js:32)
    at HTMLInputElement.<anonymous> (admin_multi_accessories.js:298)
    at Function.each (main.bundle.js:277)
    at De.fn.init.each (main.bundle.js:277)
    at AdminMultiAccessories._autoCompleteSearchAccessories17 (admin_multi_accessories.js:296)
    at AdminMultiAccessories.init (admin_multi_accessories.js:111)

 

Many thanks, Maria

Link to comment
Share on other sites

Hi María,

Finally i changed of theme because that theme was bad made.

This problem comes from another instance of jquery running over original jquery. Maybe are you using any module that use overrides?

Try to run deactivating overrides and using classic theme to test your installation.

Cheers

Link to comment
Share on other sites

1 minute ago, NBlack said:

Hi María,

Finally i changed of theme because that theme was bad made.

This problem comes from another instance of jquery running over original jquery. Maybe are you using any module that use overrides?

Try to run deactivating overrides and using classic theme to test your installation.

Cheers

Wow you´re speedy. I´ve tried to disable both overrides and all modules, I will try changing to classic. Thank you very much

Link to comment
Share on other sites

  • 10 months later...

Yesterday, in perfetct prestashop bugy style, a new store under dev , just some days before the launch , stop to save and show features. 

We try to import feature , they are stored in database but not shown in back and front office. 

In back office are only show enabling third party module (multiple feature import) and importing with csv. If we try to select a feature and save, with default prestashop module, simply feture are not saved. After next product reload it was miss.

 

In backoffice we get this error:

 

Uncaught TypeError: Cannot read properties of undefined (reading 'opera')
    at new $.Autocompleter (jquery.autocomplete.js:84)
    at HTMLInputElement.<anonymous> (jquery.autocomplete.js:33)
    at Function.each (main.bundle.js:253)
    at De.fn.init.each (main.bundle.js:253)
    at De.fn.init.autocomplete (jquery.autocomplete.js:32)
    at Object.initSearchBox (product-category-tags.js?1.7.6.9:149)
    at Object.init (product-category-tags.js?1.7.6.9:22)
    at String.initTagsManagement (product-category-tags.js?1.7.6.9:204)
    at HTMLDocument.<anonymous> (default.js?1.7.6.9:73)
    at Object.emitEvent (default.js?1.7.6.9:84)

 

 

We use default theme, so i'm lost ... some one can help with suggestions?

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...