Results 1 to 3 of 3

Thread: Error When Editing a User Record

  1. #1
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Unhappy Error When Editing a User Record

    I've recently upgraded to 5.5 from 5.2. In the 5.5 version, whenever I am viewing a user record and click edit, I receive the following error:

    Fatal error: Call to a member function assign() on a non-object in D:\wamp\www\SugarCRM\modules\DynamicFields\Dynamic Field.php on line 745

    Here is the code that is referred to:

    PHP Code:
    function populateXTPL(&$xtpl$view){
        if(
    $this->bean->hasCustomFields()){
            
    $results $this->getAllFieldsView($view'xtpl');
            foreach(
    $results as $name=>$value){
                if(
    is_array($value['xtpl'])){
                    foreach(
    $value['xtpl'] as $xName=>$xValue){
                        
    $xtpl->assign(strtoupper($xName), $xValue); // <--- Line 745
                    
    }
                }else{
                    
    $xtpl->assign(strtoupper($name), $value['xtpl']);
                }
            }
        }

    The error happens when trying to edit any user record.

    I restored my 5.2 version, and the error does not occur.

    Any ideas?
    Last edited by chad.hutchins; 2010-01-06 at 06:36 PM. Reason: mispelling

  2. #2
    JBalcerzak is offline Member
    Join Date
    Jun 2008
    Posts
    13

    Default Re: Error When Editing a User Record

    I'm getting this same error so if anybody has a solution, that would be great. Thanks!

  3. #3
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Default Re: Error When Editing a User Record

    A more active discussion on this can be found in this thread:

    http://www.sugarcrm.com/forums/showthread.php?t=55571

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. disable editing on a record
    By polluxmr2 in forum Developer Help
    Replies: 7
    Last Post: 2009-06-03, 06:16 PM
  2. problem in editing the record
    By atik in forum Developer Help
    Replies: 4
    Last Post: 2009-04-01, 01:39 PM
  3. Locking record while editing by another user in 5.0 CE
    By TommyL in forum General Discussion
    Replies: 5
    Last Post: 2008-09-30, 02:25 AM
  4. Replies: 0
    Last Post: 2006-06-23, 09:55 PM
  5. Error in version 2.5.1 when editing a user
    By jasonadmin in forum Help
    Replies: 0
    Last Post: 2005-02-27, 06:29 PM

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
  •