Skip to content

Undefined array key in class-hcard-user.php on line 215 #282

@lordmatt

Description

@lordmatt

I've been seeing a lot of this big ol' chungus of an error in my PHP logs.

Got error 'PHP message: PHP Warning: Undefined array key "id" in [snip]/public_html/wp-content/plugins/indieweb/includes/class-hcard-user.php on line 215; PHP message: PHP Fatal error: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, false given in [snip]/public_html/wp-content/plugins/indieweb/includes/class-hcard-user.php:215\nStack trace:\n#0 /[snip]/public_html/wp-content/plugins/indieweb/includes/class-hcard-user.php(215): array_values(false)\n#1 /[snip]/public_html/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(439): HCard_User::{closure:HCard_User::rest_fields():214}(Array, 'me', Object(WP_REST_Request), 'user')\n#2 /[snip]/public_html/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php(1122): WP_REST_Controller->add_additional_fields_to_object(Array, Object(WP_REST_Request))\n#3 /[snip]/public_html/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php(519): WP_REST_Users_Controller->prepare_item_for_response(Object(WP_User), Object(WP_REST_Request))\n#4 [snip]...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions