Magento CMS is a widely used E-commerce platform with constant improvements and bug fixes. And, to fix the issues, patch files and updated versions of Magento 2 are released with time.
One of the issues is PayPal Express Checkout issue with region patch for Magento 2.3.4
When a user selected the PayPal express checkout and entered a country name manually instead of drop-down option for the shipping address, an error is displayed that says,
“Error 500: NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function getId() on null in httpdocs/vendor/magento/module-paypal/Model/Api/Nvp.php:1527”
To fix this issue, Magento released a region patch on February 12, 2020. In this post, I’ve come up with two methods to install region patch for PayPal express checkout issue in Magento 2.3.4.
Use any of the below methods, with or without SSH, to install the region patch. Checkout issues can’t wait as it affects the conversion! So, don’t wait anymore and install this patch at once with any of the below methods:
Methods to install region patch for PayPal express checkout issue in Magento 2.3.4:
Each method in detail:
Method 1: Install Region Patch for PayPal express checkout issue in Magento 2.3.4 with SSH
Contact your hosting provider for help with setting up SSH.
Download region patch files for paypal express checkout issue for Magento 2.3.4 version from here.
Upload the patch into your Magento root directory and run the appropriate SSH command:
For .sh file extension:
For .patch file extension:
patch —p0 < patch_file_name.patch
For Linux OS or Ubuntu derived machines:
On Linux OS or Ubuntu derived machines, using sh will throw an error as sh is supposed to be used only with purely POSIX compliant scripts and Magento scripts are not 100% POSIX compliant. Instead, on Ubuntu and derived OSes such as Linux Mint, you should use
Note: Once executed the command, refresh the cache in the Admin under “System > Cache Management” so that the changes can be reflected. We strongly recommend that you test all patches in a test environment before taking them live.
Method 2: Install Region Patch for PayPal express checkout issue in Magento 2.3.4 without SSH
Download the zip file for Magento 2.3.4 version. You can also download these PrePatched files from Github or download it from here. Once you download these files, just upload it to your Magento root folder.
Flush and clean the cache once uploaded.
Still having issues with the patch installation? You can write your doubts in the Comments section below and I’d be happy to help. Or, you can opt for a professional patch installation service to keep you out of this hassle!
Please share the solution with Magento 2.3.4 store merchants to solve their PayPal express checkout issue via social media.
Get E-commers Updates in Your Inbox
Thank you for subscribing.
Something went wrong.