Jump to content

Cart stopped working - help!


spring00

Recommended Posts

My website is ready to go live but suddenly the cart has stopped working.  The ajax mouse over has stopped too and the product name disappeared on the front page.  I should explain that the blockcart module is working fine in the header part of the site.  But when I put the mouse over a product on the front page nothing happens. You cant see the 'More' or 'Add to cart' buttons anymore.  It was quite a heart stopping moment as I just had decided that the site was ready to be publish :(

 

Here is my error message

 

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data'
responseText:

 

Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' in /var/sites/g/mydomain.co.uk/public_html/classes/Cookie.php on line 80

Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' in /var/sites/g/mydomain.co.uk/public_html/classes/Cookie.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /var/sites/g/mydomain.co.uk/public_html/classes/Cookie.php:80) in /var/sites/g/mydomain.co.uk/public_html/controllers/front/CartController.php on line 56
{"products":[{"id":9,"link":"http:\/\/www.mydomain.co.uk.gridhosted.co.uk\/classic-fitted-tee\/9-blue-fitness-t-shirt.html#\/size-s","quantity":1,"image":"http:\/\/www.mydomain.co.uk.gridhosted.co.uk\/35-home_default\/blue-fitness-t-shirt.jpg","image_cart":"http:\/\/www.mydomain.co.uk.gridhosted.co.uk\/35-cart_default\/blue-fitness-t-shirt.jpg","priceByLine":"\u00a3 19.99","name":"Fitted Tee (Blue)","price":"\u00a3 19.99","price_float":19.99,"idCombination":159,"idAddressDelivery":0,"is_gift":false,"hasAttributes":true,"attributes":"S","hasCustomizedDatas":false,"customizedDatas":[]},{"id":15,"link":"http:\/\/www.mydomain.co.uk.gridhosted.co.uk\/classic-fitted-tee\/15-black-fitness-t-shirt.html#\/size-s","quantity":1,"image":"http:\/\/www.mydomain.co.uk.gridhosted.co.uk\/47-home_default\/black-fitness-t-shirt.jpg","image_cart":"http:\/\/www.mydomain.co.uk.gridhosted.co.uk\/47-cart_default\/black-fitness-t-shirt.jpg","priceByLine":"\u00a3 19.99","name":"Classic Fitted Tee (Black)","price":"\u00a3 19.99","price_float":19.99,"idCombination":139,"idAddressDelivery":0,"is_gift":false,"hasAttributes":true,"attributes":"S","hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"\u00a3 0.00","shippingCostFloat":0,"wrappingCost":"\u00a3 0.00","nbTotalProducts":2,"total":"\u00a3 39.98","productTotal":"\u00a3 39.98","freeShipping":"\u00a3 0.00","freeShippingFloat":0,"hasError":false,"crossSelling":""}

 

 

The cart has been working great until today so I am wondering if I have done anything to upset it?  Does anyone know what might cause a conflict?  I had to edit the Paypal module today as it was stopping voucher codes appearing.  But I dont think that is the cause as I've tried disabling the paypal module and that made no difference.   Today I have been working on the css for the shopping cart today and I havent touched the products side of things.  

 

I've just realised that the cart process doesnt work at all with the error notification switched on (defines.inc.php).  I've really messed this up and I dont know how :unsure:

 

Any help or suggestions would be gratefully received as the site needs to go live asap. :(

 

Link to comment
Share on other sites

Thanks El Patron.  I may need paid help but for now I am working with a friend to try to sort it . 

 

I just wanted to share how we are tackling this problem  in case it helps anyone else.  Basically I kept back up copies of everything including work in progress.  So we've been replacing edited files with original or earlier versions to work out where the error lies.  This has worked well so far.  By process of elimination it is clearly my fault and the problem has been mistakes with coding.  I've used WinMerge which is great at comparing two versions of the same files to see what is different.   I've also been using the W3C css validator tool to identify css errors.  We are not there yet but I feel we are making progress. 

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

Thanks for your response.  I have worked out that the main error is caused by increasing the width of the container which has affected the quick view mouse over.  I've created a new post on the forum as this post was created when the site seemed to have lots of errors.  We turned off the ps debug mode and today it seems just this one problem remains.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...