PHP Classes

Fixed: DrasticTools failed on Centos

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Fixed: DrasticTools failed on Centos  >  (Un) Subscribe thread alerts  
Subject:Fixed: DrasticTools failed on Centos
Summary:httpd error log had the message PHP Fatal error: Call to undef
Messages:1
Author:Tim Martin
Date:2010-07-04 07:12:23
 

  1. Fixed: DrasticTools failed on Centos   Reply   Report abuse  
Picture of Tim Martin Tim Martin - 2010-07-04 07:12:23
httpd error log had the message PHP Fatal error: Call to undefined function json_encode() in /var/www/html/DrasticTools/drasticSrcMySQL.class.php on line 178, referer: ...

The reason is that Centos ships with PHP 5.1, which does not include JSON support.

Updating PHP on Centos fixed that problem.

I used the following instructions to update PHP on Centos:

wiki.centos.org/HowTos/PHP_5.1_To_5 ...

Note that when it says 'Copy/paste the following into this file:', you should delete any leading blanks on each line; otherwise you will get error messages from "yum update".