[Resolvido] Incompatibilidade com pacote GuzzleHttp da SDK Gerencianet

Este tópico contém resposta, possui 2 vozes e foi atualizado pela última vez por  Mauricio 1 semana, 3 dias atrás.

  • Autor
    Posts
  • #10987

    Alisson Melo
    Participante

    Instalei https no meu domínio que está o WHMCS e atualizei o WHMCS para o 7.5.2 e configurei no WHMCS para acessar com https e desde então o retorno automático não funciona mais. Não sei se é pq da atualização de um dos 2 ou dos 2.

    O PHP é 7.1, segue o erro que o cron retorna:

    <h1>Oops!</h1>
    <h2>Something went wrong and we couldn’t process your request.</h2>
    <p>Please go back to the previous page and try again.</p>
    <p class=”debug”>TypeError: Argument 1 passed to GuzzleHttp\Ring\Client\StreamHandler::__invoke() must be of the type array, object given, called in /home/wwwtudob/public_html/financeiro/modules/gateways/gofasgerencianetboleto/sdk/vendor/guzzlehttp/guzzle/src/Client.php on line 277 and defined in /home/wwwtudob/public_html/financeiro/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php:26<br />
    Stack trace:<br />
    #0 /home/wwwtudob/public_html/financeiro/modules/gateways/gofasgerencianetboleto/sdk/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\Ring\Client\StreamHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)<br />
    #1 /home/wwwtudob/public_html/financeiro/modules/gateways/gofasgerencianetboleto/sdk/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)<br />
    #2 /home/wwwtudob/public_html/financeiro/modules/gateways/gofasgerencianetboleto/sdk/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync(‘get’, Object(GuzzleHttp\Psr7\Uri), Array)<br />
    #3 /home/wwwtudob/public_html/financeiro/modules/gateways/gofasgerencianetboleto/sdk/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request(‘get’, ‘https://pki.whm…’, Array)<br />
    #4 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): GuzzleHttp\Client->__call(‘get’, Array)<br />
    #5 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getUrl(‘https://pki.whm…’)<br />
    #6 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getPathFromKeyserver(‘certs.json’)<br />
    #7 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getCertMetadata()<br />
    #8 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->reloadCrls()<br />
    #9 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getCrlForCertificate(Object(WHMCS\Installer\Composer\Certificate))<br />
    #10 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->validateCertificateNotRevoked(Object(WHMCS\Installer\Composer\Certificate))<br />
    #11 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getTrustedCertificate(‘515FCBEB9958DA4…’, 2)<br />
    #12 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->validateCertificateSignatureIsTrusted(Object(WHMCS\Installer\Composer\Certificate))<br />
    #13 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/CertificateManager.php(0): WHMCS\Installer\Composer\CertificateManager->getTrustedCertificate(‘0C12A820D7DD9ED…’, 1)<br />
    #14 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/PackagesFile.php(0): WHMCS\Installer\Composer\CertificateManager->getValidCodeSigningCertificateContent(‘0C12A820D7DD9ED…’)<br />
    #15 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/WhmcsRepository.php(0): WHMCS\Installer\Composer\PackagesFile->validateNotificationSignatures(Array)<br />
    #16 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php(462): WHMCS\Installer\Composer\WhmcsRepository->fetchFile(‘https://release…’, ‘UpdatePackagesD…’)<br />
    #17 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php(256): Composer\Repository\ComposerRepository->loadRootServerFile()<br />
    #18 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/DependencyResolver/Pool.php(99): Composer\Repository\ComposerRepository->hasProviders()<br />
    #19 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Installer.php(402): Composer\DependencyResolver\Pool->addRepository(Object(WHMCS\Installer\Composer\WhmcsRepository), Array)<br />
    #20 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Installer.php(228): Composer\Installer->doInstall(Object(Composer\Repository\InstalledArrayRepository), Object(Composer\Repository\CompositeRepository), Object(Composer\Repository\PlatformRepository), Array, false)<br />
    #21 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Command/UpdateCommand.php(173): Composer\Installer->run()<br />
    #22 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Command/Command.php(259): Composer\Command\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #23 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #24 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/WhmcsComposerApplication.php(0): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\UpdateCommand), Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #25 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Application.php(192): WHMCS\Installer\Composer\WhmcsComposerApplication->doRunCommand(Object(Composer\Command\UpdateCommand), Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #26 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Console/Application.php(189): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #27 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Application.php(123): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #28 /home/wwwtudob/public_html/financeiro/vendor/composer/composer/src/Composer/Console/Application.php(99): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #29 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerWrapper.php(0): Composer\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(WHMCS\Installer\Composer\MonologBufferedOutputWrapper))<br />
    #30 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerWrapper.php(0): WHMCS\Installer\Composer\ComposerWrapper->update()<br />
    #31 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php(0): WHMCS\Installer\Composer\ComposerWrapper->getLatestVersion()<br />
    #32 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php(0): WHMCS\Installer\Composer\ComposerUpdate->WHMCS\Installer\Composer\{closure}()<br />
    #33 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/ComposerUpdate.php(0): WHMCS\Installer\Composer\ComposerUpdate->doComposerCommand(Object(Closure))<br />
    #34 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Installer/Update/Updater.php(0): WHMCS\Installer\Composer\ComposerUpdate->getLatestVersion(true)<br />
    #35 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Cron/Task/CheckForWhmcsUpdate.php(0): WHMCS\Installer\Update\Updater->fetchComposerLatestVersion()<br />
    #36 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Cron\Task\CheckForWhmcsUpdate->__invoke()<br />
    #37 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute()<br />
    #38 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run()<br />
    #39 /home/wwwtudob/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection(Object(WHMCS\Scheduling\Task\Collection))<br />
    #40 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Command/Command.php(259): WHMCS\Cron\Console\Command\AbstractCronCommand->execute(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
    #41 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
    #42 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(WHMCS\Cron\Console\Command\AllCommand), Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
    #43 /home/wwwtudob/public_html/financeiro/vendor/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
    #44 /home/wwwtudob/public_html/financeiro/crons/cron.php(0): Symfony\Component\Console\Application->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
    #45 {main}</p></div>

  • #11532

    Mauricio
    Participante

    O erro está relacionado à versão do PHP X versão da SDK Gerencianet (pacote desenvolvido pela GN que acompanha o módulo), uma forma de de resolver é atualizando a versão do PHP para 7.0 ou 7.2.

Você deve fazer login para responder a este tópico.