Facebook Needs the JSON php extension?> - php

I am trying to use FB login. I have used the same code for other websites and it works fine. But only one domain it returns a fatal error.
Fatal error: Uncaught 'Exception' with message 'Facebook needs the
JSON PHP extension' in
/var/www/vhosts/domain.com/httpdocs/base_facebook.php:22 Stack trace
/var/www/vhosts/domain.com/httpdocs/facebook.php:18 require_once()#1 ....

Facebook needs the JSON PHP extension installed on your server.
You will need to talk to the server administrator and ask them to install the extension for you.

Related

Fatal error: Uncaught exception 'DocuSign\eSign\ApiException' with message '[401] when trying to go live

I am trying to move my docusign implementation from the demo account to the production one, but when I try to make a login request I receive the following error:
Fatal error: Uncaught exception 'DocuSign\eSign\ApiException' with message '[401] Error connecting to the API (https://www.docusign.net/restapi/v2/accounts/8159635/envelopes)' in ......
I haven't experienced any problems with the developer account and I my implementation was approved by dicusign and the integration key was assigned to the official account.
I'm using the following PHP implementation - https://github.com/docusign/docusign-php-client
I changed the host in the code from "https://demo.docusign.net/restapi" to "https://www.docusign.net/restapi"
Any help will be really appreciated! Thank you in advance!
Looks like you're calling the wrong endpoint; try na3.docusign.net/restapi/v2/...

Getting 500 Internal Server Error with Stripe

I am trying to implement basic functionality of the Stripe API, I get 500 Internal Server Error for some reason when I require the Stripe.php file that you have to require...When I comment the require out the error goes away but obviously I can not use the API then..
Basic require...shows error in the Modal Log
require_once('/php/Stripe.php');
I checked the server error and it gave me this back
Fatal error: Uncaught exception 'Exception' with message 'Stripe needs the Multibyte String PHP extension.' in /php/Stripe.php:13 Stack trace: #0 /home/stripepost.php(4): require_once() #1 {main} thrown in /php/Stripe.php on line 13
This all comes from just requiring the file..
Is your 'Stripe.php' file really located in '/php' or is it in a folder called 'php' local to your code?
Current code:
require_once('/php/Stripe.php');
I think the problem is this. You probably mean to use something relative to your code base. Like this:
require_once('./php/Stripe.php');
I found out the answer I didn't have the mbstring enabled on my server...whooops

Fatal error while executing cron job in Google AppEngine

I want to execute a cron job in GAE but i got this error.I want to use app engine services without logging in to my email.
PHP Fatal error: Uncaught exception 'Google_AuthException' with message 'Could not json decode the token' in /base/data/home/apps/s~gcdc2013-cloud-daybook/1.371004284914522718/google-api-php-client/src/auth/Google_OAuth2.php:162
Stack trace:
#0 /base/data/home/apps/s~gcdc2013-cloud-daybook/1.371004284914522718/google-api-php-client/src/Google_Client.php(170): Google_OAuth2->setAccessToken(NULL)
Does it work when you're not running it from cron?
It looks like your either missing the service account key, or you're not loading it properly.

Google CurlIO client requires the CURL PHP extension (Google Calendar API)

I am new to using google calendar api and I need help with this issue. I worked on a php code, let us call this cal.php, and I opened it up on my website. On my website, I get this error, Fatal error: Uncaught exception 'Exception' with message 'Google CurlIO client requires the CURL PHP extension' in my directory.
To fix this issue, I downloaded curl and in my command line, when I type 'curl', I don't get an error message. However, the problem occurs when I ssh into my website and try typing in the word curl. I get this message curl: command not found. I tried putting my curl.exe and libssh2.dll in my website directory but that didn't work out. Any help is appreciated.
I have a windows 8 and I have php but I use iis 8.
Have you checked the php.ini file - make sure there is not a semi colon before the following line.
extension=php_curl.dll

Got an error when i tried to login a website using facebook id

Getting this error when I try to login using facebook id
Uncaught exception 'Exception' with message 'Facebook needs the CURL
PHP extension.'
How can I solve this?
You don't have CURL installed or it is deactivated on your server.
do phpinfo(); to see the if is installed.
your server don't have Curl extension installed
.

Categories