Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments are not saved #99

Open
vjlr20 opened this issue Apr 3, 2021 · 2 comments
Open

Comments are not saved #99

vjlr20 opened this issue Apr 3, 2021 · 2 comments

Comments

@vjlr20
Copy link

vjlr20 commented Apr 3, 2021

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

@fseesink
Copy link

fseesink commented Sep 25, 2021

@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.

@af7567
Copy link

af7567 commented Jan 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants