I've just moved hosting for my Opencart Version 2.2.0.0 website and the site all works fine except when I try and do something that involved javascript eg add to basket or add to compare. I get the following message:
Code: Select all
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 325 of the JSON data
OK
{"success":"Success: You have added <a href=\"http:\/\/www.etron.com\/powerpal-touch-duo-charger-discharger-uk\">PowerPal Touch Duo Charger\/Discharger (UK Plug)<\/a> to your <a href=\"http:\/\/www.etron.com\/index.php?route=checkout\/cart\">shopping cart<\/a>!","total":"3 item(s) - \u00a3259.97"}<b>Warning</b>: fclose() expects parameter 1 to be resource, boolean given in <b>/home/etron/public_html/system/library/log.php</b> on line <b>14</b><b>Warning</b>: fclose() expects parameter 1 to be resource, boolean given in <b>/home/etron/public_html/system/library/log.php</b> on line <b>14</b>
Code: Select all
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 100 of the JSON data
OK
{"success":"Success: API session successfully started!","token":"oCy7dIsSL8rt2PNIuNLmTT2w9b8Je9DG"}<b>Warning</b>: fclose() expects parameter 1 to be resource, boolean given in <b>/home/etron/public_html/system/library/log.php</b> on line <b>14</b><b>Warning</b>: fclose() expects parameter 1 to be resource, boolean given in <b>/home/etron/public_html/system/library/log.php</b> on line <b>14</b>
Can anyone help with this?
Thanks