Skip to content

Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in [...]includes/Handler/class-wp.php line 78 #538

@lordmatt

Description

@lordmatt

I'm seeing an error being thrown for a specific mention to my site.

The line it is objecting to is:

$result = array_merge( $page, $this->parse_author_json( $response ) );

I think the cause is that parse_author_json returns null if the key does not exist but line 78 does not try to handle the null case.

		if ( ! array_key_exists( '_embedded', $json ) ) {
			return null;
		}

The ping should come from https://islandinthenet.com/sn/135307/ to https://lordmatt.co.uk/replying-to-things/okay-make-what-you-need-might-be-good-for-the-indiewebs-future-after-all/#comment-14975

It does not seem to be a problem for other links.

That's as far as I have been able to trace the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions