[BUG] Default value issue after server crash #118
Labels
other:not_a_bug
All bug reports that originally started as bugs, but ultimatelly turned out to be "something else".
other:resolved
All resolved issues that do not fall into any other category
other
All issues that do not have a specific category
Problem description
My server went down due to a short power outage. Once it was back up it threw a lot of errors, mostly in the direction of some field not having default values. Example:
The problem first appeared only on the overview.php site, by now it appears on every single site.
What I have tried:
Giving the fields causing the error (Fleet_Array_Changes, building_queue and some more) a default value of NULL. This solves the problem above, however after fleet_archive starts getting filled with NULL default entries for every fleet action I get an error because every insert into query is filled with "!noupt!", which is supposed to be this way according to FlyingFleetHandler.php
if($DataVal === null) { $DataVal = '"!noupd!"'; }
The error disappears when I delete all fleets from the database but occurs again, when fleets either Turn Back or arrive at their destination. After a while all pages show the error listed in the first place.
I can only imagine that the crash caused a query to be cancelled mid-execution, but I was not able to find a fix for it.
Engine details
version 1.0.0
Steps to reproduce
Cannot reproduce, but cannot fix
Expected behavior
Fleets get sent correctly, building queues are handled correctly
Actual behavior
Error occurs on every page loaded
The text was updated successfully, but these errors were encountered: