Doc examples now incorrect

Created on 9 January 2025, 13 days ago

Problem/Motivation

The docs are now inaccurate.

This example command in the docs: `drush dcde node`

Now fails with the error:

[error]  TypeError: Drupal\default_content_deploy\Exporter::setEntityBundle(): Argument #1 ($bundle) must be of type string, null given, called in /app/web/modules/contrib/default_content_deploy/src/Commands/DefaultContentDeployCommands.php on line 133 in Drupal\default_content_deploy\Exporter->setEntityBundle() (line 262 of /app/web/modules/contrib/default_content_deploy/src/Exporter.php) #0 /app/web/modules/contrib/default_content_deploy/src/Commands/DefaultContentDeployCommands.php(133): Drupal\default_content_deploy\Exporter->setEntityBundle(NULL)

Similarly, the command `drush dcde taxonomy_term` will also fail.

Steps to reproduce

Run command:
drush dcde node

Proposed resolution

Update the docs to explain that now the bundle flag is required (even if it is empty).

For example this command works:
drush dcde taxonomy_term --bundle= --folder='../content'

(Sidenote: It appears the folder parameter is now required as well, even if the folder is defined in settings.php)

πŸ› Bug report
Status

Active

Version

2.1

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States jim_b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024