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

Php 8.2 Compatibility

Open fooman opened this issue 2 years ago • 7 comments

Preconditions

  1. php 8.2
  2. Magento 2.4.6

Steps to reproduce

  1. install data migration tool
  2. run Magento compilation: bin/magento setup:di:compile

Expected result

  1. no error

Actual result

In ErrorHandler.php line 62:

Deprecated Functionality: Creation of dynamic property Migration\Logger\FileHandler::$filesystem is deprecated in /var/www/vendor/magento/data-migration-tool/src/Migration/Logger/FileHandler.php on line 50

Additional notes

fooman avatar Mar 14 '23 23:03 fooman

Hi @fooman. 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 Mar 14 '23 23:03 m2-assistant[bot]

I had the same problem and hot fix it on my side (by declaring these missing properties) There are also issue when launching php bin/magento migrate:data

  • Deprecated Functionality: Creation of dynamic property Migration\Step\Eav\Helper::$source is deprecated in data-migration-tool/src/Migration/Step/Eav/Helper.php on line 68
  • Deprecated Functionality: Creation of dynamic property Migration\Step\Customer\Model\SourceRecordsCounter::$entityTypeCode is deprecated in /data-migration-tool/src/Migration/Step/Customer/Model/SourceRecordsCounter.php on line 48

oceane410 avatar Mar 31 '23 09:03 oceane410

php bin/magento migrate:data -a app/code/Vendor/Migration/etc/opensource-to-opensource/1.9.4.0/config.xml

Screenshot_5

mustafaslk avatar Apr 13 '23 13:04 mustafaslk

@magento I am working on this

Created a PR for this: https://github.com/magento/data-migration-tool/pull/917. In the meantime you can use this as a patch: https://patch-diff.githubusercontent.com/raw/magento/data-migration-tool/pull/917.patch

jesse-deboer avatar Apr 24 '23 15:04 jesse-deboer

Hi @jesse-deboer! :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 Apr 24 '23 15:04 m2-assistant[bot]

@victor-v-rad is it possible to merge this one to also give support for PHP 8.2?

jesse-deboer avatar May 03 '23 08:05 jesse-deboer

Hi,

I am getting the same error on M 246 PHP 8.2

Deprecated Functionality: Creation of dynamic property Migration\Logger\FileHandler::$filesystem is deprecated

added protected $filesystem; and it fixed it

deemantha22 avatar May 15 '23 15:05 deemantha22