When an auction is created, there is no bidder yet, so bid_account should usually be initialized as 0 or NULL, depending on how your script checks for “no bidder”.
First, check the real table structure:
SQL:
SHOW TABLES LIKE '%auction%';
SHOW CREATE TABLE character_auctions;
Also check the insert query around this file/line:
Code:
system/pages/createcharacterauction.php line 1718
The quick database-side fix is usually one of these:
If your system uses 0 as “no bidder”:
SQL:
ALTER TABLE character_auctions
MODIFY bid_account INT UNSIGNED NOT NULL DEFAULT 0;
If your system uses NULL as “no bidder”:
SQL:
ALTER TABLE character_auctions
MODIFY bid_account INT UNSIGNED NULL DEFAULT NULL;
The cleaner fix is to edit the INSERT query in createcharacterauction.php and explicitly insert the initial value:
or include it in the insert columns/values:
SQL:
INSERT INTO character_auctions (..., bid_account, ...)
VALUES (..., 0, ...);
In summary, it is basically what
@GamerGoiano said: your table requires a value for bid_account, but the script is not sending one. So you either need to allow NULL, set a default value, or explicitly insert the initial value in the query. Can't read the specific line createcharacterauction.php(1718) since I don't have the system but probably is what I mentioned earlier.
Since this is a 3 year old thread I'll close it and mark it as solved to avoid unnecessary bumps.