Warning when doing the update of the database on Drupal 8.6 using Drush
[warning] session_id(): Cannot change session id when headers already sent AbstractProxy.php:94
is it a problem ?
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | webform update.png | 317.18 KB | lomale@bluewin.ch |
| Capture d’écran de 2018-09-06 06-38-39.png | 177.96 KB | zenimagine | |
| Capture d’écran de 2018-09-06 06-38-20.png | 173.1 KB | zenimagine |
Comments
Comment #2
volegerThanks for the feedback.
Please, provide more info regarding PHP version.
Comment #3
volegerRemove not related issue
Comment #4
alexpottAs a warning it should not have broken anything. Can @zenimagine provide more information about how the update was performed for example:
Comment #5
alexpottAh looking at the screenshots Drush is being used. We tackled something similar before in #2901753: [PHP 7.2] DrupalKernel.php: ini_set(): Headers already sent. The question is why is this being invoked from the CLI.
Comment #6
zenimagine commentedI'm using PHP 7.2 and I'm doing the update with Composer and Drush
Comment #7
alexpott@zenimagine I've done the update with only Drupal core standard profile and Drush on PHP 7.2 and I don't get the error. Maybe some module you have is causing this. What version of Drush are you using? I'm on 9.4.0
Comment #8
zenimagine commented@alexpott
I have version 9.0.0-beta3 of drush
Comment #9
alexpottSo yep this has been fixed in Drush 9.4.0. It does not happen with that version but does with 9.0.0-beta3. Confirmed by testing locally and seeing the exact same warning. I don't see the warning with the currently support version of Drush.
Comment #10
zenimagine commentedOk thanks, how to put drush up to date ?
Comment #11
charlie59 commentedStill getting this error with Drush 10
Comment #12
seppe beelprez commentedJust like #11, I'm receiving this error too:
PHP 7.3.13
Drush 10.2
UPDATE:
looks like I didn't end my php tag in an empty .module file
Comment #13
pcate commentedI ran into this same error. The caused turned out to be an empty blank line accidentally inserted before the <?php tag in one of our settings files.
Comment #14
anthony.bouch commented@PCate thank you! After an accidental edit to a .module file we hit this - there was a space above the <?php tag.
Comment #15
tlthades commentedDrupal 8.9.1, Drush 10.2.2
Also encountered an error
[warning] session_id(): Cannot change session id when headers already sent AbstractProxy.php:94In my custom module there was a space at the very beginning before
<?php. After deleting the empty line, the notification disappeared. Thank!Comment #16
lomale@bluewin.ch commentedHi it's me
MY error was the same under Drupal Drupal 8.9.3, Drush 8.1.15 PHP 7.2
[warning] session_id(): Cannot change session id when headers already sent AbstractProxy.php:94
See Picture - I updated the webform module.
there was a space above the <?php tag.
In my custom module there was a space at the very beginning before <?php. After deleting the empty line,
can someone tell me what I should do. (which module ?? and where ??)
Thanks Lothar