Kunal Parekh
Kunal Parekh

Reputation: 380

Class Instantiation Failed Exception and Run time Exception

I downloaded and install the omnipay package on my localhost from (omnipay-nabtransact). It is working fine on localhost but when I installed it on the live server, I am having errors.

The errors are:-

(2/2) ClassInstantiationFailedException Unexpected exception when instantiating class.

and

(1/2) RuntimeException GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.

I am not able to understand what are these errors. When I did the installation on my localhost Laravel FW, it work smoothly. But when I installed it on the live server, I am having trouple fixing it.

Upvotes: 0

Views: 921

Answers (1)

faizan.sh
faizan.sh

Reputation: 537

Install curl as per your version of php

sudo apt-get install php-curl

Then restart apache

sudo service apache2 restart

Upvotes: 2

Related Questions