Skip to content

Add option to email any critical error message to an admin #4986

Closed
@Jimmi08

Description

@Jimmi08

Motivation

The troubles of the hosting provider is without your control. In my case, the database server was out for some time and users saw an English message about a critical error with advice to check the configuration file. But it wasn't true, the configuration file was correct.

Proposed Solution

  • if there is a live site - no debug, developer mode, not localhost or something like that, display the user some nice message about troubles on site, we are working on it
  • replace file name e107_config.php similar way as other error strings - your configuration file - a person that is able to fix this knows the file name of the config file
  • don't display the database name in the error message on the live site
  • improve message look
  • translate messages (those from lan_error.php) - site language should be cached in a file (so available without database connection)
  • add main admin notification if site is down because this issue

Additional Context

It looks like this now:
image

At least this is helping:
image

It would be nice to update the legacy code too. My editor is telling me this and I really don't know if they are false errors or how it is possible that it is workin
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementAn improvement or new feature request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions