Skip to content

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

Description

@ant0x64

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions