robbydeath
Well-Known Member
Sorry I thought this was fixed it's not. It was two errors I fixed one. This remains;
I get this error after creating an account, although the account is created correctly.
I would greatly appreciate any help, sorry about that!
By the way, I think something is wrong in this but I cant see it...
Code:
Fatal error: Uncaught exception 'DatabaseQueryException'
Message: Error #1048:Column 'ip' cannot be null
SQL query: INSERT INTO `nicaw_account_logs` (id, ip, account_id, date, action) VALUES(NULL, INET_ATON('::1'), 455455, UNIX_TIMESTAMP(NOW()), 'Created')
File: sql.php on line: 94
Script was terminated because something unexpected happened. You can report this, if you think it's a bug.
Debug Backtrace:Disabled
I get this error after creating an account, although the account is created correctly.
I would greatly appreciate any help, sorry about that!
By the way, I think something is wrong in this but I cant see it...
Code:
//Perform simple SQL query
public function myQuery($q) {
if(is_resource($this->last_query))
mysql_free_result($this->last_query);
$this->last_query = mysql_query($q, $this->sql_connection);
$this->last_insert_id = mysql_insert_id();
if ($this->last_query === false) {
$this->analyze();
throw new DatabaseQueryException('Error #'.mysql_error().':'.mysql_error(), $q);
}
return $this->last_query;
}
Last edited: