Results 1 to 7 of 7

Thread: Meeting invites produces fatal error.

  1. #1
    kickedmydog is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Online
    Posts
    107

    Exclamation Meeting invites produces fatal error when adding contacts as invites.

    PHP 4.4.1
    MySQL 4.1.21
    Apache 2.5
    RHEL 4
    Sugar OS 4.5.0b

    When sending meeting invites I am getting a fatal error of:
    Fatal error: Call to undefined function: getpreference() in /var/www/vhosts/XXXXXX/httpdocs/staff/crm/modules/UserPreferences/UserPreference.php on line 200

    Anyone else getting this? What is the recommended fix?

    Thanks
    Last edited by kickedmydog; 2006-09-15 at 08:30 PM. Reason: More clear topic & Add Version
    Dogs are not soccer balls.

  2. #2
    kickedmydog is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Online
    Posts
    107

    Default Re: Meeting invites produces fatal error.

    Bug Number: 9062
    Dogs are not soccer balls.

  3. #3
    kickedmydog is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Online
    Posts
    107

    Exclamation Re: Meeting invites produces fatal error.

    More information

    This only occurs when I add a contact to the invitee list. Contacts don't apparently have a time zone which the code is looking for... $timeZone = $user->getPreference("timezone");

    If I take contacts off it works.
    Dogs are not soccer balls.

  4. #4
    alfonso_ce is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    21

    Wink Re: Meeting invites produces fatal error.

    to solve change in UserPreferences.php :

    from

    if(!isset($user)) $user = $GLOBAL['current_user']

    to

    if(!isset($user) || (strtolower(get_class($user)) == 'contact ) ) $user = $GLOBAL['current_user']

  5. #5
    kickedmydog is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Online
    Posts
    107

    Thumbs down Re: Meeting invites produces fatal error.

    Quote Originally Posted by alfonso_ce
    to solve change in UserPreferences.php :

    from

    if(!isset($user)) $user = $GLOBAL['current_user']

    to

    if(!isset($user) || (strtolower(get_class($user)) == 'contact ) ) $user = $GLOBAL['current_user']
    That didn't work. Still get the same error message. Also there should be another ' after contact.
    Dogs are not soccer balls.

  6. #6
    alfonso_ce is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    21

    Default Re: Meeting invites produces fatal error.

    To me it works, see better.
    function getUserDateTimePreferences($user = null) {
    global $sugar_config, $db, $timezones;
    //if(!isset($user)) $user = $GLOBALS['current_user']; alfonso
    if(!isset($user) ||( strtolower(get_class($user)) == 'contact' ) ) $user = $GLOBALS['current_user'];
    $prefDate = array();

  7. #7
    kickedmydog is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Online
    Posts
    107

    Thumbs up Re: Meeting invites produces fatal error.

    Quote Originally Posted by alfonso_ce
    To me it works, see better.
    function getUserDateTimePreferences($user = null) {
    global $sugar_config, $db, $timezones;
    //if(!isset($user)) $user = $GLOBALS['current_user']; alfonso
    if(!isset($user) ||( strtolower(get_class($user)) == 'contact' ) ) $user = $GLOBALS['current_user'];
    $prefDate = array();

    Ok, that worked. Sweet! Good work!
    Dogs are not soccer balls.

Thread Information

Users Browsing this Thread

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

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
  •