You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Product is deleted in database
Elasticsearch index is updated
Product list is displayed
Current behavior
Product is deleted in database
Elasticsearch index is not updated
A 500 error occurs
Steps to reproduce
Create a product
Delete the product
Detailed description
The error happens because BitBag\SyliusElasticsearchPlugin\EventListener\ResourceIndexListener is called on the event sylius.product.post_delete. Since the product removal has been processed by Doctrine, the product object id has been set to null.
Thank you for the fix, it works for deleting products, but not for deleting product variants. Indeed, I still get this error when I try to delete a variant:
Expected behavior
Product is deleted in database
Elasticsearch index is updated
Product list is displayed
Current behavior
Product is deleted in database
Elasticsearch index is not updated
A 500 error occurs
Steps to reproduce
Detailed description
The error happens because
BitBag\SyliusElasticsearchPlugin\EventListener\ResourceIndexListener
is called on the eventsylius.product.post_delete
. Since the product removal has been processed by Doctrine, the product object id has been set to null.Listener config file :
src/Resources/config/services/event_listener.xml
This problem also happen when deleting a product attribute, an option or a product variant.
The text was updated successfully, but these errors were encountered: