Originally posted by Glenn Vergara
View Post
I could not solve by using that way.
I erased a couple of codes below in database.php in vb folder and i connected with the database.
if ($config['Misc'] AND $config['Misc']['debug'])
{
$request = vB::getRequest();
$timeNow = $request->getTimeNow();
$scriptpath = 'unknown';
$ipAddress = 'unknown';
$scriptpath = $request->getScriptPath();
$ipAddress = $request->getIpAddress();
$referer = $request->getReferrer();
$technicalemail =& $vb5_config['Database']['technicalemail'];
$data = array('debug' => true);
$data['error'] = $this->error;
$data['errno'] = $this->errno;
$data['requestdate'] = date('l, F jS Y @ h:i:s A', $timeNow);
$data['date'] = date('l, F jS Y @ h:i:s A');
$data['host'] = ""; //todo figure this out for non http requests
$data['scriptpath'] = str_replace('&', '&', $scriptpath);
$data['referer'] = $referer;
$data['ipaddress'] = '';
$data['username'] = isset($userinfo['username']) ? $userinfo['username'] : "";
$data['classname'] = get_class($this);
$data['mysqlversion'] = '';
$data['technicalemail'] = $technicalemail;
$data['appname'] = $this->appname;
$data['templateversion'] = '';
throw new vB_Exception_Database("$errno: $errstr", $data, $code);
}
else
{
throw new vB_Exception_Database("$errno: $errstr", array(), $code);
}
but how i can solve comletely unless erasing??????????
and some characterset errors occured...!!
website: www.adlivaka.com
Leave a comment: