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

Loading messages fails on some folders with mb_convert_encoding() error #5845

Closed
victoraroyo opened this issue Dec 14, 2021 · 1 comment · Fixed by #5882
Closed

Loading messages fails on some folders with mb_convert_encoding() error #5845

victoraroyo opened this issue Dec 14, 2021 · 1 comment · Fixed by #5882

Comments

@victoraroyo
Copy link

victoraroyo commented Dec 14, 2021

The setup is Nexcloud 23 beta, IMAP mailbox, centos 7 with postgres 12.8, php 8.0.3.

The specific error is:

mb_convert_encoding(): Argument #3 ($from_encoding) must specify at least one encoding

and in the logs the full stack says:

Caused by ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) must specify at least one encoding
/var/www/html/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Util/Horde/String.php - line 160:

mb_convert_encoding(null, "utf-8", "")

Is there a setting I'm missing or something else I should do to my setup to fix it?

Edit: Forgot to clarify that this is due to php8 now throw a value error for incorrect encoding. It is fixable if in vendor/pear-pear.horde.org/Horde_Util/Horde/String.php from_encoding is changed to self::_mbstringCharset($from)?self::_mbstringCharset($from):null but is there a setting to specify a default encoding which I'm missing.

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

Successfully merging a pull request may close this issue.

2 participants