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

main.CRITICAL: Error: Call to undefined function GuzzleHttp\Promise\unwrap() in /vendor/theiconic/php-ga-measurement-protocol/src/Network/HttpClient.php:51 #114

Open
ant0x64 opened this issue Sep 25, 2023 · 2 comments

Comments

@ant0x64
Copy link

ant0x64 commented Sep 25, 2023

After upgrading Magento to version 2.4.6 with Guzzle 7.8.0, the following line contains an undefined function.

main.CRITICAL: Error: Call to undefined function GuzzleHttp\Promise\unwrap() in /vendor/theiconic/php-ga-measurement-protocol/src/Network/HttpClient.php:51

    public function __destruct()
    {
        Promise\Utils::unwrap(self::$promises);
    }

To solve that it needs to be changed to the next one:

    public function __destruct()
    {
        Promise\Utils::unwrap(self::$promises);
    }
ant0x64 added a commit to ant0x64/php-ga-measurement-protocol that referenced this issue Sep 25, 2023
@TheLevti
Copy link

@antondkv could you provide a pull request so the maintainers can prio this? Its causing a lot of errors lately. Would be nice if a fix is getting released asap.

TheLevti added a commit to bitpanda-labs/php-ga-measurement-protocol that referenced this issue Sep 28, 2023
Fix issue theiconic#114: GuzzleHttp compatibility
@Preen
Copy link

Preen commented Oct 25, 2023

+1

pavelmaca added a commit to pavelmaca/php-ga-measurement-protocol that referenced this issue Jul 1, 2024
Fix issue theiconic#114: GuzzleHttp compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants