diff -u b/core/includes/install.core.inc b/core/includes/install.core.inc --- b/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -554,6 +554,7 @@ * HTML output from the last completed task. */ function install_run_tasks(&$install_state, callable $callback = NULL) { + drupal_check_cookie(); do { // Obtain a list of tasks to perform. The list of tasks itself can be // dynamic (e.g., some might be defined by the installation profile, @@ -561,7 +562,6 @@ * HTML output from the last completed task. */ function install_run_tasks(&$install_state, callable $callback = NULL) { - drupal_check_cookie(); do { // Obtain a list of tasks to perform. The list of tasks itself can be // dynamic (e.g., some might be defined by the installation profile, @@ -2461,5 +2461,6 @@ $domain = ini_get('session.cookie_domain') ? ltrim(ini_get('session.cookie_domain'), '.') : $_SERVER['HTTP_HOST']; $message = t('It seems your browser does not accept cookies. To set up this site, you need to accept cookies from this domain %domain.', array('%domain' => $domain)); - drupal_set_message($message, 'error'); + $messenger = \Drupal::messenger(); + $messenger->addMessage($message); } }