xwing Posted September 4, 2009 Share Posted September 4, 2009 TECHNICAL ERROR: unable to save adresses <br/><br/>Details:<br/>Error thrown: [object XMLHttpRequest]<br/>Text status: parsererror<br/><br/>Any ideas how to fix this? I get this error after adding the address and clicking continue.<br/>Can you tell me in which module the error ocuers? Link to comment Share on other sites More sharing options...
codegrunt Posted September 6, 2009 Share Posted September 6, 2009 The error comes from:./themes/prestashop/js/order-address.jsfunction updateAddresses()The problem is that the JSON object returned by order.php has something wrong with it and is triggering an error condition. Could be a case of quoting / escaping maybe. What does the address look like? The URL that is returning something untoward looks like:order.php?processAddress=true&step=2&ajax=true&id;_address_delivery=' + idAddress_delivery + '&id;_address_invoice=' + idAddress_invoice+ '&token;=' + static_token So presumably, "idAddress_invoice" has something in it order.php does not like. You could try adding an alert(idAddress_invoice); above the ajax portion of updateAddresses to see what is being passed.Cheers Link to comment Share on other sites More sharing options...
xwing Posted September 6, 2009 Author Share Posted September 6, 2009 Yes. That was the problem. Thank you! Link to comment Share on other sites More sharing options...
tonito Posted September 7, 2009 Share Posted September 7, 2009 I have a very similar error:TECHNICAL ERROR: unable to save adresses Details:Error thrown: [object XMLHttpRequest]Text status: errorHow did you solve yours? I would appreciate an extra clue, if possible. Link to comment Share on other sites More sharing options...
tonito Posted September 7, 2009 Share Posted September 7, 2009 I had a problem with order.php?step=1 being http instead of https. I think that was triggering the JSON error.I solved it by replacing the deprecated shopping-cart.tpl in my theme with the newest shopping-cart.tpl. Link to comment Share on other sites More sharing options...
mir-aus Posted May 28, 2010 Share Posted May 28, 2010 I have same problem can u help me please Link to comment Share on other sites More sharing options...
ngruy Posted December 8, 2010 Share Posted December 8, 2010 Have the same problem, anyone can solve this?. thanks Link to comment Share on other sites More sharing options...
ermis Posted August 7, 2011 Share Posted August 7, 2011 codegrunt I cannot understand what I need to change to make it work. Everything was working fine with 1.4.3. When I upgraded to 1.4.4 I got the same error with the others: TECHNICAL ERROR: unable to save adresses Details: Error thrown: [object XMLHttpRequest] Text status: parsererror Can someone help? Thanks! Link to comment Share on other sites More sharing options...
10010110 Posted August 7, 2011 Share Posted August 7, 2011 I think I’ve found one cause of the problem: I went into the admin area (back office) to “Preferences > SEO & URLs”, down where the shop domain name and stuff like that are set, and I had to change “automatically redirect to canonical URL” (or whatever it says in English) to “No” in order to get rid of that error. I don’t quite know what this does and/or how I make my theme compatible with it (after all, the default theme seems to have problems with this, too) but at least this annoyin error is gone for now. The error came up on the order step one page where I can choose/specify addresses when I checked/unchecked the checkbox for same/additional addresses to use. The JS debug console showed me that when the “canonical URL” feature is enabled it would send a GET request to the current page’s (i. e. the order page) URL but the response would be empty. I have yet to find out what to do to fix that but it doesn’t send such a request when the “canonical URL” thing is disabled. I hope that helps people that have a similar issue. 1 Link to comment Share on other sites More sharing options...
hayek.alex Posted August 9, 2011 Share Posted August 9, 2011 I am having this error on Prestashop 1.4.4 line 101 of order-address.js , the ajax request to order.php is displaying the following message : [Debug] This page has moved<br />Please use the following URL instead: <a href="http://localhost/eco/commande">http://localhost/eco/commande</a> instead of json data !! Someone has an idea ? Link to comment Share on other sites More sharing options...
quriass Posted August 10, 2011 Share Posted August 10, 2011 I have a very similar error:<br/><br/>TECHNICAL ERROR: unable to save adresses <br/><br/>Details:<br/>Error thrown: [object XMLHttpRequest]<br/>Text status: error<br/><br/>How did you solve yours? I would appreciate an extra clue, if possible. Did you get the extra clue? Would you tell me the clue? Tnx! Link to comment Share on other sites More sharing options...
Mallee Boy Posted August 16, 2011 Share Posted August 16, 2011 This problem is not solved. The explanations so far are not clear enough at all. Does anyone have a clear fix for this? Link to comment Share on other sites More sharing options...
quriass Posted August 16, 2011 Share Posted August 16, 2011 This problem is not solved. The explanations so far are not clear enough at all. Does anyone have a clear fix for this? Thanks for joining this... Link to comment Share on other sites More sharing options...
Carl Favre Posted August 18, 2011 Share Posted August 18, 2011 Hi, On which PrestaShop version do you have this problem ? Did you report it on Bug Tracker ? Link to comment Share on other sites More sharing options...
Mallee Boy Posted August 18, 2011 Share Posted August 18, 2011 Hi Carl I have 1.4.4. The problem occurs on the original theme and my slightly modified theme. Address error when shipping to alternative delivery/billing address. Update quantity error in cart and the opc register form (for new and existing accounts) brings up a technical error also. Turning of canonical urls under prefs/seo solves all but the last error - the opc error for new and existing accounts. Guest check out works. My current work around is to redirect the opc new and existing accounts to the default sign in/sign up page (my account.php). I have not added it to the bug tracker because so many others are already making these same comments. Link to comment Share on other sites More sharing options...
Carl Favre Posted August 18, 2011 Share Posted August 18, 2011 Ok, well it would be better to also post it on Bug tracker, this way a developer can fix it. Link to comment Share on other sites More sharing options...
Mallee Boy Posted August 18, 2011 Share Posted August 18, 2011 Thanks Carl. Link to comment Share on other sites More sharing options...
BijouxMarche Posted August 18, 2011 Share Posted August 18, 2011 (edited) Looking at the fix below, I realise my comment was not relevant or helpful so I have removed it. Edited August 18, 2011 by BijouxMarche (see edit history) Link to comment Share on other sites More sharing options...
AKJV Posted August 18, 2011 Share Posted August 18, 2011 Well, this seems to be a hot topic. Or actually a hot issue as multiple topics can be found about this or similar issues. I also get the same popup window and error message as the topic starter, but in my case it's caused by adding a different address for billing/delivery during checkout (the normal 5-step checkout). This error only occured after I updated PS 1.4.3 to 1.4.4. I found out that someone else has already submitted this issue on the bug tracker. A Prestashop developer has suggested a fix that seems to work for the bug submitter. I haven't tested it myself yet but will report back once done. You can see the proposed fix here: http://forge.prestashop.com/browse/PSCFI-3068 I'm curious if this works for all of you too. Andreas Link to comment Share on other sites More sharing options...
Carl Favre Posted August 18, 2011 Share Posted August 18, 2011 AKJV, and the others too, it would be great to have your feedback. Link to comment Share on other sites More sharing options...
AKJV Posted August 18, 2011 Share Posted August 18, 2011 I have now tested the proposed fix for this issue (see link to bug tracker in my post above) and can confirm no more error message. This is while still having friendly and canonical URL enabled. So I'm a happy camper again! To be clear again: in my case this error appeared during checkout (5-step system) upon adding a different address for billing/delivery (or rather upon unchecking the option to use the same address for both). I'm not using the OPC system so I cannot confirm if the fix works in that case as well. The fix is changing line 347 (for PS 1.4.4) in classes/FrontController.php: if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', (($this->ssl AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) into: if (!Tools::getValue('ajax') && !preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', (($this->ssl AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) Hope this works for you as well! 2 Link to comment Share on other sites More sharing options...
Arafat Jahan Posted August 19, 2011 Share Posted August 19, 2011 The problem was may be in friendly-url mode, and for friendly-url mode you must mention each page url-rewrite field, So go to Back Office >Preferences>SEO & URLs and make sure each page and also in each language have the url-rewrite , do not leave any one language blank. Hope this will solve your problem, thanks, Arafat jahan Link to comment Share on other sites More sharing options...
Mallee Boy Posted August 20, 2011 Share Posted August 20, 2011 My index.php under preferences/SEO has no friendly URL assigned. All the others do. Should it have a friendly URL assigned or not? If so, what should it be? DOes it matter? Link to comment Share on other sites More sharing options...
ifontal Posted August 26, 2011 Share Posted August 26, 2011 The problem was may be in friendly-url mode, and for friendly-url mode you must mention each page url-rewrite field, So go to Back Office >Preferences>SEO & URLs and make sure each page and also in each language have the url-rewrite , do not leave any one language blank. Hope this will solve your problem, thanks, Arafat jahan I have the url-rewrite for all languages in order.php (that is where error occurs), and I have same problem that AKJV: ... this error appeared during checkout (5-step system) upon adding a different address for billing/delivery (or rather upon unchecking the option to use the same address for both)... Link to comment Share on other sites More sharing options...
ermis Posted August 26, 2011 Share Posted August 26, 2011 I couldn't find a solution, so I just ...ignored the error. In the file \themes\yourtheme\js\order-address.js, in the last lines (around 119), I quoted the next line: //error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save adresses \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);} The result is that I no longer get the error. I just hope I haven't created another that I cannot see. 2 Link to comment Share on other sites More sharing options...
diabolyo Posted August 29, 2011 Share Posted August 29, 2011 I think I’ve found one cause of the problem: I went into the admin area (back office) to “Preferences > SEO & URLs”, down where the shop domain name and stuff like that are set, and I had to change “automatically redirect to canonical URL” (or whatever it says in English) to “No” in order to get rid of that error. I don’t quite know what this does and/or how I make my theme compatible with it (after all, the default theme seems to have problems with this, too) but at least this annoyin error is gone for now. The error came up on the order step one page where I can choose/specify addresses when I checked/unchecked the checkbox for same/additional addresses to use. The JS debug console showed me that when the “canonical URL” feature is enabled it would send a GET request to the current page’s (i. e. the order page) URL but the response would be empty. I have yet to find out what to do to fix that but it doesn’t send such a request when the “canonical URL” thing is disabled. I hope that helps people that have a similar issue. Hi there, Thank you very much, I had the same problems and it was solved with switching off canonical URL ! Thx Link to comment Share on other sites More sharing options...
johnlewisdesign Posted October 10, 2011 Share Posted October 10, 2011 I think I’ve found one cause of the problem: I went into the admin area (back office) to “Preferences > SEO & URLs”, down where the shop domain name and stuff like that are set, and I had to change “automatically redirect to canonical URL” (or whatever it says in English) to “No” in order to get rid of that error. I don’t quite know what this does and/or how I make my theme compatible with it (after all, the default theme seems to have problems with this, too) but at least this annoyin error is gone for now. The error came up on the order step one page where I can choose/specify addresses when I checked/unchecked the checkbox for same/additional addresses to use. The JS debug console showed me that when the “canonical URL” feature is enabled it would send a GET request to the current page’s (i. e. the order page) URL but the response would be empty. I have yet to find out what to do to fix that but it doesn’t send such a request when the “canonical URL” thing is disabled. I hope that helps people that have a similar issue. Mate, you are a superstar - that fixed it for me! FANK U! Link to comment Share on other sites More sharing options...
markthedoc Posted November 15, 2011 Share Posted November 15, 2011 Mate, you are a superstar - that fixed it for me! FANK U! +1! Thanks for your help on this Link to comment Share on other sites More sharing options...
melriks Posted December 1, 2011 Share Posted December 1, 2011 Turning off Canonical URLs worked for me too. However, what am I losing by turning them off. I thought Canonical URLs was a good thing? Prestashop v 1.4.4.0 I might have to try the frontcontroller modification to see if that works too. Link to comment Share on other sites More sharing options...
mafm10 Posted November 27, 2012 Share Posted November 27, 2012 Tengo este mismo error en Prestashop 1.5, alguna idea de como solucionarlo? Me sale al seleccionar una dirección y después continuar. TECHNICAL ERROR: unable to save adresses Details: Error thrown: [object XMLHttpRequest] Text status: parsererror Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 27, 2012 Share Posted November 27, 2012 Hello mafm10, please only post in the correct language. This is the English forum. Also, this thread is over a year old and it would be better if you were to create a new thread. Link to comment Share on other sites More sharing options...
mafm10 Posted November 27, 2012 Share Posted November 27, 2012 sorry, I'll create a new post. Link to comment Share on other sites More sharing options...
alvirtuoso Posted May 14, 2013 Share Posted May 14, 2013 This problem still occurs in my 1.5.4.1. I thought i had it resolve as suggested by others where you regenerate htaccess file but did not work. I also happens to me during checkout process where you update an address and also when you select an address from the drop down list. Any fix Link to comment Share on other sites More sharing options...
Rodolfo Posted June 6, 2013 Share Posted June 6, 2013 Hi, AKJV, I am looking this file in 1.4.9 and it is exactly aas yours, but it stills does not work for me. I still get this "unable to save address" in 1.4.9 I do not want to deactivate Canonical URL, as I think is really important. I am going to search in the forum, and I will post the answer if I find it. Thank you I have now tested the proposed fix for this issue (see link to bug tracker in my post above) and can confirm no more error message. This is while still having friendly and canonical URL enabled. So I'm a happy camper again! To be clear again: in my case this error appeared during checkout (5-step system) upon adding a different address for billing/delivery (or rather upon unchecking the option to use the same address for both). I'm not using the OPC system so I cannot confirm if the fix works in that case as well. The fix is changing line 347 (for PS 1.4.4) in classes/FrontController.php: if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', (($this->ssl AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) into: if (!Tools::getValue('ajax') && !preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', (($this->ssl AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) Hope this works for you as well! Link to comment Share on other sites More sharing options...
Rodolfo Posted June 6, 2013 Share Posted June 6, 2013 I deleted SSL domain as I don't use it. But now if I update quantities, it does not update total amount. I am going to see if this is prestashop problem of my customization problem RODOLFO PS 1.4.9 Link to comment Share on other sites More sharing options...
FERMB Posted October 28, 2013 Share Posted October 28, 2013 I have now tested the proposed fix for this issue (see link to bug tracker in my post above) and can confirm no more error message. This is while still having friendly and canonical URL enabled. So I'm a happy camper again! To be clear again: in my case this error appeared during checkout (5-step system) upon adding a different address for billing/delivery (or rather upon unchecking the option to use the same address for both). I'm not using the OPC system so I cannot confirm if the fix works in that case as well. The fix is changing line 347 (for PS 1.4.4) in classes/FrontController.php: if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', (($this->ssl AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) into: if (!Tools::getValue('ajax') && !preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', (($this->ssl AND Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) Hope this works for you as well! Años despues.... Esta solución funciona para PS1.4.4.1, manteniendo activadas las url amigables y canonica. OK Thanks!. Link to comment Share on other sites More sharing options...
outlet.ee Posted April 1, 2014 Share Posted April 1, 2014 Well I had the same error on PS152 with multistore. But the error appeared only in 1 shop out of 2. Turned the friendly URL off for a minute and then back on and the problem was gone. Not sure whether this is a temporary solution or not but the error won't come back, no matter how bad I want it back now Link to comment Share on other sites More sharing options...
pureherbal Posted May 22, 2014 Share Posted May 22, 2014 I am getting this error on Prestashop 1.5.6.2. This is happening on checkout. I have made a user with 2 different address's. One is a Canada address, one USA. I have set shipping costs different for both. When I choose a different address from the drop down list (doesn't matter if "use delivery address as the billing address" is checked). The error comes up. TECHNICAL ERROR: unable to save adressesDetails:Error thrown: [object Object]Text status: parsererror At this point nothing on the page changes if I click "ok". If I refresh the page, the shipping price will change to reflect the new address chosen. The error only comes up again if I change the address from the drop down box. One of the fixes above (The fix is changing line 347 (for PS 1.4.4) in classes/FrontController.php:) does not apply to me because my line in FrontController.php is completely different; probably because my version of Prestashop is newer. Friendly and Accented URL's are disabled as well as "Automatically redirect to the canonical URL". One solution above was to quote out the part In the file \themes\yourtheme\js\order-address.js, in the last lines (around 119), I quoted the next line://error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save adresses \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);} This solution did not work for me for some reason. I quoted out that line along with some other lines that I thought were related (Dreamweaver said so by showing a "red" mark) and I still got the error! If someone could show me every line to quote out I would appreciate it. Also, I wonder if I quote out the correct lines and do not get the error, will the shipping price update. I did have a friend who knows PHP take a quick look at this issue and he couldn't fix it but made the below comments: "the server side response sends gzipped data but does not tell the client side that the data is gzipped, so it tries to act on it as though it is plain text. Not sure if that is due to an apache setting, or where that disconnect is. Those particular requests are not setting the content-encoding properly, or it may be down to values in the .htaccess file... I tried some changes there, and some in the php but was unable to get any better results." If anybody out there has any suggestions, I would greatly appreciate it! Thanks! Link to comment Share on other sites More sharing options...
Doline Posted January 4, 2015 Share Posted January 4, 2015 Hello, did you manage to solve this problem. I encounter the same problem on my site, while this one worked very well there a few weeks. Adeline Link to comment Share on other sites More sharing options...
Recommended Posts