After install or after running drush cr I get 2 errors:

Notice: Undefined variable: events in Drupal\quick_node_clone\EventSubscriber\AddressEventSubscriber::getSubscribedEvents() (line 20 of /app/web/modules/contrib/quick_node_clone/src/EventSubscriber/AddressEventSubscriber.php)

and

Warning: Invalid argument supplied for foreach() in Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass->process() (line 37 of /app/web/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php)

Comments

robbdavis created an issue. See original summary.

robbdavis’s picture

This is happening because I don't have the address module installed.

There needs to be a check to see if the module exists/is installed before running AddressEventSubscriber.php

I'm just not sure how to do that.

In the meantime, commenting out quick_node_clone.address_event_subscriber in the .services.yml file makes this go away.

jproctor’s picture

I think this is fixed in dev; see #2960914: Error: Uncaught Error: Class 'Drupal\address\Event\AddressEvents' not found. Possibly a 1.11 release wouldn’t be a bad idea.

eli-t’s picture

Yep, looks like a dupe of the issue referenced in #3. +1 for a new release to cut down on noise on the command line.

Anonymous’s picture

Status: Active » Closed (duplicate)

New release has been done