SpankyAndy Posted July 21, 2013 Share Posted July 21, 2013 Hi all - I've been tearing what's left of my hair out trying to get OPC working on 1.5.4.1. Whenever I press the 'save' button after entering details for a guest or creating an account, I get the following dialogue box popup: TECHNICAL ERROR: unable to save account Details: Error thrown: [object Object] Text status: parsererror It works fine if I disable friendly URL's, but I can't seem to get it working with them enabled. Is anybody able to offer some advice please? Cheers Andy Link to comment Share on other sites More sharing options...
NemoPS Posted July 22, 2013 Share Posted July 22, 2013 Hi, can you open your firebug/developer console, by hitting f12 on your browser, click the save button and look at the last element of the network tab? Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 additional question: what template you use, default one? Link to comment Share on other sites More sharing options...
SpankyAndy Posted July 22, 2013 Author Share Posted July 22, 2013 Hi guys, Thanks for the reply. Its a theme I bought off a template site. Here's the "HAR" copied from Chrome, which came from a friendly URL named 'authentication' ... Cheers Andy { "log": { "version": "1.2", "creator": { "name": "WebInspector", "version": "537.36" }, "pages": [], "entries": [ { "startedDateTime": "2013-07-22T09:54:49.153Z", "time": 342, "request": { "method": "POST", "url": "http://www.removed.co.uk/authentication", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Cookie", "value": "ffdbd13d96d903c026c4876e97eb63a4=ZNGXH4ET8rlMLzQLtdYZjfkUXySHVRb%2FoZfB2N8ZrbtxzduJ5MY40mfqYEtCgTbSjpoJGSHZlIQtpDrlrBQO9oFs5IJtX54JSgY5%2Fb4gZmfOumDlgYTASp3l515LPJYFWyVM2aojBWVdenPviZMj54gcveB5x4IY5vX5IJjvn%2B8%3D000120; __utma=45845238.174678622.1374478211.1374478211.1374486804.2; __utmb=45845238.2.10.1374486804; __utmc=45845238; __utmz=45845238.1374478211.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)" }, { "name": "Origin", "value": "http://www.removed.co.uk" }, { "name": "Accept-Encoding", "value": "gzip,deflate,sdch" }, { "name": "Host", "value": "www.removed.co.uk" }, { "name": "Accept-Language", "value": "en-US,en;q=0.8" }, { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36" }, { "name": "Proxy-Authorization", "value": "Basic YW5keS53aGl0dGxlOk1henZxZnIx" }, { "name": "Content-Type", "value": "application/x-www-form-urlencoded; charset=UTF-8" }, { "name": "Accept", "value": "application/json, text/javascript, */*; q=0.01" }, { "name": "Referer", "value": "http://www.removed.co.uk/quick-order" }, { "name": "X-Requested-With", "value": "XMLHttpRequest" }, { "name": "Proxy-Connection", "value": "keep-alive" }, { "name": "Content-Length", "value": "535" } ], "queryString": [], "cookies": [ { "name": "__utma", "value": "45845238.174678622.1374478211.1374478211.1374486804.2", "expires": null, "httpOnly": false, "secure": false }, { "name": "__utmb", "value": "45845238.2.10.1374486804", "expires": null, "httpOnly": false, "secure": false }, { "name": "__utmc", "value": "45845238", "expires": null, "httpOnly": false, "secure": false }, { "name": "__utmz", "value": "45845238.1374478211.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "expires": null, "httpOnly": false, "secure": false }, { "name": "ffdbd13d96d903c026c4876e97eb63a4", "value": "ZNGXH4ET8rlMLzQLtdYZjfkUXySHVRb%2FoZfB2N8ZrbtxzduJ5MY40mfqYEtCgTbSjpoJGSHZlIQtpDrlrBQO9oFs5IJtX54JSgY5%2Fb4gZmfOumDlgYTASp3l515LPJYFWyVM2aojBWVdenPviZMj54gcveB5x4IY5vX5IJjvn%2B8%3D000120", "expires": null, "httpOnly": false, "secure": false } ], "headersSize": 1067, "bodySize": 535, "postData": { "mimeType": "application/x-www-form-urlencoded; charset=UTF-8", "text": "ajax=true&submitAccount=true&is_new_customer=0&opc_id_customer=0&opc_id_address_delivery=0&opc_id_address_invoice=0&email=test%40testing.com&id_gender=1&customer_firstname=Test&customer_lastname=TEsting&firstname=Test&lastname=TEsting&address1=123%20Test%20Place&city=TEscity&postcode=CH47%206BE&phone=01234567890&alias=My%20address&alias_invoice=My%20Invoice%20address&submitAccount=Save&id_country=17&customer_lastname=TEsting&customer_firstname=Test&alias=My%20address&other=&is_new_customer=0&token=8a57e77ebe9ff9534c7b98cddcb5f7d3", "params": [ { "name": "ajax", "value": "true" }, { "name": "submitAccount", "value": "true" }, { "name": "is_new_customer", "value": "0" }, { "name": "opc_id_customer", "value": "0" }, { "name": "opc_id_address_delivery", "value": "0" }, { "name": "opc_id_address_invoice", "value": "0" }, { "name": "email", "value": "test%40testing.com" }, { "name": "id_gender", "value": "1" }, { "name": "customer_firstname", "value": "Test" }, { "name": "customer_lastname", "value": "TEsting" }, { "name": "firstname", "value": "Test" }, { "name": "lastname", "value": "TEsting" }, { "name": "address1", "value": "123%20Test%20Place" }, { "name": "city", "value": "TEscity" }, { "name": "postcode", "value": "CH12%203TE" }, { "name": "phone", "value": "01234567890" }, { "name": "alias", "value": "My%20address" }, { "name": "alias_invoice", "value": "My%20Invoice%20address" }, { "name": "submitAccount", "value": "Save" }, { "name": "id_country", "value": "17" }, { "name": "customer_lastname", "value": "TEsting" }, { "name": "customer_firstname", "value": "Test" }, { "name": "alias", "value": "My%20address" }, { "name": "other", "value": "" }, { "name": "is_new_customer", "value": "0" }, { "name": "token", "value": "8a57e77ebe9ff9534c7b98cddcb5f7d3" } ] } }, "response": { "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Date", "value": "Mon, 22 Jul 2013 09:54:49 GMT" }, { "name": "Server", "value": "Apache" }, { "name": "Connection", "value": "Keep-Alive" }, { "name": "Proxy-Connection", "value": "Keep-Alive" }, { "name": "X-Powered-By", "value": "PHP/5.2.17" }, { "name": "Transfer-Encoding", "value": "chunked" }, { "name": "Content-Type", "value": "text/html; charset=utf-8" } ], "cookies": [], "content": { "size": 775, "mimeType": "text/html", "compression": -18 }, "redirectURL": "", "headersSize": 220, "bodySize": 793 }, "cache": {}, "timings": { "blocked": -1, "dns": -1, "connect": -1, "send": 0, "wait": 254, "receive": 86, "ssl": -1 } } ] } } Link to comment Share on other sites More sharing options...
SpankyAndy Posted July 22, 2013 Author Share Posted July 22, 2013 Hi again ! So, I've half fixed my problem after reading this thread: http://www.prestasho...iting-in-ps-15/ The language issue sounded familiar, as I had deleted US English and kept UK English instead, but the ISO and language codes were wrong. I corrected these, but still no dice. After changing the friendly URL for authentication.php to something else, it now saves both guest and created accounts with no problem, but I get a weird problem instead. As it reloads the form after saving, the cart block in the left column adds a duplicate item (see two screen captures). The cart contents list in the OPC form doesn't change and the value doesn't increase - its just the cart block. Any ideas? Cheers Andy Link to comment Share on other sites More sharing options...
andreassoegaard Posted November 5, 2013 Share Posted November 5, 2013 So did you/anybody find a solution to this problem? I'm currently stuck.When activating friendly urls i get the same error as described in the top, when i deactivate friendly urls i dont get it, and then when i activate it back again i dont get the error. But I'm not very happy with it if i need to do that with every single customer/order i get... Link to comment Share on other sites More sharing options...
Recommended Posts