Steps to reproduce:

  1. Create a Drupal project using BLT (& lightning)
  2. Use composer to require drupal/acquia_contenthub:~2
  3. Attempt to install the base content hub module

It appears that Content Hub is attempting to initiate a content hub creds before Content Hub has been configured. In the process, a null values is passed in for the webhook when the class is expecting an array.

I updated Drupal\acquia_contenthub\EventSubscriber\GetSettings::onGetSettings to pass an empty array for the webhook by default and that seemed to fix the issue.

CommentFileSizeAuthor
#2 3115034-fix-fatal-errors.patch1.07 KBjosh waihi

Comments

Josh Waihi created an issue. See original summary.

josh waihi’s picture

StatusFileSize
new1.07 KB

  • EclipseGc authored a14f999 on 8.x-2.x
    Issue #3115034 by Josh Waihi: TypeError: Argument 7 passed to Acquia\...

scor credited EclipseGc.

scor’s picture

Status: Active » Reviewed & tested by the community

Bug confirmed and patch solves the problem.

amangrover90’s picture

Status: Reviewed & tested by the community » Fixed

Issue fixed.

Status: Fixed » Closed (fixed)

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