skip to Main Content

I have a problem with Magento 1.9 when I attach the guzzlehttp library to a call:

$this->client = new GuzzleHttpClient ();
return Mage::log($this->client);

I am getting:

Warning: include(): Failed opening ‘GuzzleHttpClient.php’ for inclusion (include_path=’…’) in /../lib/Varien/Autoload.php on line 94.

Any sugestions?

2

Answers


  1. I guess that you missed to include the autoload file for the GuzzleHttp, GuzzleHttp uses composer to autoload its classes. if using multiple libraries with comoser you should dump-autoload as:

    ->composer dump-autoload
    
    Login or Signup to reply.
  2. Magento 1.x does not use composer for managing its dependancies.

    You’ll have to manually include composer autoload file from your code – include 'vendor/autoload.php'.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search