- Issue created by @axle_foley00
- 🇯🇲Jamaica axle_foley00
Uploading patch in case anyone needs to fix this in an old D7 site with this module.
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
Have 7.x-2.0-beta1+7-dev installed for Drupal 7 along with Drush. Run the drush command drush updatedb.
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
N/A
N/A
N/A
Active
Code
Uploading patch in case anyone needs to fix this in an old D7 site with this module.