From ec700e9ff0afab7c73aa6e2ca6ddcfd1be65afb8 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 17 Sep 2019 14:41:43 +0200 Subject: [PATCH] Updated to 5000 characters --- src/psm/Util/Server/Updater/StatusUpdater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/psm/Util/Server/Updater/StatusUpdater.php b/src/psm/Util/Server/Updater/StatusUpdater.php index 20db4dcf..2e615576 100644 --- a/src/psm/Util/Server/Updater/StatusUpdater.php +++ b/src/psm/Util/Server/Updater/StatusUpdater.php @@ -158,8 +158,8 @@ class StatusUpdater { // 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); + // 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));