wordpress-webmention icon indicating copy to clipboard operation
wordpress-webmention copied to clipboard

mb_convert_encoding deprecated

Open dshanske opened this issue 2 years ago • 2 comments

mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in webmention/includes/class-response.php on line 160

dshanske avatar Apr 13 '23 04:04 dshanske

Just got this error:

PHP Fatal error:  Uncaught ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) must specify at least one encoding in /wp-content/plugins/webmention/includes/class-response.php:160
Stack trace:
#0 /wp-content/plugins/webmention/includes/class-response.php(160): mb_convert_encoding()
#1 /wp-content/plugins/webmention/includes/class-discovery.php(187): Webmention\Response->get_dom_document()
#2 /wp-content/plugins/webmention/includes/functions.php(259): Webmention\Discovery::discover_endpoint()
#3 /wp-content/plugins/webmention/includes/class-sender.php(104): webmention_discover_endpoint()
#4 /wp-content/plugins/webmention/includes/class-sender.php(181): Webmention\Sender::send_webmention()
#5 /wp-content/plugins/webmention/includes/class-sender.php(299): Webmention\Sender::send_webmentions()
#6 /wp-includes/class-wp-hook.php(310): Webmention\Sender::do_webmentions()
#7 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#8 /wp-includes/plugin.php(565): WP_Hook->do_action()
#9 /wp-cron.php(191): do_action_ref_array()
#10 {main}
  thrown in /wp-content/plugins/webmention/includes/class-response.php on line 160

edent avatar Oct 30 '23 08:10 edent