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

Call to undefined function utf8_decode() #20

Closed
fbertone opened this issue Sep 13, 2016 · 1 comment
Closed

Call to undefined function utf8_decode() #20

fbertone opened this issue Sep 13, 2016 · 1 comment
Assignees
Milestone

Comments

@fbertone
Copy link
Contributor

Hi,
in ubuntu server 16.04 with php7 I get this error while changing the password (the error is in the logs, nothing is shown on the UI):

PHP Fatal error: Uncaught Error: Call to undefined function utf8_decode() in [...]/lib/functions.inc.php:178\nStack trace:\n#0 [...]/pages/change.php(176): check_password_strength('...', '...', Array)\n#1 [...]/index.php(173): include('[...]')\n#2 {main}\n thrown in [...]/lib/functions.inc.php on line 178, referer: [...]/index.php

I solved installing php-xml.
Maybe add a check for function_exists('utf8_decode')?

According to Stack Overflow an alternative should also be using mb_convert_encoding from mbstring, but I haven't tried that.

@coudot coudot self-assigned this Sep 13, 2016
@coudot
Copy link
Member

coudot commented Sep 13, 2016

Yes, we could indeed have a test for utf8_decode like we do for other PHP functions

coudot added a commit that referenced this issue Sep 16, 2016
@coudot coudot added this to the 1.0 milestone Sep 16, 2016
@coudot coudot closed this as completed Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants