Jump to content

Failed to check out!


Recommended Posts

when i add cart

this is the error

Impossible to add the product to the cart.

textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON.parse: bad control character in string literal'
responseText:

{
"products": [
{
"id": 867,
"id_image": "<br/>
<b>Notice</b>: Undefined index: img_name in <b>/home/mysite/public_html/cache/smarty/compile/c9/1e/e1/c91ee143be34acd39876dab1dcfa9b57288fc4ce.file.blockcart-json.tpl.php</b> on line <b>71</b><br/>
<br/>
<b>Notice</b>: Trying to get property of non-object in <b>/home/mysite/public_html/cache/smarty/compile/c9/1e/e1/c91ee143be34acd39876dab1dcfa9b57288fc4ce.file.blockcart-json.tpl.php</b> on line <b>71</b><br/>
http://mysite.com/9695/japanese-fluorescent-green-bikini.jpg",
"link": "http://mysite.com/bikinis/867-japanese-fluorescent-green-bikini.html",
"quantity": 1,
"priceByLine": "SGD$34.00",
"name": "Japanese Flu...",
"price": "SGD$34.00",
"price_float": "34",
"idCombination": 0,
"idAddressDelivery": 17,
"hasAttributes": false,
"hasCustomizedDatas": false,
"customizedDatas":[
]
}],
"discounts": [
],
"shippingCost": "SGD$0.00",
"shippingCostFloat": "0",
"wrappingCost": "SGD$0.00",
"nbTotalProducts": "1",
"total": "SGD$34.00",
"productTotal": "SGD$34.00",
"hasError" : false
}

Link to comment
Share on other sites

got that error resolved.

 

now i still have add to cart error and also when i go into the product

i get this error

Warning: Function getMetaTags() is deprecated in /home/mysite/public_html/modules/pinterest/pinterest.php on line 184
in /home/mysite/public_html/classes/Tools.php on line 1953
Link to comment
Share on other sites

when i received an order. I change the status of the order.

I also get this error..

sigh...


Warning: include(/home/mysite/public_html/translations/en/pdf.php) [function.include]: failed to open stream: No such file or directory in /home/mysite/public_html/classes/Translate.php on line 214

Warning: include() [function.include]: Failed opening '/home/mysite/public_html/translations/en/pdf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/classes/Translate.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/classes/Translate.php:214) in /home/mysite/public_html/classes/Tools.php on line 141
Link to comment
Share on other sites

yeah. now everything is ok.

 

But when i have turned on the error, and I add to cart, I do get this error.

Impossible to add the product to the cart.

textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON.parse: bad control character in string literal'
responseText:

{
"products": [
{
"id": 867,
"id_image": "<br/>
<b>Notice</b>: Undefined index: img_name in <b>/home/mysite/public_html/cache/smarty/compile/c9/1e/e1/c91ee143be34acd39876dab1dcfa9b57288fc4ce.file.blockcart-json.tpl.php</b> on line <b>71</b><br/>
<br/>
<b>Notice</b>: Trying to get property of non-object in <b>/home/mysite/public_html/cache/smarty/compile/c9/1e/e1/c91ee143be34acd39876dab1dcfa9b57288fc4ce.file.blockcart-json.tpl.php</b> on line <b>71</b><br/>
http://mysite.com/9695/japanese-fluorescent-green-bikini.jpg",
"link": "http://mysite.com/bikinis/867-japanese-fluorescent-green-bikini.html",
"quantity": 1,
"priceByLine": "SGD$34.00",
"name": "Japanese Flu...",
"price": "SGD$34.00",
"price_float": "34",
"idCombination": 0,
"idAddressDelivery": 17,
"hasAttributes": false,
"hasCustomizedDatas": false,
"customizedDatas":[
]
}],
"discounts": [
],
"shippingCost": "SGD$0.00",
"shippingCostFloat": "0",
"wrappingCost": "SGD$0.00",
"nbTotalProducts": "1",
"total": "SGD$34.00",
"productTotal": "SGD$34.00",
"hasError" : false
}

Link to comment
Share on other sites

  • 2 weeks later...

the latest version of swift is compatible with PHP5.3 >

in swift anonymous function is used in Header.php

 

and thus Prestashop is only compatible with PHP5.3 or higher from PS1.5.5.0

 

I bet you still use PHP5.2 or lower

 

Hi, according to swift, it is compatible with PHP 5.2 as well, http://swiftmailer.org/docs/overview.html

Link to comment
Share on other sites

×
×
  • Create New...