grav-plugin-comments icon indicating copy to clipboard operation
grav-plugin-comments copied to clipboard

Comments are not saved

Open vjlr20 opened this issue 4 years ago • 2 comments

The comments of my site are not saved, from what I see it is not reaching the onFormProcessed, I have seen that some say that a configuration should be added in the comments.yaml file

image

vjlr20 avatar Apr 03 '21 04:04 vjlr20

@Victor5032 Were you ever able to get the Comments plugin to save comments?

I ask as I recently enabled this plugin, and while I found it added the comment fields (name, email, comment) to the bottom of blog posts, nothing is being saved/emailed/etc. when submitting. I find no data in <gravroot>/user/data/comments/, nor do I receive any email.

I have configured the Email plugin and tested that it works properly using the basic CLI example provided here:

$ bin/plugin email test-email -t <myemailaddress>

and that works fine. So I know it's not a matter of email getting stuck.

And finding this issue, seems I'm not alone in experiencing this. But wasn't 100% sure what you meant with your screenshot. I mean, it looks similar to what I see when I look in <gravroot>/user/config/plugin/comments.yaml or <gravroot>/user/plugins/comments/comments.yaml, though those 2 files don't match exactly. The former shows a timestamp matching when I enabled the Comments plugin for the first time. But I can't figure out where that configuration came from since it is not a copy of the latter.

Anyway, just curious whether you got the Comments plugin working, and if so, how.

For completeness, in case the devs are reading this, setup involves a virtual server with

  • Ubuntu 20.04 LTS with all patches
  • NGINX 1.18.0
  • PHP 7.4.3
  • Grav 1.7.22
  • Plugins relevant to this
    • Admin Panel 1.10.22
    • Comments 1.2.8
    • Email 3.1.3
    • Form 5.1.1
    • Gantry 5 Framework v5.4.37 (as I'm using Helium theme)

as I type this. I tend to keep my setup up-to-date.

fseesink avatar Sep 25 '21 19:09 fseesink

I found that I needed to comment out the "disable_on_routes" section in comments.yaml otherwise it would never process the form data on any pages.

af7567 avatar Jan 12 '22 23:01 af7567