Issues following BookWyrm users results in critical error -> Uncaught TypeError: Friends\Feed_Parser_ActivityPub ($item) must be of type Friends\Feed_Item · Issue #499 · akirk/friends · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues following BookWyrm users results in critical error -> Uncaught TypeError: Friends\Feed_Parser_ActivityPub ($item) must be of type Friends\Feed_Item
#499
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.
Items in the Feed
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
WordPress is generating this:
WordPress version 6.7.2
Active theme: Twenty Sixteen (version 3.4)
Current plugin: Friends (version 3.4.4)
PHP version 8.2.26
Error Details
=============
An error of type E_ERROR was caused in line 1973 of the file /home/dh_f9i9ph/[michaelcortez.com/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php](http://michaelcortez.com/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php). Error message: Uncaught TypeError: Friends\Feed_Parser_ActivityPub::modify_incoming_item(): Argument #1 ($item) must be of type Friends\Feed_Item, null given, called in /home/dh_f9i9ph/[michaelcortez.com/wp-includes/class-wp-hook.php](http://michaelcortez.com/wp-includes/class-wp-hook.php) on line 326 and defined in /home/dh_f9i9ph/[michaelcortez.com/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php:1973](http://michaelcortez.com/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php:1973)
Stack trace:
#0 /home/dh_f9i9ph/[michaelcortez.com/wp-includes/class-wp-hook.php(326)](http://michaelcortez.com/wp-includes/class-wp-hook.php(326)): Friends\Feed_Parser_ActivityPub->modify_incoming_item(NULL, Object(Friends\User_Feed), Object(Friends\Subscription))
#1 /home/dh_f9i9ph/[michaelcortez.com/wp-includes/plugin.php(205)](http://michaelcortez.com/wp-includes/plugin.php(205)): WP_Hook->apply_filters(NULL, Array)
#2 /home/dh_f9i9ph/[michaelcortez.com/wp-content/plugins/friends/includes/class-feed.php(193)](http://michaelcortez.com/wp-content/plugins/friends/includes/class-feed.php(193)): apply_filters('friends_modify_...', NULL, Object(Friends\User_Feed), Object(Friends\Subscription), NULL)
#3 /home/dh_f9i9ph/[michaelcortez.com/wp-content/plugins/friends/includes/class-admin.php(2142)](http://michaelcortez.com/wp-content/plugins/friends/includes/class-admin.php(2142)): Friends\Feed->preview(Object(Friends\Feed_Parser_ActivityPub), 'https://bookwyr./..', 51)
#4 /home/dh_f9i9ph/[michaelcortez.com/wp-includes/class-wp-hook.php(324)](http://michaelcortez.com/wp-includes/class-wp-hook.php(324)): Friends\Admin->render_admin_add_friend('')
#5 /home/dh_f9i9ph/[michaelcortez.com/wp-includes/class-wp-hook.php(348)](http://michaelcortez.com/wp-includes/class-wp-hook.php(348)): WP_Hook->apply_filters('', Array)
#6 /home/dh_f9i9ph/[michaelcortez.com/wp-includes/plugin.php(517)](http://michaelcortez.com/wp-includes/plugin.php(517)): WP_Hook->do_action(Array)
#7 /home/dh_f9i9ph/[michaelcortez.com/wp-admin/admin.php(259)](http://michaelcortez.com/wp-admin/admin.php(259)): do_action('friends_page_ad...')
#8 {main}
thrown
When examining the Outbox of the feed using activitypub.academy, I get the following for the first post -- all other posts are similiar
Looking at class-feed-parser-activitypub.php -- process_incoming_activity( $type, $activity, $user_id, $user_feed )
I suspect maybe it's because the posts are of type "Note" and the activitypub parser is expecting types of Create, Update, Delete, Announce, Unannounce, Like, Unlike, and Move ???
This is my first time digging into this code-base, and first time troubleshooting ActivityPub stuff -- so I could be completely off. I might be looking in the completely wrong place by looking at the Outbox on the Bookwyrm side of things.
When attempting to add a feed from bookwyrm.social get an uncaught exception.
Feed URL: https://bookwyrm.social/user/Michael_Cortez
Parser: ActivityPub
When I click Preview I get:
WordPress is generating this:
When examining the Outbox of the feed using activitypub.academy, I get the following for the first post -- all other posts are similiar
The text was updated successfully, but these errors were encountered: