bugphpGroupWare - Bugs: bug #5321, preferences get lost

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #5321: preferences get lost

Submitted by:  Michael Totschnig <totschnig>
Submitted on:  Mon 15 Sep 2003 06:47:45 PM UTC  
 
Item Group: 0.9.16RC1Category: API - Preferences
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Dave Hall <skwashd>Open/Closed: Closed
Component Version: SVNOperating System: GNU/Linux - RedHat/Fedora
Reproducibility: NonePlanned Release: None
Fixed Release: 

Tue 18 Oct 2005 09:55:44 PM UTC, comment #4:

I have had this same problem with build# 0.9.16.008-1 Debian packages from phpgroupware.org.

on my system I edited /usr/share/phpgroupware/phpgwapi/inc/class.preferences.inc.php

and right below:
preferences_update = False

I added the line from the original post. Now my preferences work fine.

It had lost all defaults, the settings made it into the database but the php just would not use it. refreshing the screen kept changing my theme / settings back and forth.

Thanks for the post...

Robert <burnttoast>
Wed 24 Sep 2003 02:53:54 AM UTC, comment #3:

Yep, known issue, we have shot the tester. Try another update later today :)

Dave Hall <skwashd>
Project AdministratorIn charge of this item.
Wed 24 Sep 2003 01:19:19 AM UTC, comment #2:

after updating today, for some users, I get the following errors on each page. They seem related to the fix of this bug.

Warning: Invalid argument supplied for foreach() in /usr/local/www/phpgroupware.src/phpgwapi/inc/class.preferences.inc.php on line 671

Warning: reset(): Passed variable is not an array or object in /usr/local/www/phpgroupware.src/phpgwapi/inc/class.preferences.inc.php on line 589

Warning: reset(): Passed variable is not an array or object in /usr/local/www/phpgroupware.src/phpgwapi/inc/class.preferences.inc.php on line 592

Michael Totschnig <totschnig>
Fri 19 Sep 2003 09:19:32 AM UTC, comment #1:

This has been corrected in CVS.

To grab a complete update of all fixes:

1) Check to see if you have cvs installed: 'cvs --help'.
1a) If not, install a copy of cvs-cli from your favorite
distro.

2) Then just type:
'cd <your phpgroupware dir>; cvs update -dP'.

You can do step 2 as many times in a day as you wish, and
will always get the most current bug fixes.

Thanks,

Dave Hall <skwashd>
Project AdministratorIn charge of this item.
Mon 15 Sep 2003 06:47:45 PM UTC, original submission:

in certain conditions, preferences are systematically reset to some default values, and a user is unable to permanently set any preference. when he tries to change a setting, it seems to be set on the first page that comes back, but it falls back to the default again on the next page.
My guess is that a bug in function verify_basic_settings() in class phpgwapi.preferences. It seems to be responsible for deleting a user's preferences. the problem goes away if I add the line
$this->read_repository();
at the beginning of the function. The situation seems similar to the problem I had identified in [bug #1352]

Michael Totschnig <totschnig>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 22 Sep 2003 08:16:12 AM UTCskwashdOpen/ClosedOpen=>(Error - Not Found)
Fri 19 Sep 2003 09:19:32 AM UTCskwashdAssigned toNone=>NA
Fri 19 Sep 2003 09:19:31 AM UTCskwashdStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1