Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu May 29, 2014 5:30 pm 
Offline
Newbie

Joined: Thu May 29, 2014 5:25 pm
Posts: 2
To all,

I re-installed PHP5 on my server just to stay updated. However, after that reinstall, everywhere on my sites where I use function:

json_decode(...

Executions breaks. (It did not with the previous PHP install.)

The error i am getting is:

Fatal error: Call to undefined function json_decode() in /home/username/public/example.com/public/somefile.php on line 155

--- I have attempted the following, with following results ---

I tried sudo apt-get install php5-json

However, it did not work (please see log below)

root@lion:/# sudo apt-get install php5-json
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-json is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-json' has no installation candidate


---

Has anyone ever experienced this problem before?

Can anyone help with what could be wrong? How to bring json_decode back?


Top
   
PostPosted: Thu May 29, 2014 6:55 pm 
Offline
Senior Newbie

Joined: Mon Mar 31, 2014 2:29 pm
Posts: 19
How did you "reinstall" php5?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group