// PATCH Arkhee : fix/last-online-stuck-on-never-if-webpage-too-large
// The update un "servers" table does not work // Symptom : "Last online" stays stuck on "never" // Reason: last_output contains the full webpage, too long for the query // _This may depend on mysql configuration on the server_, explaining why some have the problem or not // Field is 255 Chars, and request does not work anyway is loaded web page is too large in last_output // So force truncate to 250 or less before querypull/770/head
parent
9c16883987
commit
a49995c06d
|
@ -152,7 +152,15 @@ class StatusUpdater {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PATCH Arkhee : fix/last-online-stuck-on-never-if-webpage-too-large
|
||||
// TThe update un "servers" table does not work
|
||||
// Symptom : "Last online" stays stuck on "never"
|
||||
// Reason: last_output contains the full webpage, too long for the query
|
||||
// _This may depend on mysql configuration on the server_, explaining why some have the problem or not
|
||||
// Field is 255 Chars, and request does not work anyway is loaded web page is too large in last_output
|
||||
// So force truncate to 250 or less before query
|
||||
$save["last_output"]=substr($save["last_output"],0,250);
|
||||
// End PATCH
|
||||
$this->db->save(PSM_DB_PREFIX.'servers', $save, array('server_id' => $this->server_id));
|
||||
|
||||
return $this->status_new;
|
||||
|
|
Loading…
Reference in New Issue