cancel
Showing results for 
Search instead for 
Did you mean: 

White page after adding product to cart

White page after adding product to cart

I had this issue with magento CE 2.1.8, then i upgraded hoping that this will be resolved but issue persists. . When i add product to cart it just shown empty white page. No error what so ever in logs. Tried to enable php logs but they also dont show any error.white5.JPG

14 REPLIES 14

Re: White page after adding product to cart

Hi @omarsattar,

 

If you're getting a blank page is probably you're having an error 500.

Can you enable the Magento logs and also take a look to the webserver error logs?

Maybe your broser console can provide you some information too about the error (to see if you're getting and error 500 after the add to cart action)

Re: White page after adding product to cart

I have enabled log via renaming /pub/errors/local.xml.sample ..is there any other way to do that?Browser Console also shows nothing.Enabled PHP error reporting .That also shows nothing

Re: White page after adding product to cart

Hi @omarsattar,


These are a few actions that maybe you could apply:

 

  1. enable display_errors PHP option
  2. change the error_reporting to a higher level (try with E_ALL | E_STRICT)
  3. Change Magento 2 to developer mode (*)
  4. Check for reports on /path/to/magento/var/log folder. Maybe you'll find these files:  system.log, debug.log and exception.log.
  5. Look inside /path/to/magento/var/report. You could find some useful information there too.

(*)

If you need to set the developer mode you can use these methods:

 

Apache virtualhost

Set the MAGE_MODE env.

 

<VirtualHost *:80>
	ServerName www.domain.com
	DocumentRoot /var/www/html
	SetEnv MAGE_MODE "developer"
	SetEnv MAGE_RUN_TYPE "website"
	SetEnv MAGE_RUN_CODE "default"
</VirtualHost>

 

Nginx

Set the MAGE_MODE param.

location ~ \.php$ {
    fastcgi_param MAGE_MODE "developer";
}

Magento console

Or you can set this manually from your server using the console.

bin/magento deploy:mode:set developer

 

 

Once you're ready you should change back the mode value to production.

 

Re: White page after adding product to cart

I have enabled developer mode from magento CLI, one strange thing i have noted now is that server time and the log time are not same..seeing live logs with tailf and server time on OS and log time do not match, Also these are logs im getting but these get when i open the product not when actual issue happensasasa.JPG

Re: White page after adding product to cart

This is the time issue i`m talking aboutseesd.JPG

i have checked store settings in web they are correct.nothing wrong with them

Re: White page after adding product to cart

Hi @omarsattar,

 

It seems you have an error on your layouts files.

Can you take a look to your custom theme (or modules maybe) to see if those XML are well formed?

Re: White page after adding product to cart

I have also this issue...what is the solution for that??

Re: White page after adding product to cart

Hi @amala_doss,

 

Which error? Can you share a message/screenshot?

Re: White page after adding product to cart

When I add my featured products to cart it return blank white empty page..