Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Hooker on
Hi,
If an user with an account "customer" for example, adds an item to his cart and tries to checkout his own cart after this item has been deleted, there is this error message :
Error
The website encountered an unexpected error. Please try again later.
Error message
Notice: Trying to get property of non-object in commerce_product_line_item_populate() (line 1129 of /Applications/MAMP/htdocs/website/profiles/commerce_kickstart/modules/contrib/commerce/modules/product_reference/commerce_product_reference.module).
Notice: Trying to get property of non-object in commerce_product_line_item_populate() (line 1136 of /Applications/MAMP/htdocs/website/profiles/commerce_kickstart/modules/contrib/commerce/modules/product_reference/commerce_product_reference.module).
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 744 of /Applications/MAMP/htdocs/website/profiles/commerce_kickstart/modules/contrib/entity/includes/entity.wrapper.inc).
This is very disappointing, help me please ! :'(
Thank you .