graphcommerce icon indicating copy to clipboard operation
graphcommerce copied to clipboard

Disabiling reviews in Magento cause Internal Server Error on GraphQL

Open mghizzo opened this issue 2 years ago • 3 comments

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

mghizzo avatar May 07 '23 11:05 mghizzo

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
        }
      }
    }
  }
}

paales avatar May 15 '23 11:05 paales

You could simply leave them enabled but remove the UI elements for now?

ansoni-san avatar May 31 '23 02:05 ansoni-san

That is what we unusually do :)

paales avatar May 31 '23 07:05 paales

@paales This issue is fixed in latest magento version

Mohamed-Asar avatar Dec 25 '24 05:12 Mohamed-Asar