Skip to content

Unable to list reviews for product #40285

@mahesh-singh-pinja

Description

@mahesh-singh-pinja

Preconditions and environment

  • Magento version: 2.4.8
  • Anything else that would help a developer reproduce the bug:

Steps to reproduce

  1. Create a product (Or existing product)

  2. Add product review (If already have review its fine)

  3. Get the product id and hit on this controller review/product/list/id/2 Replace id with your product id

  4. Error: Error: Call to a member function isDisabled() on null in /var/www/html/vendor/magento/module-review/view/frontend/templates/form.phtml:81 Stack trace:

  5. Some how if you get rid of error on step 4

  6. You will get new error in header: Error: Call to a member function getId() on null in /var/www/html/vendor/magento/module-review/Block/Product/View.php:137 Stack trace: #0 /var/www/html/generated/code/Magento/Review/Block/Product/View/ListView/Interceptor.php(50)

Expected result

It should should the reviews lists without error.

Actual result

Fatal Errors

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions