2017 © Pedro Peláez
 

wordpress-dropin better-wp-db-error

Better WordPress database error handling.

image

devgeniem/better-wp-db-error

Better WordPress database error handling.

  • Tuesday, January 24, 2017
  • by devgeniem
  • Repository
  • 7 Watchers
  • 9 Stars
  • 4,046 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

geniem-github-banner, (*1)

WP Dropin: Better db-error.php

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

This db-error.php dropin enhances default "Database connection error page"., (*3)

  • It gives better connection error debugging for administrator when using wp-cli.
  • It shows nice error message for end users.
  • It returns 503 Service not available status code instead of 200 OK
  • It shows database connection debugging to frontend when WP_DEBUG is used.

Project Goals

The error message page is currently only in Finnish but we have plans for adding other languages as well., (*4)

Installation

You can copy db-error.php to your wp-content folder. Just plug&play., (*5)

OR you can use composer so that you can automatically update it too. Put these in your composer.json:, (*6)

{
    "require": {
        "devgeniem/better-wp-db-error": "^0.1"
    },
    "extra": {
        "dropin-paths": {
            "htdocs/wp-content/": ["type:wordpress-dropin"],
        }
    }
}

Screenshots

Output from terminal:, (*7)

Generated Error output in command line with wp-cli, (*8)

Error Page showed to site visitors: Error page to site visitors (in Finnish), (*9)

Credits

We used alexphelps/server-error-pages as base for this., (*10)

License

GPLv3, (*11)

The Versions

24/01 2017

dev-master

9999999-dev http://geniem.com

Better WordPress database error handling.

  Sources   Download

GPL-3.0+

The Requires

 

wordpress database debug wp page error

24/01 2017

0.1.2

0.1.2.0 http://geniem.com

Better WordPress database error handling.

  Sources   Download

GPL-3.0+

The Requires

 

wordpress database debug wp page error

11/07 2016

0.1.1

0.1.1.0 http://geniem.com

Better WordPress database error handling.

  Sources   Download

GPL-3.0+

The Requires

 

wordpress database debug wp page error

08/07 2016

0.1

0.1.0.0 http://geniem.com

Better WordPress database error handling.

  Sources   Download

GPL-3.0+

The Requires

 

wordpress database debug wp page error