5
votes

I am looking for a solution to my checkout cart page in Magento. When I put items into add to cart then cart page is getting blank.!!

I have tried several options & still it is showing blank. I have enabled cookies etc but still no luck. I am using firefox browser and attached a screen shot of the cookies settings.

Page URL - index.php/checkout/cart/add/uenc/aHR0cDovLzE5Mi4xNjguMS4xMTQ6ODEvZXNzZW50aWFsbHkvaW5kZXgucGhwL2NsZWFuc2UuaHRtbD9fX19TSUQ9VQ,,/product/2/

Please anyone can help me with this issue??

http://www.itsthe1.com/cookies.jpg

Thanks in advance.

8

8 Answers

8
votes

This is a PHP Memory Limit Issues. Its happens to me. Even if 256 MB will not work so go for 500m

Go to magento Root and .htaccess and change the current value to as per this and then Flush the cache and check your shopping cart and it will work.

## adjust memory limit
php_value memory_limit 500M
php_value max_execution_time 18000

Please Note: This is not an Extension issues.

Thanks!!!

1
votes

This issue does not seem like a cookie problem. You will need to debug the problem more. Open your index.php in the web root and add the following lines - ini_set('display_errors', 1); & Mage::setIsDeveloperMode(true); then refresh the page.

This should give you a clear indication of any issues with the php file.

1
votes

Blank page is a result of error.

Checkout page needs more memory and it has been observed that due to memory constraint there will be out of memory error.Which inturn will result in blank page.

1
votes

I had gotten the same error. Firstly add ini_set('display_errors', 1); in your index.php to check what is the error.

Mine was Cannot instantiate interface Magento\Vault\Api\Data\PaymentTokenInterfaceFactory in developer.php line 73

There was nothing wrong in both of these files. PaymentTokenInterfaceFactory is no more autogenerated in magento 2.1.x so to resolve this, add the following in your vendor/magento/module-vault/etc/di.xml file in between line 10-15:

<preference for="Magento\Vault\Api\Data\PaymentTokenInterfaceFactory" type="Magento\Vault\Model\AccountPaymentTokenFactory"/>

Then flush the cache and check if it still exists. That's how I resolved my error.

0
votes

I recommend starting with Steven's solution, When did this problem being to occur, were there any major changes made?

0
votes

This issue is almost always due to a Memory issue. Try increasing the memory limit, an also enable cache in the admin config.

This usually happens on the cart and checkout if the system doesn't have enough ram Allocated.

Depending on your setup you can modify this inside the htaccess file or inside php.ini

0
votes

Check if the php mcrypt module is installed and activated

0
votes

I recommend you to check your PHP version.