I'm using PHP 7.2.0alpha2 where below command doesn't work, but it works in PHP 7.0.20.
And I've the following warnings when installing Drupal from scratch by drush quick-drupal, e.g.
$ drush qd
Project drupal (8.3.6) downloaded to drupal8/quick-drupal-20170812152339/drupal. [success]
Project drupal contains: [success]
- 1 profile: standard
- 14 themes: stark, stable, seven, twig, classy, bartik, testing_multilingual_with_english,
testing_multilingual, testing_missing_dependencies, testing_config_overrides, testing_config_import,
drupal_system_listing_compatible_test, testing, minimal
- 73 modules: workflows, views_ui, views, user, update, tracker, tour, toolbar, text, telephone,
taxonomy, system, syslog, statistics, simpletest, shortcut, serialization, search, rest,
responsive_image, rdf, quickedit, path, page_cache, outside_in, options, node, migrate_drupal_ui,
migrate_drupal, migrate, menu_ui, menu_link_content, locale, link, layout_discovery, language,
inline_form_errors, image, history, help, hal, forum, filter, file, field_ui, field_layout, field,
entity_reference, editor, dynamic_page_cache, dblog, datetime_range, datetime, contextual,
content_translation, content_moderation, contact, config_translation, config, comment, color, ckeditor,
breakpoint, book, block_place, block_content, block, big_pipe, basic_auth, ban, automated_cron,
aggregator, action
You are about to create a drupal8/quick-drupal-20170812152339/drupal/sites/default/settings.php file and CREATE the 'sites/default/files/quick-drupal-20170812152339.sqlite' database. Do you want to continue? (y/n): y
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:971
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:972
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:973
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:976
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:978
PHP Deprecated: assert(): Calling assert() with a string argument is deprecated in drupal8/quick-drupal-20170812152339/drupal/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php on line 151Code:
// Use session cookies, not transparent sessions that puts the session id in
// the query string.
ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '1');
ini_set('session.use_trans_sid', '0');
// Don't send HTTP headers using PHP's session handler.
// Send an empty string to disable the cache limiter.
ini_set('session.cache_limiter', '');
// Use httponly session cookies.
ini_set('session.cookie_httponly', '1');| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 2901753-13.patch | 1.56 KB | alexpott |
| #13 | 12-13-interdiff.txt | 770 bytes | alexpott |
Comments
Comment #2
kenorb commentedComment #3
kenorb commentedComment #4
kenorb commentedComment #5
martin107 commentedI am seeing this too.
For me on drush site-install
Comment #6
jibranCan you please confirm the Drupal version?
As per https://www.drupal.org/core/release-cycle-overview
and then there is #2932574: Indicate Drupal 8.4.x is not compatible with PHP7.2 so if we don't have this issue in 8.5.x then it is a won't fix.
Comment #7
martin107 commentedAh, sorry. I was looking at 8.5.x when I reported #5.
Just to be complete. I can say I saw it this morning.
This line numbers may have drifted - but this is the result of drush site install.
Comment #8
jibranThanks, I think we can call it major if not critical.
Comment #10
vipul tulse commentedMe too also suffering from same issue using Drupal 8.5.0
Starting Drupal installation. This takes a while. Consider using the --notify global option. [ok]
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time DrupalKernel.php:979 [warning]
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time DrupalKernel.php:980 [warning]
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time DrupalKernel.php:981 [warning]
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time DrupalKernel.php:984 [warning]
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time DrupalKernel.php:986 [warning]
Installation complete. [ok]
Congratulations, you installed Drupal!
Comment #11
alexpottThis is happening because we're setting session stuff even where the kernel is being booted from the CLI. You can see the same message if you do:
from CLI with PHP 7.2. Nothing actually breaks so at best this is a normal bug.
Patch attached fixes this. I'm not sure a test is required because well sessions are meaningless in CLI.
Comment #12
alexpottComment #13
alexpottComment needed re-flowing.
Comment #14
andypostI see no reason in test as well
Comment #15
ikit-claw commentedI am running into this error when I try to import a db from a PHP 7.2 site.
Comment #16
alexpott@ikit-claw it's a warning - not an error - disconcerting yes but actually nothing breaks (phew).
Comment #19
catchCommitted/pushed to 8.6.x and cherry-picked to 8.5.x. Thanks!
Comment #21
moshe weitzman commentedMaybe this affects someone else .. Beware that although this issue is only a warning, it can cause PHPUnit to fail. I worked around it by using dev-8.5.x from composer.
Comment #22
zterry95 commentedCheck if the disk is full.
In our case, this is caused by disk full. clean up files resolved the problem.