Critical error when people comment
-
Over the past few days I’ve had people report that Webmentions are failing with an error.
Example failure can be seen here – https://fosstodon.b-cdn.net/media_attachments/files/104/903/315/098/013/266/original/8ee32f4966e435c8.png
I then got reports from people trying to leave regular comments on my site that they were getting a critical WordPress error when trying to add a comment.
Strangely though, the comments always come through to the WP backend, but the user gets an error and I don’t get a notification that the comment was added.
I’ve been digging into the issue on my staging site, and have confirmed the root of the problem with the Webmentions plugin. Here’s what happens:
1) I attempt to leave a comment as a user that isn’t logged in and get an error saying “There has been a critical error on your website.” when I hit the “comment” button (when logged in commenting works fine). This is repeatable.
2) I login to WP and see the test comment in the moderation queue – I haven’t received an email notification.
3) I disable the Webmention plugin and try step 1 again. Everything is fine. I see the comment is awaiting moderation on the front end, and I (as the admin) get an email notification to say that a comment has been added. Again, this is repeatable.
I enabled debug mode, but see nothing additional on the error screen. I also enabled debug logging, but nothing is being added to the log, so I’m in the dark here.
Happy to give you admin access to my staging site so you can test yourself.
Thanks,
Kev
The page I need help with: [log in to see the link]
- The topic ‘Critical error when people comment’ is closed to new replies.