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
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);
}
@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.
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
To solve that it needs to be changed to the next one: