Skip to content

Fix error when consulting import logs

Florent requested to merge fflorent/Omeka-S-module-BulkImport:master into master

Error: "ERR (3): TypeError: preg_replace(): Argument #3 (closed) ($subject) must be of type array|string, int given"

Step to reproduce

Simply try to consult the logs of an import (/admin/bulk/import/<importID>/logs),

Fix

I simply cast Logger::NOTICE to a string so preg_replace can work.

Workaround

Until a fix is available, the users can add ?severity=7 (or any severity level) to the URL.

Merge request reports