Results 1 to 3 of 3

Thread: cron problems - unserialize error

  1. #1
    hankster is offline Member
    Join Date
    Jun 2010
    Posts
    6

    Default cron problems - unserialize error

    When I run cron.php I get these messages:

    PHP Notice: unserialize(): Error at offset 4535 of 49151 bytes in /home/sugar/httpd/html/modules/UserPreferences/UserPreference.php on line 168
    PHP Notice: unserialize(): Error at offset 4535 of 49151 bytes in /home/sugar/httpd/html/modules/UserPreferences/UserPreference.php on line 169

    The user is admin. The category is global.

    How can I repair admin global prefs?

    More details:

    I'm using the Community Editions with "You have the latest version available".

    The piece of code in error is here:

    $row = $GLOBALS['db']->fetchByAssoc($result);
    if ($row) {

    $_SESSION[$user->user_name . '_PREFERENCES'][$category] = unserialize(base64_decode($row['contents']));
    $user->user_preferences[$category] = unserialize(base64_decode($row['contents']));
    return true;
    }
    }


    Which prints out the decoded contents as follows (user, category, contents):

    admin
    global

    a:55:{s:8:"timezone";s:19:"America/Los_Angeles";s:2:"ut";s:1:"1";s:19:"Users_USER_ORD E
    ....
    "return_module";s:8:"Accounts";s:21:"current_query _by_page";s:120880:"YTo3MTp7czoxMzoicmV0dXJuX2FjdG lvbiI7czoxMDoiRGV0YWlsVmlldyI7czoxMzoicmV0dXJuX21v ZHVsZSI7czo4OiJBY2NvdW50cyI7czoxMDoibWFzc3VwZGF0ZS I7czo1OiJmYWxzZSI7czo2OiJkZWxldGUiO3M6NToiZmFsc2Ui O3M6NToibWVyZ2UiO3M6NToiZmFsc2UiO3M6MjE6ImN1cnJlbn RfcXVlcnlfYnlfcGFnZSI7czo4NzE0MDoiWVRvM01UcDdjem94 TXpvaWNtVjBkWEp1WDJGamRHbHZiaUk3Y3pveE1Eb2lSR1YwWV dsc1ZtbGxkeUk3Y3pveE16b2ljbVYwZFhKdVgyMXZaSFZzWlNJ N2N6bzRPaUpCWTJOdmRXNTBjeUk3Y3pveE1Eb2liV0Z6YzNWd1 pHRjBaU0k3Y3pvMU9pSm1ZV3h6WlNJN2N6bzJPaUprWld4bGRH VWlPM002TlRvaVptRnNjMlVpTzNNNk5Ub2liV1Z5WjJVaU8zTT ZOVG9pWm1Gc2MyVWlPM002TWpFNkltTjFjbkpsYm5SZmNYVmxj bmxmWW5sZmNHRm5aU0k3Y3pvMk1UZ3p

    ....

    So there seems to be a long string "s:120880:"YTo3MTp7czoxMzo" which is blowing up.

    Any ideas?

    Thanks

  2. #2
    hankster is offline Member
    Join Date
    Jun 2010
    Posts
    6

    Default Re: cron problems - unserialize error

    After trying various repairs on the database and saving new admin prefs this problem went away. I don't know what exactly fixed it, but it's gone now.

  3. #3
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: cron problems - unserialize error

    Exactly what version are you running ... if it's 6, then you should expect problems as this is not production ready ... if you need a production version, then goto 5.5.x

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Notice: unserialize() SugarTheme.php
    By timwebster in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2010-03-26, 05:06 PM
  2. Parse error: syntax error, unexpected T_STRING from cron 5.1.0b
    By johnsopaul in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2008-12-04, 09:54 PM
  3. php - cron job error
    By ksooty in forum Help
    Replies: 4
    Last Post: 2007-07-02, 07:54 AM
  4. Cron Error
    By Proware in forum Help
    Replies: 0
    Last Post: 2006-05-08, 09:34 PM
  5. Cron.php error on Mac OS X server
    By siros in forum Help
    Replies: 4
    Last Post: 2006-01-26, 07:14 AM

Tags for this Thread

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
  •