mauricerenck / indieConnector

A Kirby Webmention Plugin
MIT License
30 stars 3 forks source link

Can't send a test mention to webmention.io #7

Closed AllienWorks closed 1 year ago

AllienWorks commented 1 year ago

Hello Maurice,

I'm playing with your plugin on my first ever Kirby site (so bear with me, I'm not a PHP pro either :sweat_smile:).

I've installed Komments (already working) and now trying to add the indieConnector.

Any ideas what might be the issue? I'll happily send all the requested logs and whatnot :)

Versions below:

mauricerenck commented 1 year ago

Hey,

It's the domain you're testing this from, reachable from outside or is it a local domain?

If it is public make sure to add the webmention endpoint to your HTML header using the snippet. You could also try to send a when to yourself by linking from one page to another, but make sure sending mentions to yourself isn't disabled.

The error in the panel may be the result of a missing database. Did you set up sqlite? If so, is the database file created?

AllienWorks commented 1 year ago

Hello, sorry for late reply.

It's the domain you're testing this from, reachable from outside or is it a local domain?

This has been observed on a live domain already (so publicly reachable).

If it is public make sure to add the webmention endpoint to your HTML header using the snippet.

These are present in <head>, just double-checked:

<!-- Webmentions -->
<link rel="pingback" href="https://webmention.io/<domain.tld>/xmlrpc" />
<link rel="webmention" href="https://webmention.io/<domain.tld>/webmention" />

You could also try to send a when to yourself by linking from one page to another, but make sure sending mentions to yourself isn't disabled.

I have not tried this yet, will do!

The error in the panel may be the result of a missing database. Did you set up sqlite? If so, is the database file created?

I initially tried (had it in config), but it broke the site due to some migrations error (all I remember now). So I turned it off since I don't really need it now. (My host might not support it.)

mauricerenck commented 1 year ago

Would you mind sending me the url? I could then try send a webmention and maybe get a clue what's going on. You can send it to me directly if you don't want to post it here.

AllienWorks commented 1 year ago

Sorry, I haven't had much time to play with this. I tried this (also might be url you're interested in): https://webmention.io/allien.work/webmention - to send a webmention from one of my pages to another. I got a Internal Server Error so I wonder if screwed it up or whether it might be a problem on webmention.io's side?

mauricerenck commented 1 year ago

Unfortunately it's pretty hard to test things like this, because you cannot look into the systems. I tried to send you a webmention and at least didn't get an error. Please have a look into webmention.io and check if you can see anything there.

AllienWorks commented 1 year ago

Yeah I'm sure, I wasn't exactly expecting you to solve it completely by your own. (Maybe just nudge me in the right direction.)

..and behold! I can now see your mention on the Webmention.io! (also one of mines from earlier today it seems). So let's see how will it work from now on. Let me play with it and report back to you!

AllienWorks commented 1 year ago

So I did the rest of the configuration (setting up the hook on Webmention.io). So far nothing changed – is that the expected behaviour?

Will only the future webmentions appear in the Komments? I did check and I have not specified any webmention-related config for Komments (and all of those defaults to true - enabled support, auto-publish..).

Sorry for newbie questions..

mauricerenck commented 1 year ago

Yes, only future webmentions will appear, webmention.io fires the webhook every time a mention is received.

AllienWorks commented 1 year ago

Thanks for info. I'll close this now, since it seems to be working. Thanks much for your assistance!