Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: FATAL SugarCRM - Error fetching relationship from cache

  1. #1
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default FATAL SugarCRM - Error fetching relationship from cache

    Hi all.


    I have run into a problem with a couple of module relationships, and was hoping someone could point me in the right direction here. One relationship is between contacts and a custom module the other is between two custom modules, for some reason all of the values(i.e. every contact in the system) show up in the sub panel whether they have been associated or not. When I look at the sugarcrmlog I see a lot of the folowing

    FATAL SugarCRM - Error fetching relationship from cache custom_a_custom_b



    This doesn't happen on all of my relationships just these two. I have run the repairs on relationships, database, and indexes and cleared the vardef cache. I have also verified that the entire cache directory is world writable , and that my php.ini file has safe mode off and a 128MB memory limit.

    Any one have any ideas I can try to get this fixed?

    Thanks

  2. #2
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Forgot my details

    Sugar CE 5.0.0f
    MSQL running on a Gentoo linux system.

  3. #3
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Anybody got any ideas for me here? I really need to find a resolution to this problem.

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Hi Nisbet

    Go to Admin -> Repair -> Rebuild Relationships / Rebuild Database

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Thanks for the reply,

    I have done that many times, and it doesn't seem to resolve the problem

  6. #6
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Can someone from the sugar team point me to where the html for these relationships is rendered, so I can try and get this problem resolved?


    Thanks

  7. #7
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Ok, I will try presenting this problem another way. Does anyone know if it is possible to disable the use of the cache with in Sugar? I am guessing not, but I am really grasping at straws here.


    Thanks

  8. #8
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    Look at the files in the metadata directory. Your custom relationships are defined there.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  9. #9
    lijith's Avatar
    lijith is offline Sugar Community Member
    Join Date
    Jun 2009
    Location
    India
    Posts
    67

    Thumbs up Re: FATAL SugarCRM - Error fetching relationship from cache

    Quote Originally Posted by andopes View Post
    Hi Nisbet

    Go to Admin -> Repair -> Rebuild Relationships / Rebuild Database

    Cheers
    This resolves my proble. Thanks :-)
    Lijith M Gopinath
    email : phpbugs@live.com
    website : PHP-Bugs

  10. #10
    Briedis is offline Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Default Re: FATAL SugarCRM - Error fetching relationship from cache

    I have stucked with this "Error fetching relationship from cache " too.
    I have created relationship between to my custom modules, this relation din't work normaly so I removed it.

    After removal of reletionship ( or may be even after it creation)

    when I click open right module in edit, detail view or close from edit view without saving ( cancel) one record in sugarcrm.log apears "[FATAL] Error fetching relationship from cache <my-relationship-name>"

    when save record , four records like this apears:
    FATAL] Error fetching relationship from cache <my-relationship-name>
    [FATAL] Error fetching relationship from cache <my-relationship-name>
    [FATAL] Failed to load relationship viaq_templ_q_quate_detail while saving <module Name>
    [FATAL] Error fetching relationship from cache <my-relationship-name>

    I have rebulded relationships, DB,EXT ETC few times. Also I have try to remove relationship as descrbed there

    I have not found any files like
    custom/Extension/application/Ext/TableDictionary/<relationship_name>.php
    or custom/metadata/<relationship_name>Meta.php

    but inside file custom/Extension/modules/<Right ModuleName>/Ext/Vardefs/vardefs.ext.php i have found lines with such code
    PHP Code:
    $dictionary["ViaQ_Quate_detail"]["fields"]["viaq_templ_q_quate_detail"] = array (
      
    'name' => 'viaq_templ_q_quate_detail',
      
    'type' => 'link',
      
    'relationship' => 'viaq_templ_detail_viaq_quate_detail',
      
    'source' => 'non-db',
      
    'vname' => 'LBL_VIAQ_TEMPL_DETAIL_VIAQ_QUATE_DETAIL_FROM_VIAQ_TEMPL_DETAIL_TITLE',
    );
    $dictionary["ViaQ_Quate_detail"]["fields"]["viaq_templ_te_detail_name"] = array (
      
    'name' => 'viaq_templ_te_detail_name',
      
    'type' => 'relate',
      
    'source' => 'non-db',
      
    'vname' => 'LBL_VIAQ_TEMPL_DETAIL_VIAQ_QUATE_DETAIL_FROM_VIAQ_TEMPL_DETAIL_TITLE',
      
    'save' => true,
      
    'id_name' => 'viaq_templ4a9a_detail_ida',
      
    'link' => 'viaq_templ_q_quate_detail',
      
    'table' => 'viaq_templ_detail',
      
    'module' => 'ViaQ_Templ_detail',
      
    'rname' => 'name',
    );
    $dictionary["ViaQ_Quate_detail"]["fields"]["viaq_templ4a9a_detail_ida"] = array (
      
    'name' => 'viaq_templ4a9a_detail_ida',
      
    'type' => 'link',
      
    'relationship' => 'viaq_templ_detail_viaq_quate_detail',
      
    'source' => 'non-db',
      
    'reportable' => false,
      
    'side' => 'right',
      
    'vname' => 'LBL_VIAQ_TEMPL_DETAIL_VIAQ_QUATE_DETAIL_FROM_VIAQ_QUATE_DETAIL_TITLE',
    ); 
    When I comment it nothing happens. After rebuilding of relationships I found this lines uncommented again.

    Any help is very appreciated

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enabling JSON
    By kageeslin in forum Developer Help
    Replies: 11
    Last Post: 2009-01-24, 01:57 PM
  2. Check Inbound Mail scheduler item fails
    By stephen.bass in forum Help
    Replies: 3
    Last Post: 2008-07-01, 09:55 PM
  3. Problem with step 7 setup wizard (creating default users)
    By Sander in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-08-27, 10:08 PM
  4. SugarOS-4.5.1c Installation ERROR
    By hazen in forum Installation and Upgrade Help
    Replies: 8
    Last Post: 2007-08-02, 06:16 PM
  5. Query erro after 4.0 upgrade
    By ldebernardini in forum Help
    Replies: 20
    Last Post: 2006-01-13, 05:10 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
  •