Disabiling reviews in Magento cause Internal Server Error on GraphQL
Describe the Bug
Disabling reviews from store settings in magento won't render product page. This is issue has already been discussed on slack and it's on Magento side, but if someone has some workaround it would be cool.
Expected Behavior
Disabling reviews should just make disappear review data on product page
To Reproduce
On magento: Stores -> Configuration -> Catalog -> Product Reviews -> Enabled: No
Can confirm this happens on the demo environment as well. This is a core Magento bug and should be fixed there.
When reviews are disabled, this gives back an internal server error:
query {
products(filter: {
url_key: { eq: "subtle-sympathy-gc-1087-sock"}
}, pageSize:1) {
items {
name
rating_summary
reviews {
items {
text
average_rating
}
}
}
}
}
You could simply leave them enabled but remove the UI elements for now?
That is what we unusually do :)
@paales This issue is fixed in latest magento version