1 boneill Feb 17, 2010 20:20
3 boneill Feb 28, 2010 22:38
I just suggested a new plugin for this type of issue. Looking for the abuility to recieve an email when these kinds of errors happen.
4 boneill Mar 01, 2010 00:13
For the error that results in the missing config page, I updated the conf_error_main.php file to the below. There was another error page as well though, that I would like to customize.
updated conf_error_main.php page:
<?php
/**
* This page displays an error message if the config is not done yet.
*
* VERY IMPORTANT: this file should assume AS LITTLE AS POSSIBLE
* on what configuration is already done or not
*
* Before calling this page, you must set:
* - $error_message
*
* @package evocore
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
global $app_name;
global $app_version;
header('Content-Type: text/html; charset=iso-8859-1');
//update by boneill on 2/28/10
//email admin notifying them of the error
$to = "admin@RenoStandUp.com";
$subject = "B2Evolution Error: Configuration missing";
$body = "The following b2Evolution error has occured".$error_message;
$headers = "From: b2evo@renostandup.com\r\n"
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $app_name ?> is not configured yet</title>
</head>
<body>
<div style="background-color:#fee; border: 1px solid red; text-align:center; ">
<h1>RenoStandup.com is currently experiencing some technical difficulties please come back soon!</h1>
<br>
<center><img src="http://www.renostandup.com/media/blogs/a/wayne.JPG"></center>
<br>
<p>The admin has <?php
if (mail($to, $subject, $body,$headers))
{
echo("sucessfully been notified</p>"); }
else
{
echo("not been sucessfully been notified! Please send an email to <a href='mailto:admin@RenoStandUp.com'>admin@RenoStandUp.com</a> immediately!</p>");
}
?>
</div>
</body>
<!-- Old Page
<body>
<div style="background-color:#fee; border: 1px solid red; text-align:center; ">
<p>This is <?php echo $app_name ?> version <?php echo $app_version ?>.</p>
<p><strong>You cannot use the application before you finish configuration and installation.</strong></p>
<div style="font-weight:bold; color:red;"><?php echo $error_message; ?></div>
<p>Please use the installer to finish your configuration/installation now.</p>
<p>On most installations, the installer will probably be either <a href="install/index.php">here</a> or <a href="../install/index.php">here</a>... (but I can't be sure since I have no config info available! :P)</p>
</div>
</body>
</html>-->
<?php
exit(0);
So, I was unable to access my MySQL databases while at work so I had to drive home on my lunch break to see what was wrong. By the time I got home, the site was back up with no problems.
This is definently an issue with the MySQL databases. Does anyone think that this is because the host Im using is bad? Has anyone had a similar issue?
Any suggestions for a web hosting? Thanks!