marky96 Posted February 29, 2012 Share Posted February 29, 2012 Hi I have a problem when I try to place a order on my shop. The .htaccess file seems to want to connect to Prestashop but can't reach he site so it is caught up in an endless loop making the server to time out. I was debugging your application and noticed that it is trying to make a connection to the website of prestashop and this is where it starts to timeout. Any idea how I can get rid of that error? fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = 0 poll([{fd=4, events=POLLOUT|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLOUT}]) writev(4, [{"21623", 12}, {"www.prestashop.com", 19}], 2) = 31 poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}]) read(4, "211423", 24) = 24 read(4, "3252724B2www.prestashop.com", 24) = 24 close(4) = 0 time(NULL) = 1330546396 gettimeofday({1330546396, 534680}, NULL) = 0 gettimeofday({1330546396, 534705}, NULL) = 0 gettimeofday({1330546396, 534725}, NULL) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("213.186.52.66")}, 16) = -1 EINPROGRESS (Operation now in progress) poll([{fd=4, events=POLLOUT}], 1, 0) = 0 (Timeout) gettimeofday({1330546396, 534941}, NULL) = 0 gettimeofday({1330546396, 534959}, NULL) = 0 gettimeofday({1330546396, 534979}, NULL) = 0 gettimeofday({1330546396, 534998}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 0 (Timeout) gettimeofday({1330546396, 535036}, NULL) = 0 gettimeofday({1330546396, 535058}, NULL) = 0 gettimeofday({1330546396, 535076}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 0 (Timeout) gettimeofday({1330546396, 535113}, NULL) = 0 select(5, [], [4], [], {15, 0}) = 1 (out [4], left {14, 886956}) gettimeofday({1330546396, 648223}, NULL) = 0 gettimeofday({1330546396, 648241}, NULL) = 0 poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}]) getsockopt(4, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 gettimeofday({1330546396, 648315}, NULL) = 0 gettimeofday({1330546396, 648335}, NULL) = 0 gettimeofday({1330546396, 648356}, NULL) = 0 send(4, "GET /images/logo_partners/logo-skrill.png HTTP/1.1rnUser-Agent: PHP/5.2.17rnHost: www.prestashop.comrnAccept: */*rnrn", 117, MSG_NOSIGNAL) = 117 gettimeofday({1330546396, 648457}, NULL) = 0 Link to comment Share on other sites More sharing options...
Mark Hesketh Posted February 29, 2012 Share Posted February 29, 2012 Is this using the Guest/Instant checkout in Prestashop 1.4.7 by any chance? If so I had this problem today, its a known issue (here and here). Quoting from the comments: Unofficial solution is here: open file controllers/OrderController.php and delete line 110 ($this->_assignAddress() After deleting everything will work. I'd say its okay to modify the core here, as when you update this issue will no doubt be fixed. If not, at which point does the loop happen? Are you using One Page Checkout, Guest Checkout or both? Any custom modules? Link to comment Share on other sites More sharing options...
marky96 Posted March 1, 2012 Author Share Posted March 1, 2012 I use the guest checkout. It happens after you enter the street address and then hit continue. Link to comment Share on other sites More sharing options...
Mark Hesketh Posted March 1, 2012 Share Posted March 1, 2012 Did you try the quoted fix? That should do the trick. Comment out or delete line 110 of controllers/OrderController.php and see if it works. Mark Link to comment Share on other sites More sharing options...
Recommended Posts