6.0.0-beta1
7/4/25

[#10181] IMP showing Autocreate.php fatal error
Summary IMP showing Autocreate.php fatal error
Queue IMP
Queue Version 5.0.5
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester lfbm.andamentos (at) gmail (dot) com
Created 06/02/2011 (5146 days ago)
Due
Updated 06/04/2011 (5144 days ago)
Assigned 06/02/2011 (5146 days ago)
Resolved 06/04/2011 (5144 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/04/2011 11:19:11 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
06/04/2011 11:19:02 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git for this ticket:

Bug #10181: Special mailboxes may not be configured

  1 files changed, 4 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/7ce71afbec24620ac0b72c194cc489309ea3ea99
06/03/2011 11:34:39 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #5 Reply to this comment
Looks like IMP_Mailbox::getSpecialMailboxes() is returning some 
incorrect value. What does it return at the start of that excute() 
method?
It´s returning a NULL value only for the "trash" array member, which 
was supposed to be an object, and that´s why the error occurs only on 
line 67.

Here´s the debug info:

2011-06-03T20:16:14-03:00 DEBUG: Variable information:
array(4) {
   ["drafts"]=>
   object(IMP_Mailbox)#150 (3) {
     ["cache"]=>
     array(2) {
       ["n"]=>
       array(2) {
         [0]=>
         string(1) "."
         [4]=>
         int(1)
       }
       ["d"]=>
       bool(true)
     }
     ["changed"]=>
     int(0)
     ["_mbox":protected]=>
     string(6) "Drafts"
   }
   ["sent"]=>
   array(1) {
     [0]=>
     object(IMP_Mailbox)#160 (3) {
       ["cache"]=>
       array(2) {
         ["n"]=>
         array(2) {
           [0]=>
           string(1) "."
           [4]=>
           int(1)
         }
         ["d"]=>
         bool(true)
       }
       ["changed"]=>
       int(0)
       ["_mbox":protected]=>
       string(4) "Sent"
     }
   }
   ["spam"]=>
   object(IMP_Mailbox)#157 (3) {
     ["cache"]=>
     array(2) {
       ["n"]=>
       array(2) {
         [0]=>
         string(1) "."
         [4]=>
         int(1)
       }
       ["d"]=>
       bool(true)
     }
     ["changed"]=>
     int(0)
     ["_mbox":protected]=>
     string(4) "Spam"
   }
   ["trash"]=>
   NULL
}

Backtrace:
1. Horde_Registry::appInit() /var/www/horde/imp/index.php:16
2. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:238
3. Horde_Core_LoginTasks->runTasks() /usr/share/php/Horde/Registry.php:1343
4. Horde_LoginTasks->runTasks() /usr/share/php/Horde/Core/LoginTasks.php:48
5. IMP_LoginTasks_Task_Autocreate->execute() 
/usr/share/php/Horde/LoginTasks.php:210
6. Horde::debug() /var/www/horde/imp/lib/LoginTasks/Task/Autocreate.php:44

If I set the option "When deleting messages, move them to your Trash 
folder instead of marking them as deleted?" to 'true' under IMP 
Preference, then a "Trash" folder is automatically created and the 
fatal error msg goes aways. Then, debug info shows this:

2011-06-03T20:27:21-03:00 DEBUG: Variable information:
array(4) {
   ["drafts"]=>
   object(IMP_Mailbox)#151 (3) {
     ["cache"]=>
     array(2) {
       ["n"]=>
       array(2) {
         [0]=>
         string(1) "."
         [4]=>
         int(1)
       }
       ["d"]=>
       bool(true)
     }
     ["changed"]=>
     int(0)
     ["_mbox":protected]=>
     string(6) "Drafts"
   }
   ["sent"]=>
   array(1) {
     [0]=>
     object(IMP_Mailbox)#161 (3) {
       ["cache"]=>
       array(2) {
         ["n"]=>
         array(2) {
           [0]=>
           string(1) "."
           [4]=>
           int(1)
         }
         ["d"]=>
         bool(true)
       }
       ["changed"]=>
       int(0)
       ["_mbox":protected]=>
       string(4) "Sent"
     }
   }
   ["spam"]=>
   object(IMP_Mailbox)#158 (3) {
     ["cache"]=>
     array(2) {
       ["n"]=>
       array(2) {
         [0]=>
         string(1) "."
         [4]=>
         int(1)
       }
       ["d"]=>
       bool(true)
     }
     ["changed"]=>
     int(0)
     ["_mbox":protected]=>
     string(4) "Spam"
   }
   ["trash"]=>
   object(IMP_Mailbox)#162 (3) {
     ["cache"]=>
     array(0) {
     }
     ["changed"]=>
     int(0)
     ["_mbox":protected]=>
     string(5) "Trash"
   }
}

Backtrace:
1. Horde_Registry::appInit() /var/www/horde/imp/compose.php:21
2. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:238
3. Horde_Core_LoginTasks->runTasks() /usr/share/php/Horde/Registry.php:1343
4. Horde_LoginTasks->runTasks() /usr/share/php/Horde/Core/LoginTasks.php:48
5. IMP_LoginTasks_Task_Autocreate->execute() 
/usr/share/php/Horde/LoginTasks.php:210
6. Horde::debug() /var/www/horde/imp/lib/LoginTasks/Task/Autocreate.php:44

Thanks.
06/03/2011 08:57:34 AM Jan Schneider Comment #4 Reply to this comment
Looks like IMP_Mailbox::getSpecialMailboxes() is returning some 
incorrect value. What does it return at the start of that excute() 
method?
06/03/2011 12:54:30 AM lfbm (dot) andamentos (at) gmail (dot) com Comment #3 Reply to this comment
What is the content of $val in that line?

Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4
var_dump the variable $val just before that line returned: NULL

And the Horde::debug($val) returned:

2011-06-02T21:47:42-03:00 DEBUG: Backtrace:
1. Horde_Registry::appInit() /var/www/horde/imp/index.php:16
2. Horde_Registry->pushApp() /usr/share/php/Horde/Registry.php:238
3. Horde_Core_LoginTasks->runTasks() /usr/share/php/Horde/Registry.php:1343
4. Horde_LoginTasks->runTasks() /usr/share/php/Horde/Core/LoginTasks.php:48
5. IMP_LoginTasks_Task_Autocreate->execute() 
/usr/share/php/Horde/LoginTasks.php:210
6. Horde::debug() /var/www/horde/imp/lib/LoginTasks/Task/Autocreate.php:67

Thanks.
06/02/2011 10:26:22 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
What is the content of $val in that line?

Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4
06/02/2011 02:42:43 PM lfbm (dot) andamentos (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ IMP showing Autocreate.php fatal error
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
horde 4.0.5 and imp 5.0.5

On every new login, the first time I click on "mail" module , I get this:

Fatal error: Call to a member function create() on a non-object in 
/var/www/horde/imp/lib/LoginTasks/Task/Autocreate.php on line 67

After hiting refresh, the error disappears, but only until next login.

Saved Queries