2 Ways To Install Region Patch For PayPal Express Checkout Issue in Magento 2.3.4.
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:
1 |
sh patch_file_name.sh |
Example:
1 |
sh PayPal_Express_Checkout_issue_fix_2.3.4_github-2020-02-13-12-36-34.sh |
For .patch file extension:
1 |
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
1 |
bash patch.sh |
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 our post on Download Magento 2. 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.
Thank you!
Keep the security of your Magento store updated to the highest level using our Magento Security Patches Installation Service.
Shivbhadrasinh Gohil
Shivbhadrasinh is the Co-founder & Chief Marketing Officer at Meetanshi. He leads the marketing team and is the person behind the marketing & branding success of the company. Being a seasoned digital marketer, he has been consulting online businesses for growth since 2010 and has helped 100+ clients with digital marketing success.
He loves sharing tips and insights about the latest digital marketing trends aimed at helping online business owners.
Prev
How To Load Quote Data By Id In Magento 2
Meet Meetanshi — A Leading E-Commerce Developer on Clutch!
Next