Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mb_convert_encoding() throws error in PHP 8.1 #251

Open
lazaruscorporation opened this issue Oct 14, 2023 · 1 comment
Open

mb_convert_encoding() throws error in PHP 8.1 #251

lazaruscorporation opened this issue Oct 14, 2023 · 1 comment

Comments

@lazaruscorporation
Copy link

I'm getting the following error from the parser (running on PHP 8.1):

CRITICAL - 2023-10-13 13:56:58 --> mb_convert_encoding(): Argument #3 ($from_encoding) must specify at least one encoding
  in VENDORPATH/mf2/mf2/Mf2/Parser.php on line 96.
  1 VENDORPATH/mf2/mf2/Mf2/Parser.php(96): mb_convert_encoding()
  2 VENDORPATH/mf2/mf2/Mf2/Parser.php(365): Mf2\unicodeToHtmlEntities()
  3 VENDORPATH/indieweb/mention-client/src/IndieWeb/MentionClient.php(156): Mf2\Parser->__construct()
  ...

Looking at the comments on https://www.php.net/manual/en/function.mb-detect-encoding.php it seems like there have been some changes in the way mb_detect_encoding() works in PHP 8.1 - I'm not sure if this is the cause of the error I'm getting?

@gRegorLove
Copy link
Member

Maybe related: #221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants