Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
royallife88 opened this issue Sep 14, 2021 · 2 comments
Closed

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

royallife88 opened this issue Sep 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@royallife88
Copy link

royallife88 commented Sep 14, 2021

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
Copy link
Contributor

Hi @royallife88,

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

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

@hailwood hailwood added the bug Something isn't working label Sep 14, 2021
@hailwood hailwood changed the title Call to undefined function GuzzleHttp\Psr7\uri_for()[BUG] Call to undefined function GuzzleHttp\Psr7\build_query() Sep 14, 2021
@hailwood hailwood pinned this issue Sep 14, 2021
@royallife88
Copy link
Author

Thank you sir, it worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants