Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The task is not valid
This message tells us nothing about what is going on. I am encountering it while using drush hostmaster-migrate command. It is blocking upgrading, but I figured I might as well patch this message to give more details.
Comments
Comment #3
Jon Pugh- drush_set_error('HOSTING_INVALID_TASK', t("This task is not valid"));
+ drush_set_error('HOSTING_INVALID_TASK', t("Could not find or create a '!type' task for hosting context '!context'.", array(
+ '!type' => $type,
+ '!context' => $id,
+ )));
This now tells us the type of task that is being attempted and the context name.
Comment #4
colanYay!
Comment #5
colanActually, this is already committed.