magento / data-migration-tool

Magento Data Migration Tool
https://devdocs.magento.com/guides/v2.3/migration/bk-migration-guide.html
Open Software License 3.0
334 stars 200 forks source link

In ErrorHandler.php line 62: Deprecated Functionality: substr(): #904

Closed dlabsnl closed 1 year ago

dlabsnl commented 1 year ago

Preconditions

  1. Version 1.9.3.9 PHP: 5.6.400
  2. Version 2.4.5 PHP: 8.1.11
  3. Composer 2.4.2

Steps to reproduce

  1. bin/magento migrate:data
  2. bin/magento migrate:settings

Expected result

  1. Migration completed

Actual result

  1. In ErrorHandler.php line 62: Deprecated Functionality: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /vendor/magento/data-migration-tool/src/Migration/Handler/SetValue.php on line 35

mistlampen migratie fout

Additional notes

m2-assistant[bot] commented 1 year ago

Hi @dlabsnl. 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] commented 1 year ago

Hi @dlabsnl! :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.

dlabsnl commented 1 year ago

So for everyone who has the error just change the function on the file to:

public function __construct($value) { $this->value = (strtoupper($value) === 'NULL') ? '' : $value; }