Repeatable: Always

Steps to repeat:
1. Go to terminal
2. Change to Drupal docroot directory
3. Issue a command such as `drush govdelivery-send topics`

Expected results:
The specified queue is processed and the relevant API commands executed

Actual results:

PHP Fatal error:  Call to undefined function drush_govdelievery_queue_types() in /var/www/food.gov.uk/sites/all/modules/contrib/govdelivery/govdelivery.drush.inc on line 147
PHP Stack trace:
PHP   1. {main}() /usr/share/drush/drush.php:0
PHP   2. drush_main() /usr/share/drush/drush.php:14
PHP   3. _drush_bootstrap_and_dispatch() /usr/share/drush/drush.php:59
PHP   4. drush_dispatch() /usr/share/drush/drush.php:90
PHP   5. call_user_func_array() /usr/share/drush/includes/command.inc:165
PHP   6. drush_command() /usr/share/drush/includes/command.inc:165
PHP   7. _drush_invoke_hooks() /usr/share/drush/includes/command.inc:198
PHP   8. call_user_func_array() /usr/share/drush/includes/command.inc:324
PHP   9. drush_govdelivery_send_queue() /usr/share/drush/includes/command.inc:324
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                               [error]
Error: Call to undefined function drush_govdelievery_queue_types() in /var/www/food.gov.uk/sites/all/modules/contrib/govdelivery/govdelivery.drush.inc, line 147

This is caused by a simple typo in the function drush_govdelivery_send_queue()

Comments

mattfarrow created an issue. See original summary.

mattfarrow’s picture

mattfarrow’s picture

Status: Active » Needs review
mattfarrow’s picture

Assigned: mattfarrow » Unassigned
adam.weingarten’s picture

It looks like there is an additional typo in govdelivery_send_message which prevents queues from being processed.. send_success should be sendsuccess. Attaching an updated patch.

sheldon rampton’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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