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

PHP Fatal error: Uncaught ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "WINDOWS-1253" in /var/www/localhost/htdocs/roundcube/program/lib/Roundcube/rcube_charset.php:297 #7850

Closed
candrews opened this issue Jan 25, 2021 · 2 comments

Comments

@candrews
Copy link

I'm getting this fatal error when viewing the message list in Roudcube using the current master 5975742

Jan 25 15:58:36 irrational roundcube[221895]: PHP Fatal error:  Uncaught ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "WINDOWS-1253" in /var/www/localhost/htdocs/roundcube/program/lib/Roundcube/rcube_charset.php:297
Jan 25 15:58:36 irrational roundcube[221895]: Stack trace:
Jan 25 15:58:36 irrational roundcube[221895]: #0 /var/www/localhost/htdocs/roundcube/program/lib/Roundcube/rcube_charset.php(297): mb_convert_encoding()
Jan 25 15:58:36 irrational roundcube[221895]: #1 /var/www/localhost/htdocs/roundcube/program/lib/Roundcube/rcube_mime.php(251): rcube_charset::convert()
Jan 25 15:58:36 irrational roundcube[221895]: #2 /var/www/localhost/htdocs/roundcube/program/lib/Roundcube/rcube_mime.php(154): rcube_mime::decode_mime_string()
Jan 25 15:58:36 irrational roundcube[221895]: #3 /var/www/localhost/htdocs/roundcube/program/actions/mail/index.php(527): rcube_mime::decode_header()
Jan 25 15:58:36 irrational roundcube[221895]: #4 /var/www/localhost/htdocs/roundcube/program/actions/mail/list.php(122): rcmail_action_mail_index::js_message_list()
Jan 25 15:58:36 irrational roundcube[221895]: #5 /var/www/localhost/htdocs/roundcube/program/include/rcmail.php(275): rcmail_action_mail_list->run()
Jan 25 15:58:36 irrational roundcube[221895]: #6 /var/www/localhost/htdocs/roundcube/index.php(279): rcmail->action_handler()
Jan 25 15:58:36 irrational roundcube[221895]: #7 {main}
Jan 25 15:58:36 irrational roundcube[221895]:   thrown in /var/www/localhost/htdocs/roundcube/program/lib/Roundcube/rcube_charset.php on line 297
$ php --version
PHP 8.0.1 (cli) (built: Jan  8 2021 09:15:07) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
@alecpl
Copy link
Member

alecpl commented Jan 26, 2021

I'm so disappointed about PHP8.

@alecpl alecpl added this to the 1.5-beta milestone Jan 26, 2021
alecpl added a commit that referenced this issue Jan 30, 2021
Also, bring back iconv() fallback, it supports much more charsets than mbstring.
@alecpl
Copy link
Member

alecpl commented Jan 30, 2021

Fixed via d258f84.

@alecpl alecpl closed this as completed Jan 30, 2021
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