SilverCart Forum
We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?
You can help us helping you by providing detailed error messages, screenshots and logfile entries.
Page: 1 | ||
Topic Error 324 - When trying to buy two or more products | 2850 Views |
Error 324 - When trying to buy two or more products
10 January 2012 at 5:26pmHi everyone,
I recently set up a silverstripe site with a silvercart e-commerce section.
when testing my silvercart I noticed that a pretty major error occurred when trying to purchase more then one item. Adding the first item is fine, but as soon as I 'continue shopping' and click add to basket on another item, I get the grey screen of death with the error message
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
What is really strange is that this doesn't occur on my local development environment, only on the live site. Both have the same configuration.
so Im starting to wonder if it could be the server's config, it's running php 5.2.17, and my local machine is running 5.3.6.
if anyone has had a similar experience or knows of anything that could aid me in resolving this issue it would be greatly appreciate
Cheers
Jack
Re: Error 324 - When trying to buy two or more products
11 January 2012 at 12:14pmHi Jack,
I tried to reproduce the described behaviour using PHP 5.2.11 and PHP 5.3.8 and it worked for both.
Could you post some additional information about your system?
Perhaps some relevant entries out of the apache and PHP error log files?
What version of SilverCart are you using?
Did you download the complete package, minimal or sth. custom?
Cheers,
Sebastian
Re: Error 324 - When trying to buy two or more products
11 January 2012 at 3:48pmI have looked through the logs and when I get a
child pid 19536 exit signal Segmentation fault (11)
error in the logs, however sometimes randomly I get a null HTTP_Host error as well
PHP Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. in <website> on line 388
this error started popping up a few days ago, maybe it has something to do with the silvercart error im getting.
I'm using silvercart 1.2, looked at memory space on server as well all seems to be fine, its only a small server with 512mb ram but theres always 50-60mb free.
Although I didn't install or setup silvercart I believe its the complete version..
cheers for any help
Jack
Re: Error 324 - When trying to buy two or more products
11 January 2012 at 4:27pm Last edited: 11 January 2012 4:27pmHello Jack,
there's a thread on silverstripe.org describing the error you get: "http://www.silverstripe.org/general-questions/show/16369".
But I don't think that it relates to your problem, since your installation seems to work for some time until it goes boom. Under normal circumstances SilverCart reports about errors in the logfiles, too.
So my guess would be that it's a memory issue; 60 MB of ram could be too few for some actions with Silvercart since Silverstripe itself needs 48 MB alone and we add a lot of stuff to it.
I suggest that you try the methods described in the thread above; if they don't work the last resort would be to upgrade the server's memory.
All the best,
Sascha
Re: Error 324 - When trying to buy two or more products
20 January 2012 at 4:13pmHi guys,
cheers for trying to help me, however after a few hours debugging I was able to locate the problem with php itself, it kept blowing up on the reflectionClass right down in the core of silverstripe when trying to retrieve a singleton from the database, or something along those lines, it was weird.
Anyway we ended up just upgrading php on the server to 5.3 and it seems to be working back to normal..
thanks again
Jack