#wordpress 2020-11-02

2020-11-02 UTC
[fluffy], [tantek], [Hideo_Minami], nickodd and [chrisbergr] joined the channel; nickodd left the channel
#
beko
*sigh* I still have no idea why Webmentions are no longer sent by my blog. I notice that ActivityPub Stream is also dead since 20. Oct. - something broke but nothing throws an error and I have no idea where to start digging at all.
#
petermolnar
beko: WordPress has a debug log option, plug turn error logging to debug level in PHP
#
beko
Yeah I cranked that all up before. It's like the cron entry is never created
#
beko
Afair Webmentions hook to Pingback but none are scheduled any more. No idea on ActivityPub but that's afair a Push architecture as well, no?
#
petermolnar
get one of them wordpress cron editor plugins, then deactivate the webmentions plugin, and activate it again
#
petermolnar
see if anything happens with the cron list
#
beko
I've the wp cli going and a real crontab */"
#
beko
err, */2
#
beko
Bite me. Deactivating and reactivating the Webmention plugin helped. There was no new cron event immediately but when I updated a reply I got do_pings and activitypub_send_update_activity.
#
beko
petermolnar++
#
Loqi
petermolnar has 1 karma in this channel over the last year (29 in all channels)
#
petermolnar
beko: that is not how WP works :).
#
petermolnar
You have a trigger which is either a real crontab entry, or a web action, but that only triggers the internal wordpress cron main hook. The internal one has a list of tasks to execute
[grantcodes] joined the channel
#
[grantcodes]
"Have you tried turning it off and on again?" never fails!
#
petermolnar
if something goes wrong, these tasks get messed up, unregistered, registered too often, etc. If a plugin is reasonably well written, it'll de-register on deactivation and re-register on activation
#
petermolnar
tihs is why it got fixed for you.
#
beko
petermolnar: Yes, and I deactivated the trigger in wp-config and use a real crontab entry to trigger but the event was never scheduled when a new post was created and I have zero clue why.
#
petermolnar
the wp cron stack is a monster; when I made an alternative webmentions plugin I tried to make it completely asynchronous and I was messing a lot with the wp-cron options. It's BAD.
#
beko
the hooks in question are of type Non-repeating so it's fine when they don't linger
#
beko
I'm really really afraid to take a closer look at this can of worms myself xD
#
beko
Nice, seems to work. Kept a watch on the event list and a Like via MicroPub triggered the two required events too.
#
beko
[grantcodes]: Haha, true :D I'm not working with such systems for a long time now that I kinda forgot about this old wisdom :D
#
petermolnar
[grantcodes]: these modern days of serverless systemless wordpressless blogging, one eventually needs to know _what_ to turn off and on again :D
#
beko
afraid my setup is more, not less. Very oldschool :)
[KevinMarks], jeremych_, [tantek], [Hideo_Minami], gRegorLove, [fluffy], [tonz], [jeremycherfas] and [schmarty] joined the channel