Summary | Fatal error when describing purge trash login task |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | slusarz (at) horde (dot) org |
Requester | jan (at) horde (dot) org |
Created | 07/22/2009 (5827 days ago) |
Due | |
Updated | 01/13/2010 (5652 days ago) |
Assigned | 08/03/2009 (5815 days ago) |
Resolved | 08/19/2009 (5799 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Bug #8447: Undefined values in login tasksI think the issue is that these objects are being serialized between
sessions - thus, when unserialized on the next page, initialize() may
not have been called yet. So we need to put the initialize() calls in
each function that requires a full IMP environment.
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/DeleteAttachmentsMonthly.php?rt=horde-git&r1=488c875b979520b1c9b6bf46049a0ddbb8fd8158&r2=567afd9432a3914ceec131f1a31c3b0e7c3809bf
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php?rt=horde-git&r1=c07dc3fd3f1ea04331e70e87009e185ffc895870&r2=567afd9432a3914ceec131f1a31c3b0e7c3809bf
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/PurgeSentmail.php?rt=horde-git&r1=c07dc3fd3f1ea04331e70e87009e185ffc895870&r2=567afd9432a3914ceec131f1a31c3b0e7c3809bf
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/PurgeSpam.php?rt=horde-git&r1=c07dc3fd3f1ea04331e70e87009e185ffc895870&r2=567afd9432a3914ceec131f1a31c3b0e7c3809bf
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/PurgeTrash.php?rt=horde-git&r1=c07dc3fd3f1ea04331e70e87009e185ffc895870&r2=567afd9432a3914ceec131f1a31c3b0e7c3809bf
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/RenameSentmailMonthly.php?rt=horde-git&r1=c07dc3fd3f1ea04331e70e87009e185ffc895870&r2=567afd9432a3914ceec131f1a31c3b0e7c3809bf
Bug #8447: Move IMP initialization to functionhttp://git.horde.org/diff.php/imp/lib/IMP.php?rt=horde-git&r1=d58245fa6817cbbf97fc5169615794d0232ff08f&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/DeleteAttachmentsMonthly.php?rt=horde-git&r1=03b873a3c2c36e31645423438c483ca2c3ccc51d&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php?rt=horde-git&r1=c0c5954756a84a9d282fe7efaff62885a1e411ae&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/PurgeSentmail.php?rt=horde-git&r1=03b873a3c2c36e31645423438c483ca2c3ccc51d&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/PurgeSpam.php?rt=horde-git&r1=03b873a3c2c36e31645423438c483ca2c3ccc51d&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/PurgeTrash.php?rt=horde-git&r1=03b873a3c2c36e31645423438c483ca2c3ccc51d&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/LoginTasks/Task/RenameSentmailMonthly.php?rt=horde-git&r1=03b873a3c2c36e31645423438c483ca2c3ccc51d&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
http://git.horde.org/diff.php/imp/lib/base.php?rt=horde-git&r1=0948a5aa428006b481f9d19e08adc7189ccac9fe&r2=c07dc3fd3f1ea04331e70e87009e185ffc895870
State ⇒ Resolved
notice, but I got a white screen of death.
State ⇒ Feedback
http://lists.horde.org/archives/commits/2009-August/001542.html
State ⇒ Assigned
( ! ) Notice: Undefined index: imp_imap in
/home/jan/horde-hatchery/imp/lib/IMP.php on line 855
Call Stack
# Time Memory Function Location
1 0,0005 88844 {main}( ) ../logintasks.php:0
2 2,1107 5569756 IMP_LoginTasks_Task_PurgeTrash->describe(
) ../logintasks.php:78
3 2,1109 5569984 IMP::folderPref( 'Trash', TRUE ) ../PurgeTrash.php:83
( ! ) Fatal error: Call to a member function defaultNamespace() on a
non-object in /home/jan/horde-hatchery/imp/lib/IMP.php on line 855
Call Stack
# Time Memory Function Location
1 0,0005 88844 {main}( ) ../logintasks.php:0
2 2,1107 5569756 IMP_LoginTasks_Task_PurgeTrash->describe(
) ../logintasks.php:78
3 2,1109 5569984 IMP::folderPref( 'Trash', TRUE ) ../PurgeTrash.php:83
State ⇒ Resolved
the logintasks are run in pushApp(), halfway through that file.
Solution is to move init code to IMP::initialize() and then have the
logintasks explicitly init IMP within themselves.
State ⇒ Assigned
( ! ) Notice: Undefined index: imp_imap in
/srv/www/htdocs/hordegit/imp/lib/IMP.php on line 800
Call Stack
# Time Memory Function Location
1 0,0006 86528 {main}( ) ../logintasks.php:0
2 0,1573 7217860 IMP_LoginTasks_Task_PurgeTrash->describe(
) ../logintasks.php:78
3 0,1575 7218040 IMP::folderPref( ) ../PurgeTrash.php:81
( ! ) Fatal error: Call to a member function defaultNamespace() on a
non-object in /srv/www/htdocs/hordegit/imp/lib/IMP.php on line 800
Call Stack
# Time Memory Function Location
1 0,0006 86528 {main}( ) ../logintasks.php:0
2 0,1573 7217860 IMP_LoginTasks_Task_PurgeTrash->describe(
) ../logintasks.php:78
3 0,1575 7218040 IMP::folderPref( ) ../PurgeTrash.php:81
State ⇒ Resolved
State ⇒ Feedback
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Fatal error when describing purge trash login task
Queue ⇒ IMP
Assigned to Michael Slusarz
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
/home/jan/horde-hatchery/imp/lib/IMP.php on line 800
Call Stack
# Time Memory Function Location
1 0,0005 87924 {main}( ) ../logintasks.php:0
2 2,8650 5478604 IMP_LoginTasks_Task_PurgeTrash->describe(
) ../logintasks.php:77
3 2,8652 5478836 IMP::folderPref( 'Trash', TRUE ) ../PurgeTrash.php:81
( ! ) Fatal error: Call to a member function defaultNamespace() on a
non-object in /home/jan/horde-hatchery/imp/lib/IMP.php on line 800
Call Stack
# Time Memory Function Location
1 0,0005 87924 {main}( ) ../logintasks.php:0
2 2,8650 5478604 IMP_LoginTasks_Task_PurgeTrash->describe(
) ../logintasks.php:77
3 2,8652 5478836 IMP::folderPref( 'Trash', TRUE ) ../PurgeTrash.php:81