我收到此错误:
Message: Undefined index: step3_db_error
File: C:\AppServ\www\install\index.php
Line: 368
URL: localhost/install/index.php?step=6
这是我的代码:
update_config(array(
'timezone' => @date_default_timezone_get(),
'lang' => $LANG->GetUser(),
'OverviewNewsText' => $LNG['sql_welcome'].'1.7',
'uni_name' => $LNG['fcm_universe'].' 1',
'close_reason' => $LNG['sql_close_reason'],
'moduls' => implode(';', array_fill(0, MODULE_AMOUNT, 1))
), 1);
HTTP::redirectTo('index.php?step=7');
} catch (Exception $e) {
$template->assign(array(
'class' => 'fatalerror',
'message' => $LNG['step3_db_error'].'</p><p>'.$GLOBALS['DATABASE']->error,
));
$template->show('ins_step4.tpl');
exit;
}
第368行:
('message' => $LNG['step3_db_error'].'</p><p>'.$GLOBALS['DATABASE']->error,)
我也得到了:
Message: Undefined property: Database::$queryCount
File: C:\AppServ\www\includes\classes\class.Database.php
Line: 76
URL: localhost/index.php
以下是代码:
public function query($resource)
{
if($result = parent::query($resource))
{
$this->queryCount++;
return $result;
}
else
{
throw new Exception("SQL Error: ".$this->error."<br><br>Query Code: ".$resource);
}
return false;
}
第76行:
(this->queryCount++;)