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.

SebastianRamon

Page: 1 , 2
Topic problem when logged in an order 5509 Views

problem when logged in an order

15 October 2011 at 6:06pm Last edited: 15 October 2011 6:23pm

ive got a total clean installation and have trouble ordering. When i'm not logged in i can add products to the cart... when im logged in and add a product to the cart i get an blank screen from customHtmlFormSubmit. devmode is on and no error is given. im not logged in as admin but regular customer. Wheres the problem?
And when not logged in i see when clicking on tile and put it into cart have the same problem.
in ff login is ok. in ie the loginbox appears behind the header. Lots of problems allready found.

Re: problem when logged in an order

15 October 2011 at 6:42pm Last edited: 15 October 2011 6:52pm

Hi Haantje72,

sorry to hear that SilverCart does not behave nicely in your installation.

Unfortunately we do not have much feedback when SilverCart runs on other servers & operating systems.

We are working on the installation procedure, it will be more easy and more safe with SilverCart 1.2, which will be released within the next two weeks. Most problems occur because dev/buid did not run through properly.

Did dev/build run through properly or did it throw any errors?

Do you have access to the php error.log and can you check the latest entries?

Which version of IE do you use?

Cheers
Ramon

PS: Did you download the latest tip?

Re: problem when logged in an order

15 October 2011 at 7:27pm Last edited: 15 October 2011 7:37pm

Dev/build/flush=all gives no errors or problems. it comes tot database rebuild completed without problems. error logs from php i can not access fortunately. I can access my php.ini to edit. usese PHP Version 5.2.14. i use ss 2.45 and the newest downloads from all... btw dataobject_manager trunk build.

Re: problem when logged in an order

15 October 2011 at 7:36pm

Hi Haantje72,

since you cannot access the logs I assume you are on a shared host somewhere with a hoster?

Can you turn on php error reporting?

Is it possible to get the results from <?php phpinfo(); ?> and check the memory limit?

If error_reporting and display_errors is on and nothing shows except a white page, most likely the memory limit is exceeded.

Cheers
Ramon

Re: problem when logged in an order

15 October 2011 at 7:40pm Last edited: 15 October 2011 8:30pm

I run on an qnap home server linux. i can see the phpinfo and had allready set the memory limit to 800M. dont know how to access the error reporting. turned show display_errors = On and error_reporting = E_ALL & ~E_NOTICE and still blank screen

Re: problem when logged in an order

15 October 2011 at 7:48pm Last edited: 15 October 2011 7:50pm

Hi Haantje72,

display_errors is turned off. If you activate it we will have a good chance to see the error message.

More on error reporting http://php.net/manual/en/function.error-reporting.php

You can change the display_errors via php.ini or in runtime. More on this here http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors

After you have turned on display errors we will know more :-)

Cheers
Ramon

PS:
I recommend setting the memory_limit to a sensitive value like 64M or 128M.

I see you edited your post while I was writing.

Re: problem when logged in an order

15 October 2011 at 8:06pm Last edited: 15 October 2011 8:16pm

Sometimes errors are not displayed even when display_errors =1. You can try to log them into a logfile. This is what I do when I have the "white screen of death".

Maybe a PHP module is missing or something like that.

You can try this in you vhosts.conf:

<VirtualHost *:80>
ServerName myserver
DocumentRoot /var/www/silvercart/html
ErrorLog /var/www/silvercart/error_log
CustomLog /var/www/silvercart/access_log common
php_flag display_errors on
php_value error_reporting 6143
php_flag log_errors on
php_value error_log /var/www/silvercart/php_log
</VirtualHost>

Bye,

Jethro

Re: problem when logged in an order

15 October 2011 at 8:28pm Last edited: 19 October 2011 9:48am

the problem is i have no experience with this on linux or a nasserver. maybe ill try tomorrow to make an clean install here on a windows server. But i think it should be something else... when not logged in i can ad product to the cart and manage the cart. When im logged in i cant.
I have run here about 15 silverstripe sites on test and have no problems with them.