Uncaught Error: Call to undefine

2019-11-12  本文已影响0人  kevinsEegets

我们先用命令追踪日志nginx错误日志
tail -f /var/log/nginx/error.log

错误日志输出如下:

2019/11/11 22:39:47 [error] 20925#0: *35 FastCGI sent in stderr: "PHP message: PHP Fatal error:  
Uncaught Error: Call to undefined function json_decode() in /usr/share/nginx/html/leakcanary_website/details.php:46
Stack trace:
#0 {main}

我的php版本为7.2.11

解决办法:

centos
sudo yum install php-pecl-json
ubuntu
sudo aptitude install php5-json

上一篇 下一篇

猜你喜欢

热点阅读