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

Errore after installing data migration tool 2.4.8.1

Open matteotestoni opened this issue 6 months ago • 7 comments

Clean install of magento 2.4.8 composer require magento/data-migration-tool:2.4.8.1 php bin/magento setup:upgrade php bin/magento setup:di:compile

In compilation time error:

In ErrorHandler.php line 61:

Deprecated Functionality: Migration\ResourceModel\Record::__construct(): Implicitly marking parameter $document as nullable is deprecated, the explicit nullabl e type must be used instead in /home/dev/www/public_html/vendor/magento/data-migration-tool/src/Migration/ResourceModel/Record.php on line 34

matteotestoni avatar Oct 24 '25 10:10 matteotestoni

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


Join Magento Community Engineering Slack and ask your questions in #github channel.

m2-assistant[bot] avatar Oct 24 '25 10:10 m2-assistant[bot]

@magento I am working on this

matteotestoni avatar Oct 24 '25 11:10 matteotestoni

Hi @matteotestoni! :wave: Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

m2-assistant[bot] avatar Oct 24 '25 11:10 m2-assistant[bot]

@magento add to contributors team

matteotestoni avatar Oct 27 '25 08:10 matteotestoni

Hi @matteotestoni! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.

m2-assistant[bot] avatar Oct 27 '25 08:10 m2-assistant[bot]

Clean install of magento 2.4.8 composer require magento/data-migration-tool:2.4.8.1 php bin/magento setup:upgrade php bin/magento setup:di:compile

In compilation time error:

In ErrorHandler.php line 61:

Deprecated Functionality: Migration\ResourceModel\Record::__construct(): Implicitly marking parameter $document as nullable is deprecated, the explicit nullabl e type must be used instead in /home/dev/www/public_html/vendor/magento/data-migration-tool/src/Migration/ResourceModel/Record.php on line 34

matteotestoni avatar Oct 28 '25 14:10 matteotestoni

Ah yes, the joy of the Magento migration tool, immediately breaking your fresh Magento upon installation...

I've created this patch: php8.4-compatibility.patch

Use the cweagans/composer-patches to apply the patch; place it in the patches/composer/magento/data-migration-tool folder and add something like this in your composer.json:

        "patches": {
            "magento/data-migration-tool": {
                "PHP 8.4 compatibility": "patches/composer/magento/data-migration-tool/php8.4-compatibility.patch"
            }
        }

mlaurense avatar Nov 11 '25 15:11 mlaurense