Summary | Getting error during login in maintenance code |
Queue | Horde Framework Packages |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | stephen (at) mega (dot) geek (dot) nz |
Created | 09/07/2004 (7687 days ago) |
Due | |
Updated | 09/09/2004 (7685 days ago) |
Assigned | 09/09/2004 (7685 days ago) |
Resolved | 09/09/2004 (7685 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
to come up with a way to reproduce the frames problem, if you're still
seeing it, and enter a new ticket for that for sanity. Thanks.
State ⇒ Assigned
the CVS and then install it missed the last update.
I have just tried it and the error no longer happens.
But if the maintenance message appears in the main frame you still get
the menu being displayed in the main frame after clicking the "Click
to Continue" button. Would it be possible to make this target _top as
this should get the frameset to reload.
happpening.
Notice: Undefined index: in /usr/share/pear/Horde/Maintenance.php on line 199
Using this version of the file 1.48 2004/09/08 09:14:50
This is the contents of the task list objects task array when the
error does not happen:
array(1) {
["fetchmail_login"]=>
array(3) {
["confirmed"]=>
bool(false)
["display"]=>
int(9)
["newpage"]=>
bool(true)
}
}
Also if the error is displayed in the main frame the menu loads up
correctly after the maintenance tasks are done. However if the error
is displayed in the menu frame the main frame loads with the menu tree
once the maintenance tasks are done.
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.
State ⇒ Feedback
maintenance session caching a bit. See what that does for you...
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Getting error during login in maintenance code
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
Fatal error: Call to a member function on a non-object in
/usr/share/pear/Horde/Maintenance.php on line 493
This appears in the main frame the sidbar frame shows the correct
request to perform maintenance taks. After maintenance is performed
and I click on a menu link the main frame loads correctly.
My setup is as follows:
- Authentication via IMAP (This was the only way I could get
permissons working)
- IMP server setting has 'hordeauth' => 'full'
- Horde login tasks:
: Perform maintenance operations on login? TICKED
: Ask for confirmation before doing maintenance operations? TICKED
- IMP login tasks:
: View or mailbox to display after login: Folder Navigation
: Rename sent-mail folder at beginning of month? TICKED
: Delete old sent-mail folders at beginning of month? UNTICKED
: Number of old sent-mail folders to keep if deleting monthly. 12
: Delete old linked attachments at beginning of month? TICKED
: Number of months to keep old linked attachments if deleting monthly. 6
: Purge old messages in the Trash folder? TICKED
: Purge Trash how often: Monthly
: Purge messages in Trash folder older than this amount of days. 30
- IMP Fetch Mail
: Fetch Mail in a separate window? TICKED
: Show the Fetch Mail icon on the menubar? TICKED