Getting this error when creating bundles:

Recoverable fatal error: Argument 2 passed to Drupal\features\FeaturesBundle::setAssignmentSettings() must be of the type array, null given, called in /var/workspace/drupal8/modules/features/src/FeaturesBundle.php on line 317 and defined in Drupal\features\FeaturesBundle->setAssignmentSettings() (line 309 of modules/features/src/FeaturesBundle.php).

Not sure what is the best solution, the patch is a workaround that prevents wrong arguments being passed on.

CommentFileSizeAuthor
features-bundle_fatal_error.patch535 bytesJose Reyero
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpotter’s picture

Status: Needs review » Postponed (maintainer needs more info)

Do you still get this on the latest -dev version? I was not able to reproduce it. If you still get it, give the exact steps you are using to create a bundle that causes it to fail.

nedjo’s picture

Status: Postponed (maintainer needs more info) » Active

I'm getting this with the latest code (includes commits from today).

Steps to reproduce:

  • Download and install Drupal 8 Beta 12.
  • Clone Features module 8.x-3.x branch, download Configuration Update Manager, and enable Features UI and dependencies.
  • Navigate to admin/config/development/configuration/features/bundle. Enter "Test" for name and submit the form to create a new bundle.

Result is two messages:

  • Package assignment configuration saved.
  • Error message: Recoverable fatal error: Argument 2 passed to Drupal\features\FeaturesBundle::setAssignmentSettings() must be of the type array, null given, called in /path/to/modules/features/src/FeaturesBundle.php on line 317 and defined in Drupal\features\FeaturesBundle->setAssignmentSettings() (line 309 of modules/features/src/FeaturesBundle.php).
arknoll’s picture

I too am reproducing this error.

mpotter’s picture

Status: Active » Fixed

Committed to 435104b.

  • mpotter committed 435104b on 8.x-3.x authored by Jose Reyero
    Issue #2522910 by Jose Reyero: Fatal Error when creating Bundles:...

Status: Fixed » Closed (fixed)

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