Results 1 to 7 of 7

Thread: HELP I broke accounts module

  1. #1
    summitsys is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    12

    Default HELP I broke accounts module

    Help.... I added an extra field with a lable that had a colon ( : ) in it, and it crashed accounts module page...


    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/sugar/custom/modules/Accounts/language/en_us.lang.php on line 7


    How can I fix it???

  2. #2
    gosugar is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    108

    Default Re: HELP I broke accounts module

    Well, go the folder where the error is and fix it custom/modules/Accounts/language/en_us.lang.php on line 7!

  3. #3
    nrage is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    17

    Default Re: HELP I broke accounts module

    most probably you forgot to put a qoutation mark or a comma))

  4. #4
    summitsys is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    12

    Default Re: HELP I broke accounts module

    I don't understand where it is broke at. I added the lable to the accounts edit view, and now the accounts module doesn't work. Line 7 in language/en_us.lang.php doesn't seam to be anything.....

  5. #5
    nrage is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    17

    Default Re: HELP I broke accounts module

    en_us.lang.php sets the array of labels. and it defines their text representation on the site. When you added a new label you must have applied some changes to this file. and it looks like you missed some quotation mark or put an extra one.
    New record to be added to this file for a new label should look somehow like this
    'LBL_MODULE_NAME' => 'Accounts',

    just search by the name of your label you added

  6. #6
    summitsys is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    12

    Default Re: HELP I broke accounts module

    The label is not in there...... only the default sugar ones are.... what did I do..... all I did was change the name of a lable for an extra field to have a : at the end.....

  7. #7
    gosugar is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    108

    Default Re: HELP I broke accounts module

    Post the editview file (the one that you make a change to) up here so we can take a look. You should go back to where you changed thing in the edit view and remove the change.

    In order to make the label have and extra : at the end, you need to add the label in the language file. Changing it in editview does not do anything!

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
  •