Error: Uncaught Error: Undefined constant "DRUSH_BOOTSTRAP_FULL

Created on 4 July 2024, 6 months ago

Problem/Motivation

When using Drush for example to do a drush updatedb, I get the following error:

PHP Fatal error: Uncaught Error: Undefined constant "DRUSH_BOOTSTRAP_FULL" in /var/www/html/sites/all/modules/contrib/jquerymobile/drush/jquerymobile.drush.inc:31
Stack trace:
#0 phar:///usr/local/bin/drush/includes/command.inc(1102): jquerymobile_drush_command()
#1 phar:///usr/local/bin/drush/commands/core/topic.drush.inc(38): drush_get_commands()
#2 phar:///usr/local/bin/drush/includes/command.inc(1508): topic_drush_help_alter()
#3 phar:///usr/local/bin/drush/includes/command.inc(709): drush_command_invoke_all_ref()
#4 phar:///usr/local/bin/drush/includes/command.inc(602): _drush_get_command_options()
#5 phar:///usr/local/bin/drush/includes/command.inc(177): _drush_verify_cli_options()
#6 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch()
#7 phar:///usr/local/bin/drush/includes/preflight.inc(67): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#8 phar:///usr/local/bin/drush/includes/startup.inc(465): drush_main()
#9 phar:///usr/local/bin/drush/includes/startup.inc(369): drush_run_main()
#10 phar:///usr/local/bin/drush/drush(114): drush_startup()
#11 /usr/local/bin/drush(10): require('...')
#12 {main}
thrown in /var/www/html/sites/all/modules/contrib/jquerymobile/drush/jquerymobile.drush.inc on line 31
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Uncaught Error: Undefined constant "DRUSH_BOOTSTRAP_FULL" in /var/www/html/sites/all/modules/contrib/jquerymobile/drush/jquerymobile.drush.inc:31
Stack trace:
#0 phar:///usr/local/bin/drush/includes/command.inc(1102): jquerymobile_drush_command()
#1 phar:///usr/local/bin/drush/commands/core/topic.drush.inc(38): drush_get_commands()
#2 phar:///usr/local/bin/drush/includes/command.inc(1508): topic_drush_help_alter()
#3 phar:///usr/local/bin/drush/includes/command.inc(709): drush_command_invoke_all_ref()
#4 phar:///usr/local/bin/drush/includes/command.inc(602): _drush_get_command_options()
#5 phar:///usr/local/bin/drush/includes/command.inc(177): _drush_verify_cli_options()
#6 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch()
#7 phar:///usr/local/bin/drush/includes/preflight.inc(67): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#8 phar:///usr/local/bin/drush/includes/startup.inc(465): drush_main()
#9 phar:///usr/local/bin/drush/includes/startup.inc(369): drush_run_main()
#10 phar:///usr/local/bin/drush/drush(114): drush_startup()
#11 /usr/local/bin/drush(10): require('...')
#12 {main}
thrown in /var/www/html/sites/all/modules/contrib/jquerymobile/drush/jquerymobile.drush.inc, line 31

Steps to reproduce

Have 7.x-2.0-beta1+7-dev installed for Drupal 7 along with Drush. Run the drush command drush updatedb.

Proposed resolution

Edit /var/www/html/sites/all/modules/contrib/jquerymobile/drush/jquerymobile.drush.inc and on line 31, change DRUSH_BOOTSTRAP_FULL to DRUSH_BOOTSTRAP_DRUPAL_FULL

Remaining tasks

  • Create a patch file

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Component

Code

Created by

🇯🇲Jamaica axle_foley00

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

Comments & Activities

Production build 0.71.5 2024