hello,
securepages breakes the drush module http://drupal.org/project/drush with the following error:
user1@machine:~/html/drupal$ sites/all/modules/drush/drush update -l http://example.com -d
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.114 sec] [bootstrap]
Initialized Drupal 6.14 root directory at /home/www/user1/html/drupal [0.154 sec] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.156 sec] [bootstrap]
Initialized Drupal site example.com at sites/example.com [0.201 sec] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.203 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.248 sec] [bootstrap]
Successfully connected to the Drupal database. [0.248 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.279 sec] [bootstrap]
session_start(): Cannot send session cookie - headers already sent by (output started at [warning]
/home/www/user1/html/drupal/sites/all/modules/drush/includes/drush.inc:439) [0.29 sec]
session_start(): Cannot send session cache limiter - headers already sent (output started at [warning]
/home/www/user1/html/drupal/sites/all/modules/drush/includes/drush.inc:439) [0.291 sec]
Cannot modify header information - headers already sent by (output started at [warning]
/home/www/user1/html/drupal/sites/all/modules/drush/includes/drush.inc:439) [0.349 sec]
Cannot modify header information - headers already sent by (output started at [warning]
/home/www/user1/html/drupal/sites/all/modules/drush/includes/drush.inc:439) [0.349 sec]
Cannot modify header information - headers already sent by (output started at [warning]
/home/www/user1/html/drupal/sites/all/modules/drush/includes/drush.inc:439) [0.349 sec]
Cannot modify header information - headers already sent by (output started at [warning]
/home/www/user1/html/drupal/sites/all/modules/drush/includes/drush.inc:439) [0.349 sec]
Drush command could not be completed. [0.635 sec]
deactivating securepages solves this error. It would be nice if this behaviour could will be fixed.
many thanks
best regards
Stefan
Comment | File | Size | Author |
---|---|---|---|
#8 | securepages-drush.patch | 747 bytes | John Bickar |
#2 | securepages-599948.patch | 2.52 KB | jrglasgow |
Comments
Comment #1
catchI can't reproduce this - appears to be working fine with drush locally.
Comment #2
jrglasgow CreditAttribution: jrglasgow commentedI had the same problem, I tracked it down to Secure Pages outputting headers in hook_boot() and hook_init().
In my patch I checked to see if the drush_main() function exists, if so we return at the beginning of the hooks not outputting any headers.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI'll investigate over the weekend.
Best,
Paul Booker
Appcoast
Comment #4
mstef CreditAttribution: mstef commentedI just put the following at the top of hook_init and hook_boot:
Comment #5
gordon CreditAttribution: gordon commentedShouldn't check for for the function drush_main(). Should check to see if php is running in a shell. Much more generic
Same as above.
Use php_sapi_name() instead. will make it much more generic. Will fix for all shell based bootstrapping of Drupal.
Powered by Dreditor.
Comment #6
mstef CreditAttribution: mstef commentedgorden...see #4
Comment #7
gordon CreditAttribution: gordon commentedYes, but I still need a patch.
Comment #8
John Bickar CreditAttribution: John Bickar commentedSubscribing. Patch for solution in #4 attached.
Comment #9
xjmRan into this issue when testing this module. I had to go into admin/build/modules in a browser (gasp!) and uncheck a box (gasp!) to turn the module off so I could use drush.
This patch applies fine and resolves the issue.
Comment #10
BenK CreditAttribution: BenK commentedKeeping track of this thread...
Comment #11
debplatt CreditAttribution: debplatt commentedSubscribing.
Comment #12
christefano CreditAttribution: christefano commented#8 works for me.
Before:
After:
This is critical for me but might not be for others, so feel free to lower priority.
Comment #13
xjmThe issue priorities are all specifically defined:
http://drupal.org/node/45111
Comment #14
christefano CreditAttribution: christefano commentedThanks for pointing out that page. It says:
I guess the word "system" is not defined enough for you? In short, this bug breaks Drush and therefore renders my system unusable. For example, I need to able to use Drush to run cron, perform routine maintenance, etc. and all my shell scripts containing Drush commands come to a halt.
Anyway, I said to feel free to lower the priority but I've changed my mind. If you still feel the same as you do in #13, do what you want.
Comment #15
jamesfk CreditAttribution: jamesfk commentedPatch seems to work for me, but once applied I cannot get into the secure pages settings in a browser.
Has anyone else had this problem, or indeed checked afterwards?
EDIT: Had moved module into a site specific directory too and this was the problem. Patch working fine - thanks guys:)
Comment #16
grendzy CreditAttribution: grendzy commentedCommitted a variation of this to 6.x and CVS HEAD. Thanks!