Home > Article > Backend Development > Why am I getting the \"Call to undefined function json_decode()\" error even though my PHP version is greater than 5.1?
PHP Fatal Error: Call to Undefined Function json_decode()
Problem Description:
PHP is throwing a fatal error "Call to undefined function json_decode()" despite php --version indicating a PHP version greater than 5.1, which should include JSON support.
Answer:
Using Ubuntu?
Install the appropriate PHP JSON module:
Restart Apache or PHP-FPM:
Explanation:
Additional Details:
The above is the detailed content of Why am I getting the \"Call to undefined function json_decode()\" error even though my PHP version is greater than 5.1?. For more information, please follow other related articles on the PHP Chinese website!