We have a couple of migrations running on a website. After the latest linkchecker updates, these migrations are crashing when there are no migration tags defined in the migration configuration.

We get the following error:
[error] TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 255 of /app/www/modules/contrib/linkchecker/linkchecker.module) #0 /app/www/modules/contrib/linkchecker/linkchecker.module(255): in_array('linkchecker', NULL)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kensae created an issue. See original summary.

kensae’s picture

Status: Active » Needs review
kensae’s picture

Issue summary: View changes

eiriksm made their first commit to this issue’s fork.

  • eiriksm committed 4820785 on 8.x-1.x authored by kensae
    Issue #3272881 by kensae: Linkchecker causes migration to crash when no...
eiriksm’s picture

Status: Needs review » Fixed

Ouch, that's too bad.

And what an annoying return value for that method 😜

Thanks, will publish a new beta with this fix

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.