I've searched on the Internet about this error. Somebody told me that my computer is missing lib xml for php. But I don't know how to install it on Ubuntu 12.04 TLS.
Asked
Active
Viewed 1.1k times
1
-
What PHP version are you using? – ʰᵈˑ Dec 20 '13 at 16:32
-
I'm using PHP 5.3.10-1ubuntu3.9 with Suhosin-Patch (cli) – user2767553 Dec 20 '13 at 16:33
1 Answers
10
PHP Fatal error: Call to undefined function uft8_decode()
The function name is utf8_decode()
, not uFT8_decode()
.
var_dump(function_exists('utf8_decode'));
should tell you if it's available. If this returns bool(false)
, then php-xml
package is probably missing in your PHP installation. Make sure it is installed. If it isn't, ask your hosting provider to update / install it.

Amal Murali
- 75,622
- 18
- 128
- 150
-
-
@user2767553: Okay, what does the `var_dump(function_exists('utf8_decode'));` output? – Amal Murali Dec 20 '13 at 16:29
-
-
-
@user555: Look at the [question title](http://i.imgur.com/cUf85FF.png). – Amal Murali Dec 20 '13 at 16:34
-
-
@user555: `FT` was capitalized to highlight the typo. Sorry if it was unclear. – Amal Murali Dec 20 '13 at 16:36
-
@AmalMurali I get that, but you are still missing the `8` and the `_`. I think you meant to write `uFT8_decode()`. – user555 Dec 20 '13 at 16:39
-
@user555: OH. You're right. Thanks, I've now updated the answer to reflect this. :) – Amal Murali Dec 20 '13 at 16:44
-
@user2767553 The PHP man page for `function_exists()` states: `A function name may exist even if the function itself is unusable due to configuration or compiling options.` What does `var_dump(is_callable('utf8_decode'));` return? – user555 Dec 20 '13 at 16:49