6.0.0-beta1
9/24/25

[#550] Getting error during login in maintenance code
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

History
09/09/2004 07:18:10 PM Chuck Hagenbuch Comment #10
State ⇒ Resolved
Reply to this comment
I'm going to resolve this as the original problem is fixed. Please try 
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.
09/09/2004 07:16:30 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
09/09/2004 04:46:52 AM stephen (at) mega (dot) geek (dot) nz Comment #9 Reply to this comment
Sorry about the last comment my script to getting the last code from 
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.
09/09/2004 04:29:02 AM Chuck Hagenbuch Comment #8 Reply to this comment
Line 199 no longer contains code that can cause that error.
09/09/2004 04:25:21 AM stephen (at) mega (dot) geek (dot) nz Comment #7 Reply to this comment
Error still happening please refer to the screenshots to see what is 
happpening.
09/09/2004 04:11:04 AM   New Attachment: LoggedInErrorMenuFrame.gif Download
 
09/09/2004 04:10:36 AM   New Attachment: LoggingInErrorMenuFrame.gif Download
 
09/09/2004 04:09:48 AM   New Attachment: LoggedInErrorMainFrame.gif Download
 
09/09/2004 04:09:21 AM   New Attachment: LoggingInErrorMainFrame.gif Download
 
09/09/2004 04:04:14 AM Chuck Hagenbuch Comment #6 Reply to this comment
Okay, thanks for your patience. Give it one more shot?
09/09/2004 03:50:41 AM stephen (at) mega (dot) geek (dot) nz Comment #5 Reply to this comment
Still seeing the error but not all the time:

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.
09/09/2004 02:15:35 AM Chuck Hagenbuch Comment #4 Reply to this comment
Please try one more time, there was a typo in my initial commit.
09/08/2004 02:13:29 AM stephen (at) mega (dot) geek (dot) nz Comment #3 Reply to this 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.
09/08/2004 01:30:52 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Try updating; I've just committed some code to clean up the 
maintenance session caching a bit. See what that does for you...
09/07/2004 09:23:11 PM stephen (at) mega (dot) geek (dot) nz Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Getting error during login in maintenance code
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
Reply to this comment
I get the following error after login.



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

Saved Queries