-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
No such entity with addressId = #19621
Comments
Hi @Alex1844. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @Alex1844 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
In our case these errors are logged by new customers that signed up for an account, but not filled out an address yet. The number between the brackets behind : getDefaultBilling of getDefaultShipping is the entity_id of the customer concerned. Which can be found in table 'customer_identity' That way you can determine what customer is causing the errors, you can check the addresses and you could contact the customer to ask if he had any issues on your front end. After filling out billing and shipping addresses for the customers account, the error will disappear. |
Hi, I working on Magento 2.2.9 and I have this issue too:
I think that these warning messages are wrote to log file during different actions of customer (create account, update cart, etc) when customer does not have address (addressId is NULL). To fix it, I changed of the functions getDefaultBilling and getDefaultShipping in class vendor/vertex/module-tax/Model/AddressDeterminer.php : getDefaultBilling function
to this:
getDefaultShipping function
to this:
|
I have upgraded perfectly working Magento 2.2.6 to 2.3.0 last week and since then about once per day I find my store front-end down, displaying Ooops, our bad message. It keeps showing that message on page refresh. The admin pages work fine though. I fix it by Flushing Page cache and then it works fine until next occasion.
This is the only thing I found in system log reporting any kind of failure, but since I do not know at what time the store went down I cannot be sure it is related.
[2018-12-06 09:56:59] main.WARNING: No such entity with addressId =
#0 /var/www/html/store/vendor/magento/module-customer/Model/AddressRegistry.php(49): Magento\Framework\Exception\NoSuchEntityException::singleField('addressId', NULL)
#1 /var/www/html/store/vendor/magento/module-customer/Model/ResourceModel/AddressRepository.php(172): Magento\Customer\Model\AddressRegistry->retrieve(NULL)
#2 /var/www/html/store/vendor/vertex/module-tax/Model/AddressDeterminer.php(88): Magento\Customer\Model\ResourceModel\AddressRepository->getById(NULL)
#3 /var/www/html/store/vendor/vertex/module-tax/Model/AddressDeterminer.php(73): Vertex\Tax\Model\AddressDeterminer->getDefaultBilling(367)
I cannot reproduce it at will. I have no additional modules enabled other than Magepal SMTP.
What would the error above suggest though?
Thanks
The text was updated successfully, but these errors were encountered: