I've installed both the beta and the dev version and am having the same issue.

When logged in and I try to post a comment I get a red box with nothing in it, i'm assuming that is an error. I can see the comment in the backend, but it's not showing up and I get the following in the logs:

Error: Call to a member function model() on null in Drupal\react_comments\Plugin\rest\resource\Comments->post()

When trying to post as an anon user I get the same red box but with the following message in it:

Contact info for anonymous users is forbidden

Nothing in the logs.

I have checked the permissions and everything looks okay.

Any ideas?

Comments

Netsurge created an issue. See original summary.

elaman’s picture

Status: Active » Postponed (maintainer needs more info)

@Netsurge I've tried to reproduce your issue on fresh installation and didn't succeed. Could you provide the following information:
- Which version of Drupal you are using
- Which version of React you are using
- On which entity you are using Comments field?
- Have you renamed the comment field?
- Are there other JavaScript libraries or custom scripts that can interfere with React Comments? Check your browser console for JavaScript errors.

MikheevDesign’s picture

I get the same error on two sites, that's what the console: Failed to load resource: the server responded with a status of 400 ()

philsward’s picture

Getting similar issue, however it happens when trying to "delete" a comment.

Chrome Console Errors

Errors on page load:

ckeditor.js?qe4gmt:5 Uncaught ReferenceError: CKEDITOR is not defined
    at ckeditor.js?qe4gmt:5
(anonymous) @ ckeditor.js?qe4gmt:5
DevTools failed to load SourceMap: Could not load content for https://www.site.com/modules/contrib/react_comments/js/dist/main.29c5c118.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Error when trying to delete:

react_comments.js?qe4gmt:1 DELETE https://www.site.com/react-comments/comment/1?_format=json 405
(anonymous) @ react_comments.js?qe4gmt:1
e.exports @ react_comments.js?qe4gmt:1
e.exports @ react_comments.js?qe4gmt:1
Promise.then (async)
r.request @ react_comments.js?qe4gmt:1
(anonymous) @ react_comments.js?qe4gmt:1
(anonymous) @ react_comments.js?qe4gmt:1
Promise.then (async)
value @ react_comments.js?qe4gmt:1
s.deleteComment @ react_comments.js?qe4gmt:1
a.deleteComment @ react_comments.js?qe4gmt:1
onClick @ react_comments.js?qe4gmt:1
r @ react_comments.js?qe4gmt:1
a @ react_comments.js?qe4gmt:1
s @ react_comments.js?qe4gmt:1
d @ react_comments.js?qe4gmt:1
g @ react_comments.js?qe4gmt:1
r @ react_comments.js?qe4gmt:1
processEventQueue @ react_comments.js?qe4gmt:1
r @ react_comments.js?qe4gmt:1
handleTopLevel @ react_comments.js?qe4gmt:1
i @ react_comments.js?qe4gmt:1
perform @ react_comments.js?qe4gmt:1
batchedUpdates @ react_comments.js?qe4gmt:1
i @ react_comments.js?qe4gmt:1
dispatchEvent @ react_comments.js?qe4gmt:1
amccune’s picture

I also have the same issue. The commenting kicks in and displays ok, but there are no links for adding or editing comments.

Using Drupal 8.9.7 and React Comments 8.x-1.0-beta2

The commenting issue is on the standard forum content type, unmodified in any way.

There is a log entry for page not found for "/modules/react_comments/css/dist/main.229d614e.css.map" but nothing in the console regarding any other errors.

Other than this, the module looks perfect for what I need

amccune’s picture

Update on this, the issue of not being able to see a post comment box does not happen in Using Drupal 8.9.7 and React Comments 8.x-1.0-beta1, only in beta2

chucksimply’s picture

@amccune - same result here. beta1 shows fine, beta2... comment box disappears.

Log shows "Page not found" warnings at "/modules/contrib/react_comments/js/dist/main.29c5c118.js.map" and "/modules/contrib/react_comments/css/dist/main.229d614e.css.map"

chucksimply’s picture

Status: Postponed (maintainer needs more info) » Active
chucksimply’s picture

Priority: Normal » Major

This should be a major priority if the new version of the module is unusable due to this bug.

mjsamaan’s picture

Bump, I'm seeing this too. Any ideas on how to patch?

minnur’s picture

Is this still relevant ?

minnur’s picture

Looking into this

  • minnur committed a6e8854c on 2.0.x
    fix: #3039617, #3100415 and some other refactoring
    
minnur’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.