Migrate 7 to 10 triggers error

Created on 9 December 2024, 9 days ago

Problem/Motivation

When attempting to do migration from Drupal 7 to Drupal 10.3.10, an error is triggered. The error stack is as follows:

TypeError: strlen(): Argument #1 ($string) must be of type string, Drupal\Core\Link given in strlen() (line 395 of /var/www/html/hchs10/core/lib/Drupal/Component/Utility/Unicode.php)
#0 /var/www/html/hchs10/core/lib/Drupal/Component/Utility/Unicode.php(395): strlen()
#1 /var/www/html/hchs10/core/lib/Drupal/Component/Utility/Xss.php(65): Drupal\Component\Utility\Unicode::validateUtf8()
#2 /var/www/html/hchs10/core/lib/Drupal/Component/Utility/Xss.php(123): Drupal\Component\Utility\Xss::filter()
#3 /var/www/html/hchs10/core/lib/Drupal/Core/Ajax/MessageCommand.php(127): Drupal\Component\Utility\Xss::filterAdmin()
#4 /var/www/html/hchs10/core/lib/Drupal/Core/Ajax/AjaxResponse.php(43): Drupal\Core\Ajax\MessageCommand->render()
#5 /var/www/html/hchs10/core/modules/big_pipe/src/Render/BigPipe.php(567): Drupal\Core\Ajax\AjaxResponse->addCommand()
#6 /var/www/html/hchs10/core/modules/big_pipe/src/Render/BigPipe.php(283): Drupal\big_pipe\Render\BigPipe->sendPlaceholders()
#7 /var/www/html/hchs10/core/modules/big_pipe/src/Render/BigPipeResponse.php(113): Drupal\big_pipe\Render\BigPipe->sendContent()
#8 /var/www/html/hchs10/vendor/symfony/http-foundation/Response.php(423): Drupal\big_pipe\Render\BigPipeResponse->sendContent()
#9 /var/www/html/hchs10/index.php(20): Symfony\Component\HttpFoundation\Response->send()
#10 {main}

Steps to reproduce

The migration starts and takes several steps before aborting with a generic 504 error.

There is not enough info in the error stack to know if there are any particular circumstances or inter-module interference that triggers this. I have installed the BibCite module suite to my D10 website, but none of them appear in the error stack, it's all core Drupal code, as far as I can see.

The public and private directories of files have been copied to the target server and the DB connection worked.

The server is running PHP 8.1.27 and 11.2.6-MariaDB.

I used the Migrate UI interface.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component

migration system

Created by

πŸ‡ΊπŸ‡ΈUnited States gaelicmichael

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gaelicmichael
  • Have you gone as far as to reduce the scope of the migration to begin identifying the problem area?

  • πŸ‡ΊπŸ‡ΈUnited States gaelicmichael

    I'm not sure what you mean by "reduce the scope of the migration."

    I am using the Migrate UI dashboard, which attempts a complete migration of all data -- there is no way to migrate selected assets.

    I'm going to clear the DB and attempt again, but I won't install the BibCite modules and see if it makes any difference.

  • I encountered the same issue.
    After investigating, I found that the cms_content_sync β†’ module added a messenger with an array parameter, which caused the error. Please check if any of your modules have a similar issue. I hope this helps.

Production build 0.71.5 2024