Jump to content

how to include my sdk vendor autoload.php

Recommended Posts

i create module,have sdk use composer get it.so i use the code include

require_once(dirname(__FILE__) . '/libraries/vendor/autoload.php');


when i view the moduel config page,i get the error:

FatalThrowableError in E:\wamp64\www\ps17\modules\etwechat\libraries\vendor\guzzlehttp\guzzle\src\Client.php line 128:
Type error: Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given, called in E:\wamp64\www\ps17\modules\etwechat\libraries\vendor\guzzlehttp\guzzle\src\Client.php on line 89
in E:\wamp64\www\ps17\modules\etwechat\libraries\vendor\guzzlehttp\guzzle\src\Client.php line 128
at Client->request('setDefaultOption', 'verify', 'E:\wamp64\www\ps17/app/cache/dev\cacert.pem') in Client.php line 89
at Client->__call('setDefaultOption', array('verify', 'E:\wamp64\www\ps17/app/cache/dev\cacert.pem')) in ApiClient.php line 64
at ApiClient->setSslVerification('E:\wamp64\www\ps17/app/cache/dev\cacert.pem') in ModuleManagerBuilder.php line 165
at ModuleManagerBuilder->__construct() in ModuleManagerBuilder.php line 74
at ModuleManagerBuilder::getInstance() in AdminModulesController.php line 1141
at AdminModulesControllerCore->postProcess() in Controller.php line 194
at ControllerCore->run() in Dispatcher.php line 379
at DispatcherCore->dispatch() in index.php line 95


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More