Call to undefined function mb_detect_encoding on Ubuntu

136 views Asked by At

Is there anybody who can give me a clue?

I'm using php on ubuntu. What bothers me is the error Call to undefined function mb_detect_encoding() although I've installed mbstring and gd packages and enabled them too. I've also restarted apache2 many times.

[Tue Jan 03 14:33:29.036891 2023] [php:error] [pid 2005821] [client 192.168.11.12:34446] PHP Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /var/www/html/... 

Below is the info

$ cat /etc/issue Ubuntu 22.04.1 LTS \n \l 
root@***:/usr/lib/php# find . | grep mbstring 
./20220829/mbstring.so 
root@***:/usr/lib/php# php -m | grep mbstring 
mbstring 
root@***:/usr/lib/php# php -m | grep gd 
gd 
root@***:/usr/lib/php# php -v 
PHP 8.2.0 (cli) (built: Dec 10 2022 10:53:01) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.0, Copyright (c) Zend Technologies with Zend OPcache v8.2.0, Copyright (c), by Zend Technologies 

I've also restarted apache2 many times.

0

There are 0 answers