Skip to content

Instantly share code, notes, and snippets.

@jmarreros
Last active October 14, 2016 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmarreros/8e03f83c5ba0464db13c7be51be98ce0 to your computer and use it in GitHub Desktop.
Save jmarreros/8e03f83c5ba0464db13c7be51be98ce0 to your computer and use it in GitHub Desktop.
Página personalizada de Error de Base de Datos en WordPress
<?php
// Página de error de Base de Datos personalizada
// Referencia @ digwp.com
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600');
mail("admin@dominio.com", "Error Base de datos", "Hay un error en la BD, verifica!");
?>
<!DOCTYPE HTML>
<html dir="ltr" lang="es-ES">
<style>
body{
font-family: Helvetica;
text-align: center;
background-color: #EEEEEE;
color:#5D616C;
}
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php _e( 'Database Error' ); ?></title>
</head>
<body>
<img src="https://decodecms.com/wp-content/uploads/2016/10/error-base-datos.svg" width="150" height="150">
<h1><?php _e( 'Error establishing a database connection' ); ?></h1>
</body>
</html>
@jmarreros
Copy link
Author

Copiar archivo en la carpeta wp-content como plugin dependiente.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment