Skip to content

[UX] Installer: more meaningful messages when db connection fails. #2739

@klonos

Description

@klonos

Describe your issue or idea

While setting up a fresh local environment on Windows, I got this error after clicking "Save and continue" at the "Choose language" step of the installer (1st step):

Fatal error: Call to a member function name() on boolean in C:\www\backdrop170\core\includes\install.core.inc on line 984

It turned out that I had not enabled the php_pdo_mysql extension in php.ini, but that error did not help me at all.

Steps to reproduce (if reporting a bug)

I guess try to run the installer with php_pdo_mysql extension disabled.

Actual behavior (if reporting a bug)

The error above.

Expected behavior (if reporting a bug)

A more meaningful error like "Could not establish database connection. php_pdo_mysql extension missing or not enabled`"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions