data-migration-tool icon indicating copy to clipboard operation
data-migration-tool copied to clipboard

2.4.4 not compatible with php 8.1?

Open rbrown opened this issue 2 years ago • 10 comments

Sorry, I can't see anywhere mentioning whether this is compatible with 8.1, but after upgrading form 2.4.3, running bin/magento returns

bin/magento setup:upgrade
PHP Fatal error:  During inheritance of Iterator: Uncaught Exception: Deprecated Functionality: Return type of Migration\ResourceModel\AbstractCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /magento2/vendor/magento/data-migration-tool/src/Migration/ResourceModel/AbstractCollection.php on line 35 in /magento2/vendor/magento/framework/App/ErrorHandler.php:61

I don't think it's a caching error, https://github.com/magento/data-migration-tool/blob/2.4-develop/src/Migration/ResourceModel/AbstractCollection.php is not specifying the return type?

rbrown avatar Apr 13 '22 22:04 rbrown

Hi @rbrown. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Apr 13 '22 22:04 m2-assistant[bot]

It seems like the data-migration-tool should use attributes for places like in the magento2 repository

DmitryFurs avatar Apr 14 '22 07:04 DmitryFurs

@rbrown the issue fixed in 2.4-develop Please install DMT from that branch or use php 7.4 as a workaround while migration

victor-v-rad avatar Apr 15 '22 20:04 victor-v-rad

Please fix ASAP for 2.4.4, we need to install this on Magento Cloud with php 8.1

andreidragutu avatar May 12 '22 12:05 andreidragutu

Same issue

tschirmer avatar May 17 '22 02:05 tschirmer

@victor-v-rad composer require magento/data-migration-tool:dev-2.4-develop not work.

[InvalidArgumentException] Could not find package magento/data-migration-tool in a version matching "dev-2.4-develop" and a stability matching "dev".

How can i require 2.4-develop ?

thanks in advance

mrrobotisback avatar May 27 '22 08:05 mrrobotisback

Hi, what is the status here? When will a fix be ready for Adobe Commerce 2.4.4?

andreidragutu avatar Jun 20 '22 09:06 andreidragutu

Had the same issue for our client. We applied the PHP 8.1 fixes commit as a patch until it gets released. https://github.com/magento/data-migration-tool/commit/4341f38400d9eec3e502237337337928620a4f0f.patch

vrielsa avatar Jul 01 '22 09:07 vrielsa

@victor-v-rad Is this fixed in 2.4.4-p1 or 2.4.5 release? Thanks!

andreidragutu avatar Aug 24 '22 04:08 andreidragutu

Is any fix available?

frozenpandaman avatar May 09 '24 08:05 frozenpandaman