PHP Fatal error: Call to undefined function json_decode() on Cpanel - php

I have php 5.6 version but still face that error
I'm using Cpanel to run a codeigniter project and I got this error:
PHP Fatal error: Call to undefined function json_decode() in/home/ntn/public_html/application/controllers/Login.php on line 69
I don't know how to solve this error
How can I resolve this error?

Unless you show your code, I cannot help you because call to undefined function is means it is calling a function which is not defined or mention in your code. its not a cpanel error for sure. its an error in your code

Related

Uncaught Error: Call to undefined function odbc_connection()

I am using PHP 7 and using mssql as a database.
I have an error that tells me that:
Uncaught Error: Call to undefined function odbc_connection()
I didn't know what to download for extension and I'm not sure if I will put it in php.ini. pls help

Fatal error: Call to undefined function stats_cdf_normal()

I am calculating percentage from zscore(mean,standarddeviation) while doing this I am getting the exception
Fatal error: Call to undefined function stats_cdf_normal()
I tried every possible solutions from google but not helpful.
I am using PHP 5. I am deploying my application on Azure cloud.

Fatal error: Call to undefined function printer_list()

So Im busy with this project that involves printing. I found a class online to do so. But when I try to test it, I get the following error:
Fatal error: Call to undefined function printer_list() in /Applications/XAMPP/xamppfiles/htdocs/barcode/Sample.php on line 9
And I know that I probably should install an extention, but how which one and how to do so? I use Xampp on OSX Yosemite.
The printer extension working only on Windows
printer_list() id deprecate in new php

Fatal error: Call to a member function isError() on a non-object... What's the cause?

I moved from another server to a new one, and now started getting this error in a script. The only reason I can think, is due to some php configuration or version.
Any idea?
I can't be a code error, as on the other server this error didn't appear.

Fatal error: Call to undefined method SplFileInfo::getRealPath()

I've got a client who has just set up a new VPN and is attempting to install my plugin.
He's getting the following error:
Fatal error: Call to undefined method SplFileInfo::getRealPath() on the commented line below. This appears to have something to do with the ZEND libraries. Any ideas what I should tell him to do?
If you are getting the undefined error means you have lower version of PHP.
The function is supported after PHP 5.2.2
SplFileInfo::getRealPath
(PHP 5 >= 5.2.2)
SplFileInfo::getRealPath — Gets
absolute path to file
http://php.net/manual/en/splfileinfo.getrealpath.php

Categories