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

Error Call to undefined function GuzzleHttp\Psr7\parse_query() #3

Closed
w3spi5 opened this issue Jan 2, 2024 · 1 comment
Closed

Error Call to undefined function GuzzleHttp\Psr7\parse_query() #3

w3spi5 opened this issue Jan 2, 2024 · 1 comment

Comments

@w3spi5
Copy link

w3spi5 commented Jan 2, 2024

PHP version: 8.1.6
Laravel 10.39.0
cURL version: 8.4.0

Description
While doing a simple search after passed OAuth, and so, being authenticated :

$response = $client->search([
    'q' => 'Meagashira'
]);

It throws an Error "Call to undefined function GuzzleHttp\Psr7\parse_query()".

According to my research, I found this issue on GuzzleHTTP :
guzzle/guzzle#2740

Then this PR : guzzle/psr7#345 mentionning "parse_query | Query::parse", I think problem seems to come from guzzle/oauth-subscriber package.

It has been fixed on tag 0.6.0, you can find this below :
https://github.com/guzzle/oauth-subscriber/blob/8d6cab29f8397e5712d00a383eeead36108a3c1f/src/Oauth1.php#L107

I know this is a Guzzle error, but maybe you can force the use of package version 0.6.0 in your dependancies.

@calliostro
Copy link
Owner

Thank you for the investigation. The new version v2.0.4 is now released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants