Jump to content

Error ajax-cart.js "Uncaught TypeError: Cannot read property 'hasError' of null"


Recommended Posts

Hello, I´m having issues with prestashop 1.6.1.11 in ajax-crat.js.

The problem is no adding products to the cart. If i refresh the product appear in the cart. but When I try to delete the cart product I get the same problem...

 

The Chrome console shows that:  

"Uncaught TypeError: Cannot read property 'hasError' of null

    at Object.success (ajax-cart.js:303)
    at j (jquery-1.11.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
    at x (jquery-1.11.0.min.js:4)
    at XMLHttpRequest.b (jquery-1.11.0.min.js:4)"
 
I tried to reinstall the cart module, clear the smarty cache manually  but nothing... I´m get in panic fot this issue.
 
 
php_error.log of my server shows that:  
 
[10-Mar-2017 16:11:20 Europe/Madrid] PHP Notice:  Undefined index: base in
xxx/cache/smarty/compile/c4/1a/d2/c41ad2ce0b85c7ed0aeeb2d94558b30db1093aab.file.home-menu.tpl.php on line 32
[10-Mar-2017 16:11:20 Europe/Madrid] PHP Notice:  Trying to get property of non-object in xxx/cache/smarty/compile/c4/1a/d2/c41ad2ce0b85c7ed0aeeb2d94558b30db1093aab.file.home-menu.tpl.php on line 32
 

I repeat, I cleared the cache from the backoffice and manually, I don´t understand... Please, help!

Link to comment
Share on other sites

  • 7 months later...
  • 1 year later...

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