Fatal json error after transferring site

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
Mo Raelin
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Nov 15, 2011 11:53 pm

Fatal json error after transferring site

Post by Mo Raelin » Wed Jun 26, 2013 6:00 pm

I have just transferred my fully working Joomla 2.5 site to a new webserver, and I'm getting the following error showing.

Fatal error: Call to undefined function json_decode() in /home/sites/mysite.co.uk/public_html/libraries/joomla/registry/format/json.php on line 67

Can anyone offer any advice on what might be causing this?
Learn and obey the rules very well so you will know how to break them properly - Dalai Lama

User avatar
Tonie
Joomla! Master
Joomla! Master
Posts: 16553
Joined: Thu Aug 18, 2005 7:13 am

Re: Fatal json error after transferring site

Post by Tonie » Wed Jun 26, 2013 6:22 pm

Can you still enter the administrator backend? If so, go to Site --> System Information --> PHP information. Search that page for 'json' to check if it is enabled. My guess is that it's not.

User avatar
Mo Raelin
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Nov 15, 2011 11:53 pm

Re: Fatal json error after transferring site

Post by Mo Raelin » Wed Jun 26, 2013 8:20 pm

I can't access the admin panel Tonie.
Browser just shows the same error.

Is there a file I can download via FTP and edit to enable json??
Learn and obey the rules very well so you will know how to break them properly - Dalai Lama

User avatar
Tonie
Joomla! Master
Joomla! Master
Posts: 16553
Joined: Thu Aug 18, 2005 7:13 am

Re: Fatal json error after transferring site

Post by Tonie » Thu Jun 27, 2013 6:42 am

You can create a file on your workstation with the following code.

<?php
phpinfo();
?>

If you call this file info.php, and copy it to the root of your website (where configuration.php is), call it with http://yourwebsite/info.php. You can then check if it's enabled. It it's not, I'd contact the hoster first as it's a PHP module.

User avatar
Mo Raelin
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Nov 15, 2011 11:53 pm

Re: Fatal json error after transferring site

Post by Mo Raelin » Fri Jun 28, 2013 5:03 pm

Hi Tomie

I followed your instructions and I have attached the page that I was shown as a screenshot.

Json was only mentioned twice on the page as you can see.

Does this mean it is enabled already??
You do not have the required permissions to view the files attached to this post.
Learn and obey the rules very well so you will know how to break them properly - Dalai Lama


Locked

Return to “Administration Joomla! 2.5”