Update Feeds
No Friend feed will be updated automatically, also when calling .../friends/?refresh to update my Friends feeds nothing happend and no feed will be updated.
A manual update per friend work, but this is quite unhandy. Digging more into it I discover that it seems the auto update will be scheduled only in one year ahead.
I'm also experiencing this. Additionally, manually running the cron jobs via wp-cli does seems to have no effect.
Thanks for the report, do you see any errors in your server's error log?
Also, in wp-admin/site-health.php does it maybe warn about the Friends cronjob not being enabled?
Indeed, I had to enable the cronjob manually. But clicking on
,btw. .../friends/?refresh still does not update feeds.
Can you point me what I should looking for in which log?
Fatal errors with a backtrace that shows multiple php locations where the error originated. The timestamp might coincide with when you click to refresh it. Actually, I don't think the refreshing is fundamentally broken because it works in this sample blueprint inside WordPress Playground.
@akirk I am not seeing any errors.
However, I am seeing a number of my feeds with "next poll" dates 1 year in the future, I believe that means they have polling disabled. I'm uncertain why polling is disabled for those feeds (still digging into that).
- It seems that calls to
User_Feed::get_all_due()have$ignore_due_dateset depending on context - If I am understanding the code correctly the individual feed "refresh" link (ex.
https://ohryan.ca/wp-admin/admin.php?page=friends-refresh&user=ohryan&_wpnonce=<nonce>) is callsget_all_due()with$ignore_due_date = true. - This would cause those links to refresh disabled feeds.
I think this explains the behaviour I'm seeing. Though TBD why feeds are unexpectedly disabled (i.e. I have not intentionally disabled any feeds).
The next poll date 1 year in the future is for ActivityPub "feeds" and meant as a kind of "safety net." The ActivityPub feeds should received pushes of new posts, not needing a poll. Do these dates show for non-ActivityPub feeds?
Do these dates show for non-ActivityPub feeds?
Ah that's it, it looks like all of these feeds with next poll dates a year in the future are ActivityPub feeds. That makes sense.
I think there's an argument that all the "refresh" buttons should function in the same way, but that's sort of besides the point.
So I suppose I am either not receiving the ActivityPub pushes, or they are not being processed. I'm guessing the former. Any tips for debugging pushes not being received?
Thanks for you help.
The ActivityPub plugin has an inbox view, do you see incoming posts in wp-admin/edit.php?post_type=ap_inbox?
No, in fact I do not have any posts with post_type = 'ap_inbox'. Loading the admin URL returns a permission error.
Ah then it would be good to activate that, I believe you need to check the checkbox under Tools > ActivityPub > Advanced > Inbox
Persist all incoming Activities. For now, this is only used for debugging purposes. If you have no actual need for this, please keep it disabled to avoid unnecessary database writes. Future versions may enable this feature by default.
I apologize that this is going down a support path, rather than a bug report...
I'm not seeing such a option. The ActivityPub plugin doesn't have a tools item, and its settings don't have an advanced section.
You can activate it via the top right menu:
Thanks! I found the setting but it did not seem to register the post type (same results as before). I even resaved permalinks after saving the setting, even though that's probably not really necessary.