I wanted to add staticman comment section on my website, but after all of the time configuring it I still can't get it working.
Staticman comment section should appear on pages that have comments enabled (ie. comments: true).
staticmanapp as a collaborator on the site repo (and received OK message on https://api.staticman.net/v2/connect/megascrapper/megascrapper.github.io)staticman.yml file mostly on default, except for the reCaptcha stuff which is disabled in the meantime. Even after all of that, the staticman form still wouldn't appear, and I have confirmed that comments have been enabled. So is there anything that I left behind or did I screwed up something?
Example page: https://megascrapper.github.io/test/
also, https://api.staticman.net/v2/entry/megascrapper/megascrapper.github.io/master says this:
Cannot GET /v2/entry/megascrapper/megascrapper.github.io/master
As per the documentation, you haven't completely filled out all the required fields in _config.yml.
Look's like you're missing repository.
The form now shows up, but I cannot post anything. it errors out saying Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again. even though I filled everything and ticked the Captcha.
Also, the POST link (https://api.staticman.net/v2/entry/megascrapper/megascrapper.github.io/master) still says Cannot GET /v2/entry/megascrapper/megascrapper.github.io/master. Does it matter though?
Not sure, I don't really know the inner workings of Staticman.
There's really only two possibilities I can think of.
_config.yml or staticman.yml. When you see missing required fields it means there are ones marked required in the config but the form isn't passing data for them on submit.And hitting the API link directly will give that error. Trying that with the MM demo site does the same error.
Yeah, there seems to be something wrong with my config.
Anyway, I managed to submit comments on my other site, but no comments are showing up even though I merged the pull request. Example
Path of the comment data is wrong. That's why it's not showing up.
It should be in a subfolder that matches the page slug it goes with. That's how they're associated and pulled in to the appropriate post or page.
Not sure why it's not working for you. It works on the demo site. Only other thing I can suggest is compare against that to see what is off with your repo. I'm fairly certain it's a bad config.
I really don't know what I did wrong here.
The feedback page has a permalink as /feedback. Even after adding a folder on _data/comments staticman still dumps everything onto /comments.
Not sure, but whatever is going on the logic in the comment form that should add in the relevant value for page.slug isn't working.
You can confirm that by looking at the hidden input field named options[slug]. The value is blank when it should be "feedback", which instructs Staticman where to place the data file.

The logic in the theme is correct, but perhaps because you're setting a permalink in the page Jekyll doesn't render page.slug correctly.
To be honest I've never tried comments on anything other than _posts... and even then I've never tried to override their permalinks. That could be the other difference. I've never tried this with a page, just _posts.
@megascrapper
your reCaptcha secret have mistake you have to use encrypt in the staticman.
After fix you can try again.
@llovvoll
FIxed it now. Does it matter though if reCaptcha is disabled?
@megascrapper
But your reCaptcha not disabled in the page, _config.yml also need to correct
you can refer to my activation steps Enable Staticman Comments System
Let's say that I don't want to turn on reCaptcha, do I remove the reCaptcha entry in _config.yml?
@megascrapper
Yes you need to remove the reCaptcha in _config.yml and flase in staticman.yml
that can be disabled.
@megascrapper
I received the same error and was able to resolve it.
Not sure if you have already looked, but you can get details on the error by examining the console in the developer tools of your browser. My error indicated that my staticman.yml file had a problem with indentation. Once I fixed it, my comments posted correctly.
Hi @mmistakes ,
Well, I finally managed to get staticman working. Apparently, it only works with posts and not pages. Thanks for the help anyway.
any idea about to have comments on pages?