[Tickets #10181] Re: IMP showing Autocreate.php fatal error
bugs at horde.org
bugs at horde.org
Fri Jun 3 23:34:40 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10181
------------------------------------------------------------------------------
Ticket | 10181
Updated By | lfbm.andamentos at gmail.com
Summary | IMP showing Autocreate.php fatal error
Queue | IMP
Version | 5.0.5
Type | Bug
State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
lfbm.andamentos at gmail.com (2011-06-03 23:34) wrote:
> 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.
More information about the bugs
mailing list