Results 1 to 7 of 7

Thread: timezone not being saved for one user

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default timezone not being saved for one user

    I have a user who after resetting his user preferences noe cannot save the timezone

    every time he logs on it asks him for his timezone

    any help solving this would be much appreciated
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: timezone not being saved for one user

    I had a similar issue at one point. It may be caused by one of the two issues I posted at http://www.sugarcrm.com/forums/print...2&pp=10&page=2

  3. #3
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: timezone not being saved for one user

    I have narrowed the issue down a bit

    It happens to a user if they reset their user preferences

    once they have done this then they have to enter timezone on login and all changes to home page/dashlets are lost when they logout
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: timezone not being saved for one user

    I fixed this by by deleting all records from the user_preferences table
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: timezone not being saved for one user

    Mike,

    That sounds exactly like what we had. What was probably happening was the uppercase vs lowercase issue for the category.

  6. #6
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: timezone not being saved for one user

    Quote Originally Posted by eggsurplus View Post
    Mike,

    That sounds exactly like what we had. What was probably happening was the uppercase vs lowercase issue for the category.
    What I found was once a user reset his preferences any subsequent entries into the user_preferences table had assigned_use_id & category fields as null

    Clearing the table fixed this and also meant that search preferences were saved which was another issue I was investigating
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  7. #7
    Taliesin is offline Junior Member
    Join Date
    May 2010
    Posts
    4

    Default Re: timezone not being saved for one user

    Quote Originally Posted by mikesolomon View Post
    What I found was once a user reset his preferences any subsequent entries into the user_preferences table had assigned_use_id & category fields as null

    Clearing the table fixed this and also meant that search preferences were saved which was another issue I was investigating
    Just to say that you don't have to delete the entire contents of the table. Delete those rows where the category field is NULL or the assigned_user_id is the affected user's id code, and this will be sufficient. Saves upsetting a large number of users if you blitz everyone's user preferences.

    That said, I spent most of this morning digging through the code to get to the point that I found the preferences were being saved to blank users in the database. Once I'd found the NULL category fields, finding this thread and the solutions was easy. Still, that's a morning I could have productively spent on something else.

    I've searched but couldn't find a bug filed on this, so I've created one at:

    http://www.sugarcrm.com/crm/support/...6-4c063ee6050b

    For reference, this bug exists for me in the Professional version, 5.2 at the time of posting.

    Taliesin.
    Last edited by Taliesin; 2010-06-02 at 11:34 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User timezone preference via SOAP?
    By pbrunnen1 in forum Developer Help
    Replies: 2
    Last Post: 2008-12-04, 03:43 PM
  2. Replies: 0
    Last Post: 2008-11-03, 08:33 AM
  3. Replies: 6
    Last Post: 2008-07-10, 04:18 PM
  4. Can't save user timezone - always ask for timezone after logon
    By buzznissa in forum General Discussion
    Replies: 0
    Last Post: 2006-09-15, 12:20 PM
  5. User preferences not saved
    By dromin in forum Help
    Replies: 1
    Last Post: 2006-04-07, 12:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •