Results 1 to 8 of 8

Thread: Cannot add new field

  1. #1
    SOEN is offline Senior Member
    Join Date
    Apr 2010
    Posts
    21

    Default Cannot add new field

    Hello,

    I try to add a field from Studio - Contacts - Fields but none of the fields (in none of the other modules also) are displayed and I do not get the option to add field.
    In my IE browser I see (down on the left corner) 'Error on Page' when I click on it, this is the error which I get: Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
    Timestamp: Thu, 8 Jul 2010 14:27:58 UTC


    Message: Exception thrown and not caught
    Line: 9335
    Char: 2424
    Code: 0
    URI: http://192.16.22.1/Sugar/include/jav...rp1_yui.js?c=1

    I tried accessing the fields page also in Firefox but there I also do not get the option to add field. '
    Can anyone help me with this?

    I already created the drop down list for my field and now I need to link the new field (which I need to still add) to this dropdown list which I created.

    Any help or information in this matter is appreciated.

    Thank you!
    Soen

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Cannot add new field

    Where did you install SuagrCRM? On a UNIX/LINUX system?
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    SOEN is offline Senior Member
    Join Date
    Apr 2010
    Posts
    21

    Default Re: Cannot add new field

    Hi,

    No, it's running on Windows Server 2003.

    Thanks again!
    Soen

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Cannot add new field

    Be sure the apache runs as systen and that the htdocs directory is writeable by system.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  5. #5
    SOEN is offline Senior Member
    Join Date
    Apr 2010
    Posts
    21

    Default Re: Cannot add new field

    Hi Kuske,

    Thank you for your feedback.
    I was wondering, how do I check the appache setting and the file setting? Where do I find this on the server? Is it in the wamp folder (on C) and the Sugar folder?

    I am really new to this, I really appreciate you help.


    Thanks again!

    Soen

  6. #6
    SOEN is offline Senior Member
    Join Date
    Apr 2010
    Posts
    21

    Default Re: Cannot add new field

    Hi Kuske,

    I attached a print screen with the apache setting I think you mentioned to check.
    Can you advise if this is what you meant and if the setting is correct?

    I can't find the folder 'htdocs' where should I look for this?

    Thanks again!!
    Attached Images Attached Images  

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Cannot add new field

    How blind I was!
    On your system you have php 5.3 !
    In php 5.3 the object model has been changed so that the studio is not able to run correctly.
    You should downgrade to a php verson < 5.3

    Additonally (!) you should change the module
    include/javascript/sugar_grp1_yui.js

    Find the definition of “parse:function” and change that definition as follows:
    PHP Code:
    YAHOO.lang.JSON=(function(){var l=YAHOO.lang,_UNICODE_EXCEPTIONS=/[u0000u00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,_ESCAPES=/(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?d+(?:.d*)?(?:[eE][+-]?d+)?/g,_BRACKETS=/(?:^|:|,)(?:s*[)+/g,_INVALID=/^[],:{}s]*$/,_SPECIAL_CHARS=/["\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={"b":"b","t":"t","n":"n","f":"f","r":"r",'"':'"',"":""};function _revive(data,reviver){var walk=function(o,key){var k,v,value=o[key];if(value&&typeof value==="object"){for(k in value){if(l.hasOwnProperty(value,k)){v=walk(value,k);if(v===undefined){delete value[k];}else{value[k]=v;}}}}return reviver.call(o,key,value);};return typeof reviver==="function"?walk({"":data},""):data;}function _char(c){if(!_CHARS[c]){_CHARS[c]="u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4);}return _CHARS[c];}function _prepare(s){return s.replace(_UNICODE_EXCEPTIONS,_char);}function _isValid(str){return l.isString(str)&&_INVALID.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""));}function _string(s){return'"'+s.replace(_SPECIAL_CHARS,_char)+'"';}function _stringify(h,key,d,w,pstack){var o=typeof w==="function"?w.call(h,key,h[key]):h[key],i,len,j,k,v,isArray,a;if(o instanceof Date){o=l.JSON.dateToString(o);}else{if(o instanceof String||o instanceof Boolean||o instanceof Number){o=o.valueOf();}}switch(typeof o){case"string":return _string(o);case"number":return isFinite(o)?String(o):"null";case"boolean":return String(o);case"object":if(o===null){return"null";}for(i=pstack.length-1;i>=0;--i){if(pstack[i]===o){return"null";}}pstack[pstack.length]=o;a=[];isArray=l.isArray(o);if(d>0){if(isArray){for(i=o.length-1;i>=0;--i){a[i]=_stringify(o,i,d-1,w,pstack)||"null";}}else{j=0;if(l.isArray(w)){for(i=0,len=w.length;i<len;++i){k=w[i];v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v;}}}else{for(k in o){if(typeof k==="string"&&l.hasOwnProperty(o,k)){v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v;}}}}a.sort();}}pstack.pop();return isArray?"["+a.join(",")+"]":"{"+a.join(",")+"}";}return undefined;}return{isValid:function(s){return _isValid(_prepare(s));},
    //KUSKE
    /****** old function:
    parse:function(s,reviver)
    {
       s=_prepare(s);
       if(_isValid(s))
       {
          return _revive(eval("
    ("+s+")"),reviver);
       }
       throw new SyntaxError("
    parseJSON");
    },
    ******/
    // new function:
    parse:function(s,reviver)
    {
       s=_prepare(s);
       while (s.indexOf("
    ufeff") != -1) 
       {
          s = s.replace("
    ufeff", "");
       }
       if(_isValid(s))
       {
          return _revive(eval("
    ("+s+")"),reviver);
       }
       //throw new SyntaxError("
    parseJSON");
    },
    //KUSKE   
    stringify:function(o,w,d){if(o!==undefined){if(l.isArray(w)){w=(function(a){var uniq=[],map={},v,i,j,len;for(i=0,j=0,len=a.length;i<len;++i){v=a[i];if(typeof v==="
    string"&&map[v]===undefined){uniq[(map[v]=j++)]=v;}}return uniq;})(w);}d=d>=0?d:1/0;return _stringify({"":o},"",d,w,[]);}return undefined;},dateToString:function(d){function _zeroPad(v){return v<10?"0"+v:v;}return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+":"+_zeroPad(d.getUTCMinutes())+":"+_zeroPad(d.getUTCSeconds())+"Z";},stringToDate:function(str){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/.test(str)){var d=new Date();d.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);d.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);return d;}return str;}};})();YAHOO.register("json",YAHOO.lang.JSON,{version:"2.7.0",build:"1799"});// End of File include/javascript/yui/build/json/json-min.js 
    The htdocs directory is the parent directory of your sugarcrm install directory.(I hope so)
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  8. #8
    cheryltisland is offline Member
    Join Date
    Dec 2008
    Location
    Chandler, AZ
    Posts
    5

    Default Re: Cannot add new field

    Making the modifications you recommend has gotten rid of the parseJSON error in firebug, but now firebug presents this error:
    ajaxResponse is undefined
    modules/ModuleBuilder/javascript/ModuleBuilder.js line 487

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 20
    Last Post: 2010-09-27, 09:56 AM
  2. Replies: 0
    Last Post: 2010-01-14, 02:56 PM
  3. Replies: 4
    Last Post: 2009-02-23, 12:45 PM
  4. Replies: 7
    Last Post: 2009-01-21, 07:04 PM
  5. Replies: 10
    Last Post: 2006-11-21, 01:59 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
  •