Problem/Motivation

Trying to use drush to export taxonomy terms fails with the error in the title.

Steps to reproduce

Run drush content_as_config:import taxonomy_term --style=full.

Proposed resolution

See attached patch.

Remaining tasks

Review patch.

Comments

bdimaggio created an issue. See original summary.

bdimaggio’s picture

StatusFileSize
new1.45 KB

The first problem I encountered was that content_as_config_content_as_config_controllers() was, reasonably, looking for a controller called TaaxonomyTermController. In fact, it's TaxonomiesController. Once I fixed that, I found that ContentAsConfigCommands::getController() was passing the value of $this->controllerInfo[$entity_type] to instanceof, which expects a variable rather than a string. Once I created a class instance from that string and threw in an empty() check just to be safe, drush exports ran nicely. (This proved true both for my own case, taxonomy terms, and for #3207282: Drush command missing controller for "block_content" entity type's of block_content.)

  • bdimaggio authored 1e6bfd9 on 1.0.x
    Issue #3240287 by bdimaggio: No registered import/export controller for...
daniel_j’s picture

Status: Active » Fixed

Fixed in release 1.0.3. Thanks!

Status: Fixed » Closed (fixed)

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