[Tickets #9942] Re: preferences not saved but horde said that they are saved

bugs at horde.org bugs at horde.org
Wed May 11 19:27:40 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9942
------------------------------------------------------------------------------
  Ticket             | 9942
  Updated By         | fzipi at fing.edu.uy
  Summary            | preferences not saved but horde said that they are
                     | saved
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


fzipi at fing.edu.uy (2011-05-11 19:27) wrote:

I can confirm this bug. Preferences with 'SQL Database' were not  
saving. I've changed to files, and now many things began suddenly to  
work.

Two errors arised from this behaviour:

1) No mails in any folder for users. DEBUG error logged:

HORDE: HORDE [imp] PHP ERROR: Division by zero [pid 15454 on line 414  
of "/var/www/horde/web/imp/lib/Mailbox/List.php"]
HORDE: HORDE [imp] PHP ERROR: Division by zero [pid 15454 on line 428  
of "/var/www/horde/web/imp/lib/Mailbox/List.php"]

  I tracked this to imp/lib/Mailbox/List.php:411

         $page_size = $GLOBALS['prefs']->getValue('max_msgs');

There is some problem with reading this preference for user, and the  
application assigned 0. That triggered the division by zero  
afterwards, and the result for the user is that he hasn't any mail  
(panic!).

My first workaround for this was to set explicitly

         $page_size = 30;

2) Users can't reply or compose any message. When composing a new  
message, in the new windows appears only "Loading..." text, with no  
further advance. Debug log shows:

PHP Fatal error:  Call to a member function create() on a non-object  
in /var/www/horde/web/imp/compose
.php on line 902

I think this is related to 'sent-mail' folder creation. But in this  
case, the preference for where to put sent mail couldn't be read, so  
it hanged up forever.

Just changing to files the preference driver solved at least these two  
problems.






More information about the bugs mailing list