6.0.0-alpha12
6/8/25

[#8962] mailbox views broken
Summary mailbox views broken
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester mrubinsk (at) horde (dot) org
Created 04/13/2010 (5535 days ago)
Due
Updated 04/14/2010 (5534 days ago)
Assigned 04/13/2010 (5535 days ago)
Resolved 04/14/2010 (5534 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/14/2010 06:44:44 PM Michael Rubinsky Assigned to Michael Rubinsky
Taken from Michael Slusarz
State ⇒ Resolved
 
04/14/2010 06:44:26 PM Michael Rubinsky Comment #5 Reply to this comment
Changes have been made in Git for this ticket:

These methods are not provided by IMP therefore we must check for them
before calling.
This was preventing ALL of imp's prefs from being loaded, since
Horde_Prefs::_loadDefaults()
was catching the exception and returning. This fixes Bug: # 8962 and
possibly Bug: #8961

http://git.horde.org/diff.php/imp/config/prefs.php.dist?rt=horde-git&r1=375ca9376b445764324b61a623a9a4b2c9fac567&r2=a874d22a44cd43c6c0c67be106e8055c7dd54df1
04/14/2010 06:50:44 AM Michael Slusarz Comment #4 Reply to this comment
YOu are probably going to hate me... but you'll probably have to trace 
the prefs code.  I would suggest looking at 
Horde_Prefs::_setDefaults() to see why the default value is not being 
set in the current user's prefs.
04/13/2010 05:12:21 PM Michael Rubinsky Comment #3 Reply to this comment
Have you updated IMP's prefs.php file?
Yes.

Also, line 134 doesn't have
code on it - it is the closing parenthesis for the array_merge call 
(although maybe that's how PHP reports errors with array_merge).
Yes, I've seen this a few times with php, reporting line numbers on 
the last line of mulitline commands.
If these fail, check to see what value 'msgflags_user' is, and where 
that value is coming from.
var_dump($GLOBALS['prefs'])->getVaue('msgflags_user')); outputs NULL, 
but I have no idea where it is coming from. The prefs.php file's value 
is set to '[]'.

04/13/2010 04:53:11 PM Michael Slusarz Comment #2
State ⇒ Feedback
Reply to this comment
Have you updated IMP's prefs.php file?  Also, line 134 doesn't have 
code on it - it is the closing parenthesis for the array_merge call 
(although maybe that's how PHP reports errors with array_merge).

If these fail, check to see what value 'msgflags_user' is, and where 
that value is coming from.
04/13/2010 12:38:15 PM Michael Rubinsky Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ mailbox views broken
Queue ⇒ IMP
Assigned to Michael Slusarz
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
Reply to this comment
viewing mailbox view in (d)imp never gets past the "loading" message. 
Numerous messages in the log related to IMP_Imap_Flags that seems to 
start off with:

  (mod_fastcgi.c.2570) FastCGI-stderr: PHP Warning:  array_merge() [<a 
href='function.array-merge'>function.array-merge</a>]: Argument #1 is 
not an array in /horde/horde/imp/lib/Imap/Flags.php on line 134


Normal IMP mailbox views display the mailbox, but do not seem to show 
any new messages, and also result in the same error messages being 
logged. I can provide the full stack trace if needed...

Saved Queries