Error: Non-static method MigrationBase::saveMessage() cannot be called statically

Created on 6 March 2023, over 1 year ago
Updated 27 April 2023, about 1 year ago

Problem/Motivation

This issue seems only affects migration that calls watchdog during import. In our case, we implemented Migration::preImport and Migration::postImport which calls watchdog to log information for migration, e.g start time/end time, etc.

Error: Non-static method MigrationBase::saveMessage() cannot be called statically in MigrateSQLMap->saveMessage() (line 488 of /path-to/contrib/migrate/plugins/sources/sqlmap.inc).

Steps to reproduce

* Add watchdog on Migration::preImport. Which will trigger calls to migrate_watchdog.

πŸ› Bug report
Status

Fixed

Version

2.12

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States xlin1003

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024