Files
dolibarr/htdocs/cron
Braito 8d388632cf fix(cron): clamp lastoutput and harden run_jobs (#36938)
* FIX|Fix Cron job lastoutput overflow

Clamp cronjob.lastoutput to MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD in create/update to avoid SQL errors when output exceeds DB TEXT size.

Also harden run_jobs():
- jobtype=function: report lib/lang load failures into lastoutput/lastresult and parse params more reliably (comma + trim, supports "0").
- jobtype=command: mark run as failed when CLI is disabled, fall back to sys_get_temp_dir(), and report an explicit error if no temp dir can be resolved.

Signed-off-by: Camino Travel Center <noreply@caminotravelcenter.com>

* Update cronjob.class.php

---------

Signed-off-by: Camino Travel Center <noreply@caminotravelcenter.com>
Co-authored-by: Camino Travel Center <noreply@caminotravelcenter.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-01-20 23:53:29 +01:00
..
2025-10-17 02:31:07 +02:00
2026-01-07 11:07:31 +01:00
2026-01-14 21:38:45 +01:00