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

Fix Region code String instead of passing object #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shopwhizzy
Copy link

[2024-12-06T15:40:02.775548+00:00] main.CRITICAL: Error: Object of class Magento\Directory\Model\Region could not be converted to string in /home/u15e64ec4506f3/public_html/vendor/magento/module-directory/Model/ResourceModel/Region.php:143 Stack trace:
#0 ./vendor/magento/module-directory/Model/Region.php(59): Magento\Directory\Model\ResourceModel\Region->loadByCode() #1 ./vendor/affirm/magento2/Model/Observer/AddressFormat.php(48): Magento\Directory\Model\Region->loadByCode() ...


name: PR Template

Description

How To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Benefits

Additional information

[2024-12-06T15:40:02.775548+00:00] main.CRITICAL: Error: Object of class Magento\Directory\Model\Region could not be converted to string in /home/u15e64ec4506f3/public_html/vendor/magento/module-directory/Model/ResourceModel/Region.php:143
Stack trace:
#0 ./vendor/magento/module-directory/Model/Region.php(59): Magento\Directory\Model\ResourceModel\Region->loadByCode()
Affirm#1 ./vendor/affirm/magento2/Model/Observer/AddressFormat.php(48): Magento\Directory\Model\Region->loadByCode()
...
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

Successfully merging this pull request may close these issues.

1 participant