Results 1 to 6 of 6
Like Tree2Likes
  • 1 Post By kuske
  • 1 Post By rafael.q.g@hotmail.com

Thread: customs fileds vardefs true location

  1. #1
    avas325 is offline Junior Member
    Join Date
    Jul 2011
    Posts
    5

    Default customs fileds vardefs true location

    Hi guys.

    I'm relatively new to Sugar, but already run into a big problem.
    using Sugar 6.3.0 CE

    While creating a custom filed in Meetings something went wrong, so the field did not appear properly in the studio. I deleted it, while in Studio.

    Now the entire module crashed.
    Other modules are fine. but the meetings dashlet and scheduler do not work.

    The error I receiving is
    Fatal error: Cannot access empty property in C:\xampp\htdocs\sugar\data\SugarBean.php on line 2354


    after searching for the error, discovered this in Meetingsvardef.php in CACHE/Module/Meetings
    '' =>
    array (
    'required' => false,
    'source' => 'custom_fields',
    'name' => '',
    'vname' => 'LBL_.MEETING_TYPE',

    It is at the beginning of describing new customs fields.
    There is no space between '' and there is a space between LBL_ and MEETING

    100% sure done the field properly at the first place, as so far done many.
    So I assume the field was not deleted properly.

    The temp solution is to rem the entire block of code for the field in the Meetingvardef.php
    Works perfectly but until the next rebuild of the file.

    Now the question.
    Where I can find vardefs for the customs field for Meetings module and Ant try to remove the error from there so it will not be recreated in the CACH vardef file.

    Spend hours searching CUSTOM, INCLUDE, EXTENSION, EXT folders as well MODULES folder. I also even tried to delete all references for meeting in the CUSTOM folder, cleared all cache and dropped the meetings_cstm table in the DB

    As the phoenix bird it comes back to live and creates Meetingsvards.php in CACHE with the error.
    repair and rebuild does not help

    Any help will be very appreciated.

    Cheers,
    Alexey

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

    Default Re: customs fileds vardefs true location

    The definition of a custom field like yours in meetings is stored in database table fields_meta_data.
    Other additional attributes are stored in the directory /custom /Extension/modules/Meetings/Ext/Vardefs/
    Here you can find some small files with der additional attributes named sugarfield_yourfield_c.php
    If you delete a field by hand you must delete the associated field too.
    On a admin - repair, all the samll files are collected in one file located for Meetings in
    /custom/modules/meetings/ext/vardefs/vardefs.ext.php

    You can even delete the appropriate lines by hand in this file instead of doing an admini - repair.
    avas325 likes this.
    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
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: customs fileds vardefs true location

    yes, fields created from studio has its metadata stored on database.
    But you can overwrite its vardefs from Extentions, so you just have to create a file named:
    /custom/Extention/modules/<module_name>/Ext/vardefs/<any_name.php>
    with content:
    <?php
    $dictonary['<module_name>']['fields']['<property>']='new value;'
    ?>
    avas325 likes this.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  4. #4
    avas325 is offline Junior Member
    Join Date
    Jul 2011
    Posts
    5

    Default Re: customs fileds vardefs true location

    Yes, thanks a lot this. Just sorted it out. All works perfectly.

  5. #5
    avas325 is offline Junior Member
    Join Date
    Jul 2011
    Posts
    5

    Default Re: customs fileds vardefs true location

    Yes, thanks a lot this. Just sorted it out. All works perfectly.

  6. #6
    avas325 is offline Junior Member
    Join Date
    Jul 2011
    Posts
    5

    Default Re: customs fileds vardefs true location

    Thanks a lot. All was fixed and works perfectly well.
    Alexey

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extended vardefs vardefs.ext.php vanishes after deploy
    By amrutha in forum Developer Help
    Replies: 3
    Last Post: 2011-06-10, 12:13 PM
  2. 5.2.0k to 5.5.0 customs field, performance
    By PeH in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2010-01-26, 05:47 PM
  3. Accounts customs module subpanel
    By chrislynch8 in forum Help
    Replies: 5
    Last Post: 2009-08-13, 03:43 PM
  4. Custom vardefs do not overwrite original vardefs
    By TheEyes in forum Developer Help
    Replies: 5
    Last Post: 2009-07-22, 09:56 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
  •