cancel
Showing results for 
Search instead for 
Did you mean: 

No such entity with cartId/customerId

SOLVED

No such entity with cartId/customerId

Hi guys,

 

I need some help here regarding placing orders.

When the customer place order, a confirmation email is expected to be sent but it was not.

 

I go to the exception log and here's the error

if the customer is logged in it will show No such entity for customerId.

if it's a guest check out it will show No such entity for cartId.

bv.PNG

I have debugged and these are the result

the highlighted line is where it returns No Such entity for customerId

bv2.PNG

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: No such entity with cartId/customerId

http://prntscr.com/pm6pls

See this screenshot, depending on php path you need to setup the cron.
Here is the Magento 2 guide on cron setup

https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

View solution in original post

7 REPLIES 7

Re: No such entity with cartId/customerId

Hello @tony_le2 

If you are using Magento 2.3.3. Make sure you have installed this patch

EmailMessageInterface backward compatibility issue patch for Magento 2.3.3

https://magento.com/tech-resources/download

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: No such entity with cartId/customerId

Hi,
I’m using 2.3.2. Is there any patch for it or I have to upgrade to 2.3.3 and install the patch
Kind regards

Re: No such entity with cartId/customerId

For 2.3.2, Is cron properly setup on your hosting server?
If that doesn't work, try using any SMTP extension on your magento.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: No such entity with cartId/customerId

Hi
Can you please show me the default config of cron jobs? I’m really new to Magento so probably i have configured it incorrectly 
Thank you

Re: No such entity with cartId/customerId

http://prntscr.com/pm6pls

See this screenshot, depending on php path you need to setup the cron.
Here is the Magento 2 guide on cron setup

https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: No such entity with cartId/customerId


@theMageComp wrote:
http://prntscr.com/pm6pls

See this screenshot, depending on php path you need to setup the cron.
Here is the Magento 2 guide on cron setup

https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html


Hi,

 

I have 2 users root and another user to access by SFTP, I install cron for both. But "main.CRITICAL: No such entity with customerId " still present.

Re: No such entity with cartId/customerId

Hello @tony_le2,

This is magento existing bug. Please refer the link for more info: https://github.com/magento/magento2/issues/23411

Please use this below link :

https://magefan.com/blog/no-such-entity-fix-for-magento-2

I hope this will fix your issue. If still you face the same problem, let me know.

If it helps you, please accept it as solution and give kudos.

Regards.