Messages not displaying at /admin/structure/migrate/manage/%group/migrations/%id/messages

Created on 24 July 2025, 10 days ago

Problem/Motivation

I observed that instead of displaying messages at /admin/structure/migrate/manage/%group/migrations/%id/messages I was seeing errors:

Warning: Undefined property: stdClass::$destId1 in Drupal\migrate_tools\Controller\MessageController->overview() (line 138 of /app/web/modules/contrib/migrate_tools/src/Controller/MessageController.php)

Inspecting the message object, I see that the properties are named sourceid1 not sourceId1. So a very tiny MR :)

Steps to reproduce

- Visit /admin/structure/migrate/manage/%group/migrations/%id/messages
- No messages shown
- Errors shown (if errors displayed)

Proposed resolution

- Check if we need a better way to get the property name
- In my migrate_map tables, the column name is lowercase

CREATE TABLE `migrate_map_dhr_islandora_object_media` (
  `source_ids_hash` varchar(64) NOT NULL COMMENT 'Hash of source ids. Used as primary key',
  `sourceid1` varchar(255) NOT NULL,
  `sourceid2` varchar(255) NOT NULL,
  `destid1` int(10) unsigned DEFAULT NULL,
  `source_row_status` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Indicates current status of the source row',
  `rollback_action` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'Flag indicating what to do for this item on rollback',
  `last_imported` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT 'UNIX timestamp of the last time this row was imported',
  `hash` varchar(64) DEFAULT NULL COMMENT 'Hash of source row data, for detecting changes',
  PRIMARY KEY (`source_ids_hash`),
  KEY `source` (`sourceid1`(191),`sourceid2`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Mappings from source identifier value(s) to destination�'

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇳🇿New Zealand xurizaemon Ōtepoti, Aotearoa 🏝

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

Comments & Activities

Production build 0.71.5 2024