Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save customers with certain TJ fields null #375

Open
8 of 11 tasks
snoop0x7b opened this issue Jun 11, 2024 · 0 comments
Open
8 of 11 tasks

Unable to save customers with certain TJ fields null #375

snoop0x7b opened this issue Jun 11, 2024 · 0 comments

Comments

@snoop0x7b
Copy link

snoop0x7b commented Jun 11, 2024

Prerequisites

Description

When saving customers if the tj_exemption_regions or tj_last_sync are null, we get the following PHP errors. This occcurs on Magento 2.4.6-P5 and PHP 8.2. This did not occur on PHP7.4 for us.

Call to a member function getValue() on null at vendor/taxjar/module-taxjar/Observer/Customer/Save.php:57

Call to a member function getValue() on null in vendor/taxjar/module-taxjar/Observer/Customer/Save.php:80

Steps to Reproduce

  1. Go edit a customer
  2. Make sure the last sync date and exempt regions are null.
  3. Save the customer

Expected Result

Editing the customer should be successful

Actual Result

PHP error - customer does not save.

Versions

Magento 2.4.6-p5

  • Magento 2.4

  • Magento 2.3

  • Magento Open Source (fka Magento 2 Community Edition)

  • Adobe Commerce (fka Magento 2 Enterprise Edition)

  • PHP 8.2

  • PHP 8.1

  • PHP 7.4

  • PHP 7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant