Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When database connection fails, display a useful and clean page to user #5400

Closed
mattab opened this issue Jul 2, 2014 · 2 comments
Closed
Assignees
Labels
Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Jul 2, 2014

Currently when the database connection cannot be established, the following message is displayed:

The Piwik configuration file couldn't be found and you are trying to access a Piwik page.
You can install Piwik now
If you installed Piwik before and have some tables in your DB, don't worry, you can reuse the same tables and keep your existing data!

This was a regression introduced in 2.3.0.

The goal of this ticket is to provide all Piwik users a pleasant experience in the tragic time where Piwik instance doesnt' work as expected.

Tasks

  • When DB connection fails display a simple error page with function Piwik_ExitWithMessage and showing info such as:
    • Error msg from Mysql eg. "SQLSTATE[2003 Can't connect to MySQL server on 'analytics.db.company.net' (111)"
    • "It may have been a temporary issue, try <a>refresh the page</a>"
    • "If the problem persists please contact your Piwik administrator."
  • Add screenshot test for "failed database connection" to check we don't regress
@diosmosis
Copy link
Member

In 080829b: Fixes #5400, display useful error message when a database connection cannot be achieved. Deprecating Config.badConfigurationFile event.

@diosmosis
Copy link
Member

In 412dc71: Refs #5400, fixing UI tests and regression in Installation process.

@mattab mattab added this to the 2.5.0 - Piwik 2.5.0 milestone Jul 8, 2014
diosmosis pushed a commit that referenced this issue Jul 9, 2014
…cannot be achieved. Deprecating Config.badConfigurationFile event.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

2 participants