pfefferle / wordpress-webmention

A Webmention plugin for WordPress
https://wordpress.org/plugins/webmention/
MIT License
115 stars 32 forks source link

PHP Fatal error: Uncaught TypeError: explode(): Argument #2 #479

Closed cybeardjm closed 1 week ago

cybeardjm commented 3 weeks ago

Hi, I got a few (not so many) errors like this in my PHP errorlog, on one of my blogs, where I did a lot of post editing these last days.

[24-Jun-2024 16:41:14 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-response.php:142 Stack trace:

0 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-response.php(142): explode()

1 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-response.php(163): Webmention\Response->get_content_type()

2 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-response.php(263): Webmention\Response->get_dom_document()

3 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-response.php(349): Webmention\Response->get_html_links()

4 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-discovery.php(176): Webmention\Response->get_links_by()

5 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/functions.php(272): Webmention\Discovery::discover_endpoint()

6 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-sender.php(138): webmention_discover_endpoint()

7 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-sender.php(222): Webmention\Sender::send_webmention()

8 /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-sender.php(346): Webmention\Sender::send_webmentions()

9 /srv/data/web/vhosts/[domain removed]/htdocs/wp-includes/class-wp-hook.php(324): Webmention\Sender::do_webmentions()

10 /srv/data/web/vhosts/[domain removed]/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

11 /srv/data/web/vhosts/[domain removed]/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()

12 /srv/data/web/vhosts/[domain removed]/htdocs/wp-cron.php(191): do_action_ref_array()

13 {main}

thrown in /srv/data/web/vhosts/[domain removed]/htdocs/wp-content/plugins/webmention/includes/class-response.php on line 142