|
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 81 bytes) in /home/eloulist/public_html/investee.biz/system/database/drivers/mysql/mysql_result.php on line 147
请问这个是什么原因?
登录的这部分代码
PHP复制代码
$result = $this->UserModel->searchUser1 ( $pwuser, md5 ( $pwpwd ) );
if ($result != false) {
if (isset ( $result->status ) && $result->status != 0) {
$arr = array ('uid' => $result->uid, 'username' => $result->username, 'icon' => $result->icon, 'email' => $result->email, 'remember' => $remember );
$this->session->set_userdata ( 'islogin', $arr );
$data ['user'] = $pwuser;
$data ['pwd'] = $pwpwd;
if ($remember == 1) {
setcookie ( "uid", $result->uid, time () + 5184000 );
setcookie ( "name", $result->username, time () + 5184000 );
setcookie ( "pwd", $pwpwd, time () + 5184000 );
} else {
// setcookie ( "uid", $result->uid, time () );
// setcookie ( "name", $result->username, time () );
}
if($backurl!=null){
redirect ( 'http://'.$backurl );
}else{
redirect ( 'welcome/index' );
}
} else {
$data ['error'] = $this->lang->line ( 'emailerror' );
// print_r($data ['error']);
$this->load->view ( 'login', $data );
}
复制代码
这个是在登录的时候出现的问题,这个项目已经运行大半年了,今天登录的时候突然报这个错误,我虽然知道修改memory_limit可以解决,但这也不是根本办法,所以请各位看看是什么原因导致ci这个地方出错了?
|
|