Im moving my site to a new host, media temple, and im getting this error.
----------------------------------------
Notice: Undefined index: debug_mode in /home/virtual/site394/fst/var/www/html/include/functions.inc.php on line 101
Fatal error :
There was an error while processing a database query
----------------------------------------
i have varified all my connection information is correct, but I am still getting this.
All of my files are correctly on their servers, and the DB is also fine in its new location.
Im wondering if this is something that they are maybe not allowing?
The piece of code that its referring to is:
// Perform a database query
function db_query($query, $link_id = 0)
{
global $CONFIG, $query_stats, $queries;
$query_start = cpgGetMicroTime();
if (($link_id)) {
$result = mysql_query($query, $link_id);
} else {
$result = mysql_query($query);
}
$query_end = cpgGetMicroTime();
if (isset($CONFIG['debug_mode']) && (($CONFIG['debug_mode']==1) || ($CONFIG['debug_mode']==2) )) {
$query_stats[] = $query_end - $query_start;
$queries[] = $query;
}
if (!$result) db_error("While executing query \"$query\" on $link_id");
return $result;
}
// Error message if a query failed
function db_error($the_error)
{
global $CONFIG;
if (!$CONFIG['debug_mode']) {
cpg_die(CRITICAL_ERROR, 'There was an error while processing a database query', __FILE__, __LINE__);
} else {
$the_error .= "\n\nmySQL error: ".mysql_error()."\n";
$out = "<br />There was an error while processing a database query.<br /><br/>
<form name='mysql'><textarea rows=\"8\" cols=\"60\">".htmlspecialchars($the_error)."</textarea></form>";
cpg_die(CRITICAL_ERROR, $out, __FILE__, __LINE__);
}
}
THANKS IN ADVANCE!!!!