Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabiling reviews in Magento cause Internal Server Error on GraphQL #1923

Open
mghizzo opened this issue May 7, 2023 · 3 comments
Open

Comments

@mghizzo
Copy link

mghizzo commented May 7, 2023

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

@paales
Copy link
Member

paales commented May 15, 2023

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

@ansoni-san
Copy link

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

@paales
Copy link
Member

paales commented May 31, 2023

That is what we unusually do :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants