• Resolved Elena Brescacin

    (@talksina)


    Hello, a problem occurs when Friends plugin is active on my blog.

    When I post a comment, it returns a fatal error but the comment gets posted anyways; it happens with my own admin logged in session only, while it all goes smooth if I comment anonymously -not logged in- or another WordPress user/follower does, they get no issue (otherwise they would have told me).

    Noticed it was Friends, because deactivating it, the error disappears.

    Here’s the error:

    Fatal error: Uncaught TypeError: Argument 1 passed to Activitypub\Transformer\Post::transform() must be an instance of WP_Post, string given, called in /home/customer/www/plusbrothers.net/public_html/wp-content/plugins/activitypub/includes/model/class-post.php on line 37 and defined in /home/customer/www/plusbrothers.net/public_html/wp-content/plugins/activitypub/includes/transformer/class-post.php:93 Stack trace: #0 /home/customer/www/plusbrothers.net/public_html/wp-content/plugins/activitypub/includes/model/class-post.php(37): Activitypub\Transformer\Post::transform(‘27281’) #1 /home/customer/www/plusbrothers.net/public_html/wp-content/plugins/friends/feed-parsers/activitypub/class-comment.php(107): Activitypub\Model\Post->__construct(‘27281’) #2 /home/customer/www/plusbrothers.net/public_html/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php(1690): Activitypub\Model\Comment->__construct(555) #3 /home/customer/www/plusbrothers.net/public_html/wp-includes/class-wp-hook.php(310): Friends\Feed_Parse in /home/customer/www/plusbrothers.net/public_html/wp-content/plugins/activitypub/includes/transformer/class-post.php on line 93

    WordPress 6.3.1, ActivityPub 1.0.0, latest “Friends” plugin stable version, hosting SiteGround.

    What’s wrong? Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error while commenting a post’ is closed to new replies.