Closed avrain27 closed 7 years ago
json_decode() is function provided by the json module of php. As the error says undefined function json_decode(), the reason could be no json module installed or incorrectly json module installed.
Your screenshot shows you have the json module already installed, so try reinstalling it once again.
Thank you kikmak42.
I went over to the account and created a simple script that’d run the json_decode() function and it returned a similar fatal error. So this is clearly not an authorize.net API issue, rather an issue at the server hosting the website. I will contact godaddy for a fix.
I have tested the code on my local computer and it seems to run well. But I get the following error;
Fatal error: Call to undefined function JMS\Serializer\json_decode() in /home/havis2/public_html/authorize/vendor/jms/serializer/src/JMS/Serializer/JsonDeserializationVisitor.php on line 27
when I try to run the code after uploading it to an online server.
My local PHP installation is version 5.6.28 and the one at the server is version 5.6.30.
Here is a screenshot of the active modules at the online server that is running into the error.
Any help would be appreciated.