Call to undefined function json_decode error

captainron19

Active Member
Nov 10, 2011
33
1
56
cPanel Access Level
Root Administrator
I Apologize in advance if this does not belong here but someone informed me this may be an Apache issue which i am not familiar with.

I Noticed all the contact forms on one of my domains that I built in a form builder program are showing the error...
Fatal error: Call to undefined function json_decode() in /home/storksnm/public_html/contact_form/fbapp/php/config.cls.php on line 351

This can be seen at - Removed - and other pages on that domain like
- Removed -

I tried re-saving the form in form builder and I even deleted all files on the server before uploading the newly exported forms and it still is happening. The weird thing is that I have a VPS and have numerous other forms made from the same program up and running on other websites on the same server and they are working just fine as can be seen here ... - Removdd -
If need be, Line 351 of the error file reads:
$this->config = json_decode( substr( $txt, strpos( $txt, "{" ) ) );
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @captainron19


Typically this is because json decode has been added to disabled functions in the php.ini of the php version you're running, if you're using php-fpm this would be in a separate configuration file. You can see if you're using php-fpm by going to WHM>>Software>>MultiPHP Manager and you can check your disabled functions for your site's PHP version by going to WHM>>Software>>MultiPHP INI Editor -> Editor mode.

Thanks!