webfox / laravel-xero-oauth2

A Laravel integration for Xero using the Oauth 2.0 spec
MIT License
50 stars 32 forks source link

Call to undefined function GuzzleHttp\Psr7\build_query() #58

Closed royallife88 closed 3 years ago

royallife88 commented 3 years ago

I am using this package to connecting with Xero API. I installed the app on shared hosting and install the dependencies. When I allow the permission for Xero organization, on redirect, it shows the guzzle relate error. please look at the screenshot below:

To Reproduce Just follow the package readme steps.

Screenshots Screenshot 2021-09-14 154520

I tried the guzzle version 6.5.2, but it also shows the same error for missing uri_for() function. Thank in advance, Regards,

hailwood commented 3 years ago

Hi @royallife88,

The error is actually coming from the Xero library (which we pull in as a dependency). Please see https://github.com/XeroAPI/xero-php-oauth2/issues/240

Looks like the short-term fix is to manually install guzzlehttp/psr7 version ^1.8.

royallife88 commented 3 years ago

Thank you sir, it worked for me.