• Resolved Matze Pabst

    (@matthiaspabst)


    Hi!

    The site health check shows a critial issue “WebFinger endpoint is not accessible” but there are no details when opening the accordion item.

    Beside that, the Query Monitor Plugin shows two PHP warnings “Array to string conversion” at these locations:

        wp-content/plugins/activitypub/includes/wp-admin/class-health-check.php:245
    sprintf()
    wp-content/plugins/activitypub/includes/wp-admin/class-health-check.php:245
    Activitypub\WP_Admin\Health_Check::is_webfinger_endpoint_accessible()
    wp-content/plugins/activitypub/includes/wp-admin/class-health-check.php:169
    Activitypub\WP_Admin\Health_Check::test_webfinger()
    wp-admin/includes/class-wp-site-health.php:194
    WP_Site_Health->perform_test()
    wp-admin/includes/class-wp-site-health.php:145
    WP_Site_Health->enqueue_scripts()
    wp-includes/class-wp-hook.php:324
    do_action('admin_enqueue_scripts')
    wp-admin/admin-header.php:123

    How can I debug this? Webhoster Netcup can’t help.

    Best regards
    Matthias

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Konstantin Obenland

    (@obenland)

    Interesting, thanks for reaching out!

    You could check the response for https://your.domain/.well-known/webfinger?resource=acct%3Aapplication%40your.domain where “your.domain” is your domain.

    Could you let us know what you come up with, I’d like to fix that for everyone if possible.

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Hi @obenland ! Thanks for your quick reply.

    I tested:

    https://pabst-photo.com/.well-known/webfinger?resource=acct:[email protected]

    The result is this:

    {
    "subject": "acct:[email protected]",
    "aliases": [
    "https://pabst-photo.com/?author=0",
    "https://pabst-photo.com/@click",
    "https://pabst-photo.com/"
    ],
    "links": [
    {
    "rel": "self",
    "type": "application/activity+json",
    "href": "https://pabst-photo.com/?author=0"
    },
    {
    "rel": "http://webfinger.net/rel/profile-page",
    "type": "text/html",
    "href": "https://pabst-photo.com/?author=0"
    },
    {
    "rel": "http://ostatus.org/schema/1.0/subscribe",
    "template": "https://pabst-photo.com/wp-json/activitypub/1.0/interactions?uri={uri}"
    }
    ]
    }

    Plugin Contributor Konstantin Obenland

    (@obenland)

    Looks like everything works as expected! It’s still showing the error in Site Health? 🤔

    Thread Starter Matze Pabst

    (@matthiaspabst)

    Plugin Contributor Konstantin Obenland

    (@obenland)

    I wonder if there was an unexpected/faulty reply that was cached, and keeps failing this check.

    This is a guess as to what the transient key would be to purge the cache: webfinger_559ceaca286ae15ba8cd5a99741116e0. If you have access to WP CLI, you could try removing it with wp transient delete webfinger_559ceaca286ae15ba8cd5a99741116e0. Or in PHP delete_transient( 'webfinger_559ceaca286ae15ba8cd5a99741116e0' );.

    Regardless, this should self-heal within a week and doesn’t affect the functionality of your site or the ActivityPub plugin.

    Thread Starter Matze Pabst

    (@matthiaspabst)

    I purged the transient cache and now the site health check is good. 🎉

    Thank you, Konstantin!

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    The check is the one issue, but it should never have a PHP warning 😳

    I will check why this happend!

    Thanks for reporting @matthiaspabst

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WebFinger endpoint is not accessible & PHP warning’ is closed to new replies.