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 anonymous role is redirected to another node. If this "rule" is enabled, drush 4.4 and 4.5 gives me the following error in cli:
% drush pm-list
Drush command terminated abnormally due to an unrecoverable error. [error]
[1] 2945 exit 1 drush pm-list
With debug option:
% drush -d pm-list
Bootstrap to phase 0. [0.03 sec, 1.7 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 1.83 MB] [bootstrap]
Bootstrap to phase 6. [0.1 sec, 5.58 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.1 sec, 5.58 MB] [bootstrap]
Initialized Drupal 7.7 root directory at /var/www/vhost/topicforge.net [0.12 sec, 6.54 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.12 sec, 6.55 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.12 sec, 6.55 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.13 sec, 6.55 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.13 sec, 6.56 MB] [bootstrap]
Successfully connected to the Drupal database. [0.13 sec, 6.56 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.14 sec, 7.05 MB] [bootstrap]
Drush command terminated abnormally due to an unrecoverable error. [0.35 sec, 21.88 MB] [error]
[1] 2966 exit 1 drush -d pm-list
Drupal 7.7 with some other modules. Disabling the module, or not using redirect solves the error.
Comment | File | Size | Author |
---|---|---|---|
#17 | 1285210_d6-2.patch | 937 bytes | thekenshow |
#15 | 1285210_d6.patch | 794 bytes | thekenshow |
#2 | 1285210-2.patch | 746 bytes | anon |
Comments
Comment #1
anonSame issue here!
Comment #2
anonHere is a patch.
It checks if the site is called by php cli (drush), in that case, it will skip everything in the hook_init implementation for this module.
Comment #3
lslinnet CreditAttribution: lslinnet commentedThis works!
Comment #4
anonComment #5
francois o CreditAttribution: francois o commentedWorked for me
Comment #6
logaritmisk CreditAttribution: logaritmisk commentedWorks for me as well
Comment #7
timhilliard CreditAttribution: timhilliard commentedHi guys,
Thanks for raising this issue with me. I will add it in as soon as I can.
Thanks,
Tim
Comment #8
timhilliard CreditAttribution: timhilliard commentedHi guys I've just committed this change to the dev branch of front page module. Please test this so I can release it.
Thanks,
Tim
Comment #9
anonworks like a charm.
Comment #10
Robin van Emden CreditAttribution: Robin van Emden commentedEncountered this issue, latest dev did indeed fix the problem. Encountered no other issues. Reviewed and tested.
Comment #11
timhilliard CreditAttribution: timhilliard commentedHave now released this in latest 7.x-2.x version. Need to roll this into 6.x-2.x version. I should not have to roll it into the 1.x versions as they don't use the hook_init function.
Thanks,
Tim
Comment #13
blackclover CreditAttribution: blackclover commentedSubscribe
Love Frontpage and it's a necessity for my site but I need to run cron every 15 minutes so I can't use poorman's cron.
Drupal 7.10
I updated to the latest 7.x-2.x version and tested but I still get the same issue
If Frontpage is enabled the cron job I set up in Cpanel on my dedicated server /usr/bin/lynx -source http://www.example.com/cron.php?cron_key=xxxxx doesn't run because lynx is redirected to index.php.
If Frontpage is disabled the scheduled Cpanel cron job runs fine.
Comment #14
Simon Georges CreditAttribution: Simon Georges commented@blacklover, your problem seems to be covered by #1620074: redirect breaks cron.
By the way, the issue is now related to 6.x-2.x, so changing version.
Comment #15
thekenshow CreditAttribution: thekenshow commentedThe attached patch works for me on D6, testing for drush_verify_cli() and then using same if it exists.
Comment #16
Simon Georges CreditAttribution: Simon Georges commentedComment #17
thekenshow CreditAttribution: thekenshow commentedAfter an exchange with jonhattan on #drush IRC, the recommended way to test for D6 drush execution is to see if drush_main() exists, period. That confirms both: drush is installed and drupal has bootstrapped under drush. Updated patch attached.
Comment #18
Simon Georges CreditAttribution: Simon Georges commentedCommitted. Thanks!
Comment #20
erickbj CreditAttribution: erickbj commentedI ran into the same issue, downloaded the latest 6.x-2.0-rc1 release and I don't see any checks for drush_main(). Where can I get an updated version with that fix?
Thanks!
Comment #21
Simon Georges CreditAttribution: Simon Georges commentedThe 6.x version is not maintained any more, due to lack of time, so I wouldn't expect a release, but you may eventually checkout the 6.x-2.x branch directly from git or apply the patch from #17 on your code.
Comment #22
Anybody