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Vhhu0yTtmTB5Wz4dHE5qi4NGHM5KdqKxmbpSv7rlZFRKv8QdRS91oK91Hw
 t2Gx/uoZ2ldIb3N/VA+iMUUBh9QaiXUH2DcUJ6WM0ErqaMclPrLD7fIq4UMS5pTZ
 DwKIWfC8euVQfjUf/srbTqy2x+b2wnVoLa7Hi39uUOTvpiPUyjXoJ1Xtx0HHcOH4
 kfElv2W8mXBltvkbinix+NUYUC9iLFcyJ9e7Cpwhl+b/zjlpRPYS0TS9/gyLbkoS
 pUS7T8/F8b3GdscXHa1FK99NR5fhEVzZ6FkqodGBa618GQJbJLRsHEhDTVtv6Dp+
 abdNOeUO1XfWkg2CIN9ebEbKG0zrv8b9zbxKWKYNiJvRtZuIeNEdVekIJBjStrZi
 Q4w+/sjsO/mIx0Uq2P7lZ+6gbMpeJ88vlQhu2PgDTkxrbjy7f3S26NQ5ORiQJwsC
 E2e3SMuqrawkPlsKWpEa+sixmej6OXObt748gFs2DHhMf9Pd7ajBo+uHknDcEE+/
 ShDI73LNejOjDSthZXiq4UOL+zv72795Czgsrx9HAatfYZ1Cqjg=
 =f2Sw
 -----END PGP SIGNATURE-----

Merge tag ‘v3.4.5’ into develop

Fixes #787.

# gpg: Signature made Mon Sep 30 18:00:29 2019 CEST
# gpg:                using RSA key A1063F1DCFE6981542E4E6AB4D8268DC68E8339D
# gpg: Good signature from "Tim Zandbergen <TimZ99@users.noreply.github.com>" [ultimate]
pull/796/head
TimZ99 2019-09-30 18:00:29 +02:00
commit a0cdcffabc
5 changed files with 9 additions and 14 deletions

View File

@ -6,6 +6,11 @@ Not yet released
----------------
\-
v3.4.5 (released September 30, 2019)
------------------------------------
* a8eaedc8: Fixed undefined index last_output.
v3.4.4 (released September 26, 2019)
------------------------------------

View File

@ -5,8 +5,7 @@ PHP Server Monitor
:alt: Join the chat at https://gitter.im/erickrf/nlpnet
:target: https://gitter.im/phpservermon/phpservermon
Version 3.4.4 (Updated design!)
Version 3.4.5
PHP Server Monitor is a script that checks whether your websites and servers are up and running.
It comes with a web based user interface where you can manage your services and websites,

View File

@ -51,7 +51,7 @@ copyright = u'2008-2017, Pepijn Over'
# built documents.
#
# The short X.Y version.
version = '3.4.4'
version = '3.4.5'
# The full version, including alpha/beta/rc tags.
release = version

View File

@ -29,7 +29,7 @@
/**
* Current PSM version
*/
define('PSM_VERSION', '3.4.4');
define('PSM_VERSION', '3.4.5');
/**
* URL to check for updates. Will not be checked if turned off on config page.

View File

@ -126,7 +126,7 @@ class StatusUpdater {
// if the server is on, add the last_online value and reset the error threshold counter
$save['status'] = 'on';
$save['last_online'] = date('Y-m-d H:i:s');
$save['last_output'] = $this->header;
$save['last_output'] = substr($this->header,0,5000);
$save['warning_threshold_counter'] = 0;
if ($this->server['status'] == 'off') {
$online_date = new \DateTime($save['last_online']);
@ -152,15 +152,6 @@ class StatusUpdater {
}
}
}
// PATCH Arkhee: fix/last-online-stuck-on-never-if-webpage-too-large
// Updating table "servers" 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
// Solution: updated column to text and truncate to 5000 characters or less before the query
$save["last_output"] = substr($save["last_output"],0,5000);
// End PATCH
$this->db->save(PSM_DB_PREFIX.'servers', $save, array('server_id' => $this->server_id));
return $this->status_new;