Magento Fatal error: Call to a member function setQuote() when customer clicks “review your information” using Paypal Express Checkout

Magento Fatal error: Call to a member function setQuote() when customer clicks “review your information” using Paypal Express Checkout

October 12, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento Fatal error: Call to a member function setQuote() when customer clicks “review your information” using Paypal Express Checkout

Magento Fatal Error: Call to a Member Function setQuote() on a Non-Object

If you’re facing a Magento fatal error “Call to a member function setQuote()” while using PayPal Express Checkout, it’s likely due to an issue with session management or object instantiation. Let me walk you through the problem and provide solutions.

Understanding the Error

The error occurs in the app/code/core/Mage/Paypal/Controller/Express/Abstract.php file. It happens when the PayPal Express Checkout controller attempts to call the setQuote() method on a non-existent object, usually after the customer has clicked “Continue” in the “Review Your Information” section of the checkout process.

Potential Causes and Solutions

  1. Session Expiration or Invalid Session ID Magento relies heavily on session data for its operations. If the session expires or the session ID becomes invalid before this point, it can lead to this error. Ensure that your server configuration allows for long enough session lifetimes and that session IDs are properly maintained across redirects.

    You might want to check your session.gc_maxlifetime value in your PHP.ini file or set it at runtime using something like:

    ini_set('session.gc_maxlifetime', 86400); // Set the maximum lifetime of a session to 1 day (in seconds)
    
  2. Incomplete or Incorrect Object Instantiation The error suggests that an object is being called as if it were an instance of Mage_Core_Model_Session, but it may be null or not fully instantiated. This can happen due to a variety of reasons, including incorrect module dependencies or conflicts.

    It’s worth checking your custom code extensions and third-party plugins to ensure they are properly initialized and don’t interfere with Magento’s core session management.

  3. Outdated or Misconfigured PayPal Express Checkout Module The issue might stem from an outdated version of the PayPal Express Checkout module or incorrect configuration settings. Make sure you’re using a compatible version of the module with your current Magento setup, and double-check that the settings in System > Configuration > Sales > Payment Methods > PayPal Express Checkout are correctly configured.

Best Practices

To avoid such errors in the future:

  • Keep your Magento core files and extensions up-to-date.
  • Regularly update your security patches.
  • Follow best practices for session management and object instantiation.
  • Use Magento’s built-in logging tools to debug any issues (accessible via System > Configuration > Advanced > Developer).

Conclusion

Fatal errors like “Call to a member function setQuote()” on non-objects typically arise from issues with session data or object instantiation. Ensuring proper session management, keeping your system up-to-date, and regularly auditing your code extensions are key to preventing these types of critical errors.

Remember, Magento is a complex platform that requires careful configuration and maintenance. If you’re facing persistent issues like this one, consider reaching out to professional Magento developers for assistance.

At Laravel Company, we specialize in Magento development and optimization services. Our team can help diagnose and resolve complex technical issues like this one. Visit https://laravelcompany.com/magento-development-services/ to learn more about how we can assist with your Magento projects.

Don’t let technical errors like these disrupt your e-commerce operations. With the right maintenance and support, you can ensure a smooth and secure shopping experience for your customers.

Checkout Configuration Customers Errors

Our network