Warn the user that cookies need to be enabled upon installation

Created on 22 January 2013, over 11 years ago
Updated 26 January 2024, 8 months ago

Problem/Motivation

The installer uses an interactive batch for installation. That only works with a working session, which in turn works by setting a cookie. If you are as paranoid as I am :-) or you forgot to exit private mode, you will try to install Drupal but you will end up with a half installed, unrecoverably (until the DB is emptied again) broken, Drupal. That's not very nice.

Proposed resolution

We already have a built-in step in the installer that checks requirements, so let's add a check that the user has cookies enabled. The only non-trivial part of this is that the test cookie cannot be checked in the same request it is set. I think I've found a fairly (*ducks*) clean way to do this.

Remaining tasks

Review the attached patch.
Tests
Manual testing

User interface changes

No new UI elements. The string(s) introduced here of course need the usual scrutiny.

API changes

None.

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Install 

Last updated 2 days ago

No maintainer
Created by

🇩🇪Germany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024