- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: White page after adding product to cart
Hi @omarsattar,
These are a few actions that maybe you could apply:
- enable display_errors PHP option
- change the error_reporting to a higher level (try with E_ALL | E_STRICT)
- Change Magento 2 to developer mode (*)
- Check for reports on /path/to/magento/var/log folder. Maybe you'll find these files: system.log, debug.log and exception.log.
- 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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 happens
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: White page after adding product to cart
This is the time issue i`m talking about
i have checked store settings in web they are correct.nothing wrong with them
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: White page after adding product to cart
I have also this issue...what is the solution for that??
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: White page after adding product to cart
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: White page after adding product to cart
When I add my featured products to cart it return blank white empty page..