theiconic / php-ga-measurement-protocol

Send data to Google Analytics from the server using PHP. Implements GA measurement protocol.
MIT License
655 stars 136 forks source link

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 11 months ago

ant0x64 commented 11 months ago

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);
    }
TheLevti commented 11 months ago

@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.

Preen commented 10 months ago

+1