moess运行添加新用户代码报错解决方法

moess运行添加新用户代码报错解决方法

A PHP Error was encountered

Severity: Notice
Message: Undefined variable: username
Filename: models/Admin_model.php
Line Number: 240
Backtrace:
File: ss.izhukai.cn/application/models/Admin_model.php
Line: 240
Function: _error_handler
File: ss.izhukai.cn/application/controllers/Admin.php
Line: 419
Function: update_user
File: ss.izhukai.cn/index.php
Line: 292
Function: require_once

A Database Error Occurred

Error Number: 1048
Column ‘user_name’ cannot be null
INSERT INTO `user` (`user_name`, `email`, `pass`, `passwd`, `t`, `u`, `d`, `transfer_enable`, `plan`, `port`, `switch`, `enable`, `type`, `invite_num`, `money`) VALUES (NULL, ’11@sfs.com’, ‘1111’, ‘11111’, ‘0’, ‘1’, ‘1’, ’11’, ’11’, ‘50003’, ‘1’, ‘1’, ‘7’, 1, ‘0’)
Filename: models/Admin_model.php
Line Number: 245

找到ss.izhukai.cn/application/models/Admin_model.php文件第240行注销该行
//’user_name’ => $username,
初步来看未有其他影响,至于什么连带影响未知,暂且可以解决该报错

发表评论

邮箱地址不会被公开。 必填项已用*标注