PHP Classes

OAuth Error

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  OAuth Error  >  (Un) Subscribe thread alerts  
Subject:OAuth Error
Summary:JSON extension is not available in this PHP setup
Messages:4
Author:abul
Date:2016-06-20 17:05:08
 

  1. OAuth Error   Reply   Report abuse  
Picture of abul abul - 2016-06-20 17:05:08
when i am trying to use login_with_github.php to use oauth 2 for git hub i am getting OAuth client error: Error: the JSON extension is not available in this PHP setup.
According to my understanding Json is not installed with PHP on my server.Do i need to tel my server Admin to install newer version of php.
please tell me how to solve this error.

  2. Re: OAuth Error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-06-20 17:35:23 - In reply to message 1 from abul
Usually the JSON extension comes built-in with PHP 5.2 or higher. Are you using a older version?

  3. Re: OAuth Error   Reply   Report abuse  
Picture of abul abul - 2016-06-20 17:49:14 - In reply to message 2 from Manuel Lemos
Thank You Manuel for quick reply.
my php version is 5.1.6.

  4. Re: OAuth Error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-06-20 18:17:13 - In reply to message 3 from abul
So, you need to upgrade.