Results 1 to 3 of 3

Thread: Syntax error

  1. #1
    lmiller is offline Sugar Community Member
    Join Date
    Feb 2010
    Posts
    106

    Default Syntax error

    $dictionary['Note']['fields']['name']['type'] = 'enum',

    Sugar has completely blocked out studio and notes, due to the fact that there is a syntax error in that line. What should it show? The location of the file is
    /public_html/custom/modules/Notes/Ext/Vardefs

    The Contents of the file are

    <?php
    $dictionary['Note']['fields']['name']['type'] = 'enum',
    $dictionary['Note']['fields']['name']['options'] = 'note_subject_list',
    ?>

    and the error reads

    Parse error: syntax error, unexpected ',' in /home/ewsseo/public_html/custom/modules/Notes/Ext/Vardefs/vardefs.ext.php on line 5

    How do I fix this? It's super high priority, because the WHOLE note field is down, and we rely on that.

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

    Default Re: Syntax error

    Your commas need to be semi-colons. Change it accordingly and do a repair and it should be fine.

    BTW, the file belongs in /custom/Extension/modules/Notes/Ext/Vardefs
    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)
    ______________________________________________

  3. #3
    Alexolog is offline Junior Member
    Join Date
    Apr 2010
    Posts
    1

    Default Re: Syntax error

    Same problem.
    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 2009-12-21, 10:49 AM
  2. Replies: 1
    Last Post: 2009-04-09, 08:46 PM
  3. Parse error: syntax error, unexpected T_STRING, Accountvardefs.php
    By jefft in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2009-02-12, 10:35 PM
  4. Replies: 1
    Last Post: 2009-02-12, 04:33 PM
  5. Replies: 2
    Last Post: 2008-08-06, 11:26 AM

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
  •