User tests: Successful: Unsuccessful:
Pull Request resolves #47944.
When a scheduled task crashes on first run, DB row has locked IS NOT NULL but last_execution = NULL. The Scheduled Tasks admin list crashes with:
DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
Root cause: last_execution passed directly to HTMLHelper::_('date', ...) without null guard inside the $item->locked block. Lines 251 and 256 in the same file already use the correct ternary guard pattern — this block was missing it.
Fix: extract formatted date into $lockedSince with the same ternary guard used on line 251.
last_execution = NULL and locked = NOW() in #__scheduler_tasks for that task- in tooltipFatal deprecation crash — Scheduled Tasks page inaccessible
Page renders normally; locked tasks with no prior execution show - in the running-since tooltip
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-06-16 15:28:10 |
| Closed_By | ⇒ | rish106-hub | |
| Labels |
Added:
PR-5.4-dev
|
||
Closing as duplicate of #47951 which addresses the same issue.