tdudzik
tdudzik

Reputation: 391

JSON module is probably installed but json_encode() doesn't exist

I've installed LAMP on Ubuntu 14.04 and then php5-json module. It seems to be installed because it's situated on list of modules on phpinfo() page. phpinfo()

But function_exists("json_encode") returns false

UPDATE:
I solved this problem by editing file which path is marked below: enter image description here

Upvotes: 2

Views: 2437

Answers (1)

Cr3aHal0
Cr3aHal0

Reputation: 809

Two ideas coming to my mind :

  • Restart your server after the module installation ?

  • Check your php.ini and look for a line which looks like :

    extension=json.so

Upvotes: 2

Related Questions