Magento Forum

   
Paypal Unable to initialize Express Checkout review. 
 
Riftlord
Member
 
Total Posts:  36
Joined:  2010-03-08
 

Hi,
After clicking the continue button in Paypal i’m getting this on the cart screen,

Unable to initialize Express Checkout review.

Here’s the offending code in app/code/core/Mage/Paypal/Controller/Express/Abstract.php
/**
* Review order after returning from PayPal
*/
public function reviewAction()
try {
$this->_initCheckout();
$this->_checkout->prepareOrderReview($this->_initToken());
$this->loadLayout();
$this->_initLayoutMessages(’paypal/session’);
$this->getLayout()->getBlock(’paypal.express.review’)
->setQuote($this->_getQuote())
->getChild(’details’)->setQuote($this->_getQuote())
;
$this->renderLayout();
return;
}
catch (Mage_Core_Exception $e) {
Mage::getSingleton(’checkout/session’)->addError($e->getMessage());
}
catch (Exception $e) {
Mage::getSingleton(’checkout/session’)->addError($this->__(’Unable to initialize Express Checkout review.’));

Any ideas why i’m getting this error? I’ve done some tests and it’s throwing after renderLayout.

Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageOxy
Jr. Member
 
Avatar
Total Posts:  26
Joined:  2010-02-28
 

same here, any idea?

 
Magento Community Magento Community
Magento Community
Magento Community
 
nikonratm
Sr. Member
 
Total Posts:  84
Joined:  2009-03-18
 

I found a fix, replace your custom templates at .../template/paypal/express with those from /app/design/frontend/base/default/template/paypal/express

 
Magento Community Magento Community
Magento Community
Magento Community
 
yasirkalim
Jr. Member
 
Total Posts:  3
Joined:  2008-11-05
 

Go to /app/design/frontend/base/MYTheme/template/paypal/express/review.phtml
find <?php if($this->isVirtual()): ?> and Replace<?php if(0):// ($this->isVirtual()): ?> on line 53

 
Magento Community Magento Community
Magento Community
Magento Community
 
crawford13
Jr. Member
 
Total Posts:  1
Joined:  2010-08-16
 
nikonratm - 03 July 2010 09:17 AM

I found a fix, replace your custom templates at .../template/paypal/express with those from /app/design/frontend/base/default/template/paypal/express

This worked for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Matt Alexander
Member
 
Avatar
Total Posts:  44
Joined:  2009-03-25
Taos, New Mexico, USA
 
nikonratm - 03 July 2010 09:17 AM

I found a fix, replace your custom templates at .../template/paypal/express with those from /app/design/frontend/base/default/template/paypal/express

Your solution leads to duplicate code. If there hasn’t been any hacks made to your theme’s template/paypal directory, just delete it. The base theme will be used as a fallback.

 
Magento Community Magento Community
Magento Community
Magento Community
 
qinwubi
Jr. Member
 
Total Posts:  6
Joined:  2011-11-01
 

doesn’t work for me.

ver 1.6.1

 
Magento Community Magento Community
Magento Community
Magento Community
 
bmzero
Jr. Member
 
Total Posts:  15
Joined:  2008-05-19
 
qinwubi - 14 May 2012 08:11 PM

doesn’t work for me.

ver 1.6.1

These fixes are not working for me on EE 1.6.1. Were you able to come up with anything?

 
Magento Community Magento Community
Magento Community
Magento Community
 
magochdotcom
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2010-10-26
 

My client\’s version: 1.5.1
We have problem with message: initialize Express Checkout after opening Review Order page

After deep log I found that sometimes under IE 9 quote is empty after redirect client from paypal page to Review Order page .
Magento showing this error in two cases: when quote is empty or quote has errorr.

From my log I understand that quote is empty, but why ? May be cookies issue under IE9?

Log details below.
After var_export($quote->getData(), 1); I received

array (
\’store_id\’ => \’1\’,
\’is_checkout_cart\’ => true,
\’remote_ip\’ => \’213.108.75.111\’,
\’x_forwarded_for\’ => \’213.108.75.111\’,
)

but quote should return min quote enity_id:
array (
\’entity_id\’ => \’32241\’,
\’store_id\’ => \’1\’,
\’created_at\’ => \’2012-09-04 11:30:10\’,
\’updated_at\’ => \’2012-09-04 11:39:48\’,
\’converted_at\’ => \’0000-00-00 00:00:00\’,
\’is_active\’ => \’1\’,
\’is_virtual\’ => \’0\’,
\’is_multi_shipping\’ => \’0\’,
\’items_count\’ => \’1\’,
\’items_qty\’ => \’1.0000\’,
......

If you have ideas why problem is appering answer, please.

NOTE: issue was reproduced only under IE9, but error is not stable for reproducing with the same data.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top