Having performed the upgrade from 7.4 to 7.5.1, I now see multiple errors relating to custom logic in the suitecrm.log file when I try to create account, contact or opportunity.
Unable to load custom logic file: custom/include/social/hooks.php
Unable to load custom logic file: custom/modules/Accounts/AccountsJjwg_MapsLogicHook.php
Unable to load custom logic file: custom/modules/Contacts/ContactsJjwg_MapsLogicHook.php
Unable to load custom logic file: custom/modules/Contacts/updatePortal.php
Unable to load custom logic file: custom/modules/Opportunities/OpportunitiesJjwg_MapsLogicHook.php
Unable to load related bean by id
I have tried performing âquick repair and rebuildâ and âRebuild Relationshipsâ but the errors are still appearing.
Those files are physically missing from those locations following an upgrade, but are available in the backup of the original 7.4 version.
What would be the best of resolving this issue, simply copying the missing files from the backup?
The main question is why did it happen and how to find whether anymore files are missing.
for exemple : use sublimetext https://www.sublimetext.com
OPEN root directory of suitecrm
Search in FILES : âcustom/include/social/hooks.phpâ and other files
In found result : remove âcustom/â
Thank you, I am perfectly capable of using both grep and vim.
I was worried that that something wrong happened during upgrade, as usually such procedure does not require making undocumented changes in the source of the application.
to be exact: you need /custom/application/Ext/TableDictionary/tabledictionary.ext.php
to have most links changed⌠remove âcustom/â
BUT NOT from here: include(âcustom/metadata/am_projectholidays_projectMetaData.phpâ);
This is what tabledictionary.ext.php should look like after your edits:
<?php
//WARNING: The contents of this file are auto-generated
//WARNING: The contents of this file are auto-generated
include('metadata/aos_quotes_projectMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/securitygroups_usersMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/securitygroups_acl_rolesMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/am_projecttemplates_project_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/aos_quotes_aos_contractsMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/project_users_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('custom/metadata/am_projectholidays_projectMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/jjwg_maps_jjwg_areasMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/fp_events_prospects_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/project_contacts_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/jjwg_maps_jjwg_markersMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/fp_events_contactsMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/fp_events_fp_event_locations_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/aow_processed_aow_actionsMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/fp_events_leads_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/securitygroups_recordsMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/fp_events_fp_event_delegates_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/fp_event_locations_fp_events_1MetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/am_tasktemplates_am_projecttemplatesMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/aos_contracts_documentsMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/securitygroups_defaultsMetaData.php');
//WARNING: The contents of this file are auto-generated
include('metadata/aos_quotes_aos_invoicesMetaData.php');
?>