famousthimo Posted May 28, 2015 Share Posted May 28, 2015 Hi, I'm starting a new webshop , have allready some other prestashops , but now i downloaded the brand new Prestashop 1.6.0.14 Evering is configured ( exept layout etc,) because i wanted to test first. I have entered one product , but when i try to add it to shopping cart i get an error : Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: Unexpected token <'responseText: Anybody knows how to fix this ? Problem can be seen at http://famouswebshops.be/gb/funbikes/1-plasmacar-blauw.html Link to comment Share on other sites More sharing options...
famousthimo Posted May 28, 2015 Author Share Posted May 28, 2015 small update. When i turn off "Friendly URL's" it works perfect. But offcourse i want to use Friendly URL's Anyone who knows what the problem might be ? Link to comment Share on other sites More sharing options...
famousthimo Posted May 28, 2015 Author Share Posted May 28, 2015 After a long search and trial and error : problem solved! Turns out the default index.html file was the problem, in fact this file was served instead of index.php as the rewrite rules directs to http://domain.com and not explicitly http://domain.com/index.php I renamed my temporary index.html file and problem solved. 1 Link to comment Share on other sites More sharing options...
jojapoa Posted July 15, 2015 Share Posted July 15, 2015 After a long search and trial and error : problem solved! Turns out the default index.html file was the problem, in fact this file was served instead of index.php as the rewrite rules directs to http://domain.com and not explicitly http://domain.com/index.php I renamed my temporary index.html file and problem solved. tkyou, famousthimo - I put a " TEMP- " before the index.htm, in ftp, and it work Link to comment Share on other sites More sharing options...
jojapoa Posted July 15, 2015 Share Posted July 15, 2015 kyou, famousthimo - I put a " TEMP- " before the index.htm, in ftp, and it work Link to comment Share on other sites More sharing options...
vekia Posted July 16, 2015 Share Posted July 16, 2015 it's because if you will POST the form with add to cart request browser will try to load http://yourdomain.com/ page and when browser calls this url (in simple words) server returns reply from index.html file (not index.php) if file index.html doesnt exist - server sends reply from index.php 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