Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Fields link not working

  1. #1
    carson.fastwiki is offline Junior Member
    Join Date
    Dec 2009
    Posts
    2

    Default Fields link not working

    None of the Fields links in the modules studio work. When clicked, the Fields editor does not appear.

    We cannot add new fields.

    We're using 5.5.0 RC4

    Is this a known issue?

  2. #2
    carson.fastwiki is offline Junior Member
    Join Date
    Dec 2009
    Posts
    2

    Default Re: Fields link not working

    Using firebug with display errors, when the Fields icon is clicked, there is a "parseJSON" error in the firebug console.

  3. #3
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Fields link not working

    It is likely a permissions issue. When permissions are not set correctly, the JavaScript based features tend to not work correctly.
    Regards,

    Angel Magańa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  4. #4
    simonhuck is offline Junior Member
    Join Date
    Apr 2007
    Location
    Munich - Germany
    Posts
    3

    Default Re: Fields link not working

    same problem. Update in december to 5.5 an now i can't add a new field. Same json error. definitly no permision problem. ( same as here: http://www.sugarcrm.com/forums/showt...ight=parseJSON)

  5. #5
    plrock is offline Member
    Join Date
    Dec 2009
    Posts
    5

    Default Re: Fields link not working

    I also encountered the same problem. account the module can not be used, it may be caused by coding problems. I used to track the output of the filebug in front of more than a lot of blank lines. Get rid of these blank lines on it.
    Modify the method:
    modules \ ModuleBuilder \ MB \ AjaxCompose.php 47 lines
    function getJavascript ()
    (
    ob_end_clean (); / / add this
    if (! empty ($ this-> sections [ 'center'])){ if (empty ($ this-> sections [' east']))$ this-> addSection ( 'east','','', 'deactivate');
    if (empty ($ this-> sections [ 'east2']))$ this-> addSection (' east2 ','','',' deactivate ');
    )

    $ json = getJSONobj ();
    return $ json-> encode ($ this-> sections);

    )

    .................................................. ..........

    我也遇到同样的问题。account模块不能用,可能是编码引起的问题。我用filebug跟踪到输出的结 果前面多了许多空行。清除掉这些空行,就可以了。
    修改方法:
    modules\ModuleBuilder\MB\AjaxCompose.php 47行
    function getJavascript()
    {
    ob_end_clean(); //加上这
    if(!empty($this->sections['center'])){ if(empty($this->sections['east']))$this->addSection('east', '', '', 'deactivate');
    if(empty($this->sections['east2']))$this->addSection('east2', '', '', 'deactivate');
    }

    $json = getJSONobj();
    return $json->encode($this->sections);

    }

  6. #6
    goko is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Stockholm, Sweden
    Posts
    69

    Angry Re: Fields link not working

    I am having the same problem after upgrade from 5.2 to 5.5.0 (build 6653) and have reported a bug for this.

    Unfortunately plrock's fix does not work for me.

    Göran Korsgren

  7. #7
    goko is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Stockholm, Sweden
    Posts
    69

    Default Re: Fields link not working

    Quote Originally Posted by goko View Post
    I am having the same problem after upgrade from 5.2 to 5.5.0 (build 6653) and have reported a bug for this.

    Unfortunately plrock's fix does not work for me.
    I had an idea for a workaround:
    to try to "emulate" studios "Add field" by hand.

    I have
    1. added a field in the <module>_cstm database table
    2. added a correponding mod_strings entry in the custom/modules/<module>/language/en_us.lang.php file

    and then did a repair on the affected module
    but that was not enough, the field does not show up in Studio.

    What more do I have to do to manually add a custom field to a module?

    Göran Korsgren

  8. #8
    simonhuck is offline Junior Member
    Join Date
    Apr 2007
    Location
    Munich - Germany
    Posts
    3

    Default Re: Fields link not working

    perfect plrock - working! but ob_end_clean(); and not ob_end_clean (); (there is a space in the post. delete it otherwise studio is not working )

  9. #9
    dipensoni is offline Member
    Join Date
    Aug 2010
    Posts
    7

    Thumbs up Re: Fields link not working

    set
    display_errors = Off
    in your php.ini
    i have set this and it works

  10. #10
    angelababy is offline Banned
    Join Date
    Jul 2010
    Posts
    60

    Default Re: Fields link not working

    Same json error. definitly no permision problem.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2010-05-18, 12:30 AM
  2. 5.0 > 5.1 upgrade - link back to accounts from calls not working
    By stevenjohn in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2008-09-25, 03:01 PM
  3. Email Campaign: OPt-out Link Not Working
    By leemoney24 in forum Help
    Replies: 1
    Last Post: 2007-08-22, 07:41 PM
  4. Link new drop down to existing fields
    By sinkplaat in forum Help
    Replies: 1
    Last Post: 2007-03-21, 04:17 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
  •