cancel
Showing results for 
Search instead for 
Did you mean: 

CompletedFutureArray

CompletedFutureArray

Hi,

I´ve updated to Magento 2.4.6 a month ago. Today I ran "composer update" and after that when I try to run "bin/magento setup:upgrade" I get following error.

I can´t figure out the cause of this problem. Does anybody have an idea why this happens? And any suggestions on how to fix it?

Thanks for your answers!

 

HP Fatal error:  During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of GuzzleHttp\Ring\Future\CompletedFutureArray:Smiley SurprisedffsetExists($offset) should either be compatible with ArrayAccess:Smiley SurprisedffsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php on line 14 in /vendor/magento/framework/App/ErrorHandler.php:62

Stack trace:

#0 /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php(7): Magento\Framework\App\ErrorHandler->handler(8192, 'Return type of ...', '/Users/andreask...', 14)

#1 /vendor/composer/ClassLoader.php(582): include('/Users/andreask...')

#2 /vendor/composer/ClassLoader.php(433): Composer\Autoload\{closure}('/Users/andreask...')

#3 /vendor/guzzlehttp/ringphp/src/Client/CurlHandler.php(67): Composer\Autoload\ClassLoader->loadClass('GuzzleHttp\\Ring...')

#4 /vendor/guzzlehttp/ringphp/src/Client/Middleware.php(30): GuzzleHttp\Ring\Client\CurlHandler->__invoke(Array)

#5 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(261): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array)

#6 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(238): OpenSearch\Connections\Connection->OpenSearch\Connections\{closure}(Array, Object(OpenSearch\Connections\Connection), Object(OpenSearch\Transport), Array)

#7 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Transport.php(113): OpenSearch\Connections\Connection->performRequest('HEAD', '/', Array, NULL, Array, Object(OpenSearch\Transport))

#8 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Namespaces/BooleanRequestWrapper.php(46): OpenSearch\Transport->performRequest('HEAD', '/', Array, NULL, Array)

#9 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Client.php(824): OpenSearch\Namespaces\BooleanRequestWrapper:Smiley TongueerformRequest(Object(OpenSearch\Endpoints\Ping), Object(OpenSearch\Transport))

#10 /vendor/magento/module-open-search/Model/SearchClient.php(115): OpenSearch\Client->ping(Array)

#11 /vendor/magento/module-open-search/Model/SearchClient.php(128): Magento\OpenSearch\Model\SearchClient->ping()

#12 /vendor/magento/module-open-search/Setup/Validator.php(39): Magento\OpenSearch\Model\SearchClient->testConnection()

#13 /vendor/magento/module-search/Model/SearchEngine/Validator.php(63): Magento\OpenSearch\Setup\Validator->validate()

#14 /setup/src/Magento/Setup/Model/SearchConfig.php(79): Magento\Search\Model\SearchEngine\Validator->validate()

#15 /setup/src/Magento/Setup/Console/Command/UpgradeCommand.php(144): Magento\Setup\Model\SearchConfig->validateSearchEngine()

#16 /vendor/symfony/console/Command/Command.php(298): Magento\Setup\Console\Command\UpgradeCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#17 /vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#18 /vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\UpgradeCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#19 /vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#20 /vendor/symfony/console/Application.php(171): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#21 /bin/magento(23): Symfony\Component\Console\Application->run()

#22 {main} in /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php on line 7



Fatal error: During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of GuzzleHttp\Ring\Future\CompletedFutureArray:Smiley SurprisedffsetExists($offset) should either be compatible with ArrayAccess:Smiley SurprisedffsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php on line 14 in /vendor/magento/framework/App/ErrorHandler.php:62

Stack trace:

#0 /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php(7): Magento\Framework\App\ErrorHandler->handler(8192, 'Return type of ...', '/Users/andreask...', 14)

#1 /vendor/composer/ClassLoader.php(582): include('/Users/andreask...')

#2 /vendor/composer/ClassLoader.php(433): Composer\Autoload\{closure}('/Users/andreask...')

#3 /vendor/guzzlehttp/ringphp/src/Client/CurlHandler.php(67): Composer\Autoload\ClassLoader->loadClass('GuzzleHttp\\Ring...')

#4 /vendor/guzzlehttp/ringphp/src/Client/Middleware.php(30): GuzzleHttp\Ring\Client\CurlHandler->__invoke(Array)

#5 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(261): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array)

#6 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Connections/Connection.php(238): OpenSearch\Connections\Connection->OpenSearch\Connections\{closure}(Array, Object(OpenSearch\Connections\Connection), Object(OpenSearch\Transport), Array)

#7 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Transport.php(113): OpenSearch\Connections\Connection->performRequest('HEAD', '/', Array, NULL, Array, Object(OpenSearch\Transport))

#8 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Namespaces/BooleanRequestWrapper.php(46): OpenSearch\Transport->performRequest('HEAD', '/', Array, NULL, Array)

#9 /vendor/opensearch-project/opensearch-php/src/OpenSearch/Client.php(824): OpenSearch\Namespaces\BooleanRequestWrapper:Smiley TongueerformRequest(Object(OpenSearch\Endpoints\Ping), Object(OpenSearch\Transport))

#10 /vendor/magento/module-open-search/Model/SearchClient.php(115): OpenSearch\Client->ping(Array)

#11 /vendor/magento/module-open-search/Model/SearchClient.php(128): Magento\OpenSearch\Model\SearchClient->ping()

#12 /vendor/magento/module-open-search/Setup/Validator.php(39): Magento\OpenSearch\Model\SearchClient->testConnection()

#13 /vendor/magento/module-search/Model/SearchEngine/Validator.php(63): Magento\OpenSearch\Setup\Validator->validate()

#14 /setup/src/Magento/Setup/Model/SearchConfig.php(79): Magento\Search\Model\SearchEngine\Validator->validate()

#15 /setup/src/Magento/Setup/Console/Command/UpgradeCommand.php(144): Magento\Setup\Model\SearchConfig->validateSearchEngine()

#16 /vendor/symfony/console/Command/Command.php(298): Magento\Setup\Console\Command\UpgradeCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#17 /vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#18 /vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\UpgradeCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#19 /vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#20 /vendor/symfony/console/Application.php(171): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#21 /bin/magento(23): Symfony\Component\Console\Application->run()

#22 {main} in /vendor/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php on line 7
5 REPLIES 5

Re: CompletedFutureArray

Hello @ande85 

 

It appears that you are experiencing an issue with the modules located in the vendor directory. To address this, please consider removing the vendor directory and executing the following command:

 

sudo -H composer self-update

 

Please inform me if this resolves the issue.

Thanks

 

Re: CompletedFutureArray

Hi @magentogra692a ,

Thanks for your reply! I deleted the entire vendor folder and ran the command and it updated composer from verson 2.55 to 2.58. 

But when i run setup:upgrade I still get the same error.

Any other idea on how to locate whats the cause of the error?

Re: CompletedFutureArray

Hello @ande85 

Could you please provide the following information for further assistance:

1. PHP Version
2. Composer Version
3. Could you please attach the composer.json file or the content ?

Additionally, it would be helpful to know the commands you executed after deleting the vendor folder. This will aid in understanding the steps taken to resolve the issue.

Thanks

Re: CompletedFutureArray

The error message indicates that there is a problem with the return type in the CompletedFutureArray.php file of the GuzzleHttp library. It states Pokemon Infinite Fusion Calculator that the offsetExists() function should either be compatible with ArrayAccess's offsetExists(mixed $offset): bool or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice.

Re: CompletedFutureArray

Any idea on how to fix it?