Results 1 to 9 of 9

Thread: Missing values in Account_Type_Dom

  1. #1
    guhanr is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Missing values in Account_Type_Dom

    Hello!
    I'm running into a strange problem with Account_Type_Dom.

    I was trying to edit the account type called Analyst to read as Advisor in the Dropdown Editor for account_type_dom.After it saved the change, when I went back into the dropdown editor, it shows me no values for account_type_dom and wont show up on the Add Account Page either. As in all the values that were there before seem to have disappeared.

    I tried adding the dropdowns that I need manually- it saves but goes back to being blank when I come back to the editor. I tried a Admin->quick repair - that wont work either.

    Any ideas/help would be much appreciated.

    I'm running Sugar Community Edition, Version 5.2.0a (Build 5447)

    Thanks

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Missing values in Account_Type_Dom

    Check custom\include\language\en_us.lang.php . You can find the last edited dropdown values in the tail of the file.

  3. #3
    guhanr is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Missing values in Account_Type_Dom

    Siva,
    Code:
    <?php
    
    $GLOBALS['app_list_strings']['account_type_dom']=array (
    );
    is all I see in that file.

    I guess what I'm trying to ask is how can (a) bring back default values (or) (b) add values to that dropdown that stay and dont disappear after every save....

  4. #4
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Missing values in Account_Type_Dom

    You can find the default values of dropdowns here "\include\language\en_us.lang.php".

    It is strange that the values are deleted after saving. Did you customized anything related to Dropdown Editor?

  5. #5
    guhanr is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Missing values in Account_Type_Dom

    Did you customized anything related to Dropdown Editor?
    No, I've not customized anything in the Drop down editor. And I havent customized anything else on this installation either. I find it strange that I'm unable to add values through the dropdown editor and even stranger that it resets to nothing after adding!

    After adding values in the editor, I even tried at a Admin->Quick repair of the Accounts Model, but that doesn't help either.

  6. #6
    jepucel is offline Junior Member
    Join Date
    Sep 2007
    Posts
    2

    Default Re: Missing values in Account_Type_Dom

    I am having this same issue with two dropdowns that I have tried to edit (calls_status_dom and lead_status_dom). I have checked the en_us_lang.php file and they appear normal.

    Thank you in advance for your assistance.

  7. #7
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Missing values in Account_Type_Dom

    Have you installed any language pack in your sugar instance?

  8. #8
    guhanr is offline Member
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Missing values in Account_Type_Dom

    @jepucel
    Here is how I solved my problem with Harald Kuske's pointer, in response to a note I sent him.

    Hello Guhan,

    in most of these cases, the issue is produced by unix itself.
    What happens?
    If you change a dropdown, this dropdown is read from /include/language/en_us.lang.php, changed in Dopdown editor and written to /custom/include/language/en_us.lang.php .
    If the Apache process has not the correct rights to create a file in /custom and to write to this file, you will get a corrupted language file.

    Do you have a unix system?
    Does the Apache process has all rights to read/write/execute all directories and files in the whole SuagrCRM tree?

    Search the default_permissions in config.php and
    trye these:

    'default_permissions' =>
    array (
    'dir_mode' => 1528,
    'file_mode' => 432,
    'user' => '',
    'group' => '',
    ),
    greetings
    Harald Kuske
    1. I have a Unix system (shared host)
    2. My permissions in config.php reads exactly as he indicated
    3. I checked recursively for each folder and set permission to 775 and that didnt work so later set it to 777 - that didnt work either.
    4. I even set the en_us.lang.php file specifically to permissions to 777

    Since nothing seemed to work , I did what the dropdown editor was supposed to do. I edited the /custom/include/language/en_us.lang.php file to what I wanted it to display - For now I copy pasted the account_type_dom array from the /include/language/en_us.lang.php file and pasted it into /custom/include/language/en_us.lang.php file and so it works now. I set file permissions to 775 explicitly and recursively for the custom folder and subfolders inside. All was well with the world.

    I dont know what exactly is preventing the drop down editor from doing this directly, but this seemed to band-aid the problem. So far, so good.

    Hope this helps.

  9. #9
    jepucel is offline Junior Member
    Join Date
    Sep 2007
    Posts
    2

    Default Re: Missing values in Account_Type_Dom

    Thanks man! That worked for me as well.

    I did not realize that there was an en_us.lang.php fil in the custom folder as well. I had just tried to change the on the in include folder.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2008-02-19, 03:20 PM
  2. Replies: 0
    Last Post: 2006-02-23, 06:46 PM
  3. Pipeline $ values?
    By crystalsinger in forum Help
    Replies: 1
    Last Post: 2004-09-10, 01:04 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
  •