User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
In plg_task_weblinks::checkWeblinks():
$httpTimeout = (int) $event->getArgument('params')->http_timeout ?? 8;
$batchSize = (int) $event->getArgument('params')->batch_size ?? 3;The cast binds tighter than ??, so the expression is ((int) $params->http_timeout) ?? 8 and the default is never applied. When the parameters are missing (e.g. a task created before the parameters existed, or created via API/CLI) this results in an "Undefined property" warning and the value 0. batch_size = 0 means setLimit(0), i.e. all weblinks in one run, and a timeout of 0 means no HTTP timeout at all.
The values are now read as max(1, (int) ($params->x ?? default)).
http_timeout and batch_size from the task's params in #__scheduler_tasks (or create the task without them).No warnings; the task checks 3 links per run with a timeout of 8 seconds.
PHP warnings, all links are checked in one run without a timeout.
None