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
Bookmarks