[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX]: Data too long for column 'output' at row 1
Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6941b80659d51_2a17f91c8823f@gitlab-sidekiq-low-urgency-cpu-bound-v2-68b4849589-f49dq.mail> |
Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
3d7b10af by Grace Nshokano at 2025-12-16T19:42:08+00:00
[FIX]: Data too long for column 'output' at row 1
---
* [FIX] data too long for column 'output' at row 1
See merge request tikiwiki/tiki!9171
- - - - -
1 changed file:
- lib/schedulerslib.php
Changes:
=====================================
lib/schedulerslib.php
=====================================
@@ -266,6 +266,15 @@ class SchedulersLib extends TikiLib
$end_time = time();
}
+ // TEXT column has a 65,535 byte limit. Truncate if output exceeds this size.
+ $maxOutputBytes = 65535;
+ $truncationMsg = "\n\n[Output truncated - exceeded TEXT column limit]";
+ $maxContentBytes = $maxOutputBytes - strlen($truncationMsg);
+
+ if (strlen($errorMessage) > $maxOutputBytes) {
+ $errorMessage = substr($errorMessage, 0, $maxContentBytes) . $truncationMsg;
+ }
+
$schedulersRunTable = $this->table('tiki_scheduler_run');
$schedulersRunTable->update([
'status' => $executionStatus,
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3d7b10af3e3c7923af93b6b4eea4b982954c049d
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3d7b10af3e3c7923af93b6b4eea4b982954c049d
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs