Ajax error on commerce products entities

Created on 21 March 2019, almost 6 years ago
Updated 29 July 2024, 6 months ago

Problem/Motivation

Hi I am trying to use Ajax Comments with Products entities, but when i submit the comment form i am getting the following error:

"
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /en/ajax_comments/save_reply/commerce_product/2879/field_comments/18
StatusText: OK
ResponseText: Error: Call to a member function getRoutes() on null in Drupal\ajax_comments\Controller\AjaxCommentsController->renderCommentField() (line 154 of /home/commerce/public_html/web/modules/contrib/ajax_comments/src/Controller/AjaxCommentsController.php)."

If i reload the page i can see the comment correctly.
The same happens on edit and delete comment.

Some tests i have done

  • Change theme to bartik and test -> does not work as well
  • Try on a simple node -> it works as expected
🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇵🇹Portugal rsalvado

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024