6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#550] Getting error during login in maintenance code
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ .__ .__. __. _/ [__)| \| |(__ ./__.| |__/|__|.__)
Comment
> I have updated the code and now get this error: > > > > Undefined index: in /usr/share/pear/Horde/Maintenance.php on line 199 > > This is the line: > > $action = $tasks[key($tasks)]['display']; > > > > Here is the var dump of the maintenance object just before line 199: > > object(maintenance_imp)(4) { > > ["maint_tasks"]=> > > array(6) { > > ["tos_agreement"]=> > > int(6) > > ["fetchmail_login"]=> > > int(5) > > ["rename_sentmail_monthly"]=> > > int(2) > > ["delete_sentmail_monthly"]=> > > int(2) > > ["delete_attachments_monthly"]=> > > int(2) > > ["purge_trash"]=> > > int(2) > > } > > ["_lastLogin"]=> > > int(0) > > ["_tasklist"]=> > > &object(maintenance_tasklist)(6) { > > ["_module"]=> > > string(3) "imp" > > ["_target"]=> > > string(42) "/horde/services/maintenance.php?module=imp" > > ["_postdata"]=> > > NULL > > ["_tasks"]=> > > array(0) { > > } > > ["_addFlag"]=> > > bool(false) > > ["_processed"]=> > > bool(false) > > } > > ["_taskCache"]=> > > array(0) { > > } > > } > > > > As the tasks array inside the task list object is empty the > _tasklist->getList() call for the maintenance object is returning > null so, the call on line 199 to get a value in the $tasks array > fails as it is null.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers