Unable to load custom logic file: include / SugarSearchEngine / SugarSearchEngineQueueManager.php

Hello,

I have a suitcrm with:

Version 7.8.4

Sugar Version 6.5.24 (Build 509)

when executing the sugar CRM I see this error in the log many times:

Unable to load custom logic file: include / SugarSearchEngine / SugarSearchEngineQueueManager.php

Before upgrading to this version I had:

CRM Suite version 7.2.1
Sugar CRM version 6.5.20

and this error did not occur. Can you tell me why it can be and its solution?

Thanks and best regards,

Gema

You need to find the place in the code that is calling that, probably some left-over in custom directory.

Try running this in your SuiteCRM root directory:


grep -irn 'SugarSearchEngineQueueManager.php' .

Let’s hope it doesn’t turn up to many hits. Check each one to see if any one looks like the culprit.

Find the following:

include/utils/file_utils.php:465:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
custom/Extension/application/Ext/LogicHooks/SugarFTSHooks.php:8:$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
custom/application/Ext/LogicHooks/logichooks.ext.php:42:$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
suitecrm.log:1582:Fri Dec 29 22:44:16 2017 [20213][3f2a254b-3c4f-a453-b5f1-59ef05ea57e9][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php
sugarcrm.log:1:Wed May  9 07:37:24 2018 [13008][9a74bac9-46c9-cc74-aaf8-5ab898fa7b5e][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php

upload/upgrades/patch/SuiteCRM-Upgrade-7.5.x-to-7.6.6-restore/include/utils/file_utils.php:462:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.3.x-to-7.4.3-restore/install/performSetup.php:373:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.3.x-to-7.4.3-restore/modules/UpgradeWizard/end.php:71:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.1.x-to-7.2.1-restore/install/performSetup.php:370:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.1.x-to-7.2.1-restore/modules/UpgradeWizard/silentUpgrade_step2.php:396:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.1.x-to-7.2.1-restore/modules/UpgradeWizard/end.php:71:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.4.x-to-7.5.5-restore/install/performSetup.php:397:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.2.x-to-7.3.2-restore/include/utils/file_utils.php:456:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.2.x-to-7.3.2-restore/modules/UpgradeWizard/silentUpgrade_step2.php:396:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');
upload/upgrades/patch/SuiteCRM-Upgrade-7.2.x-to-7.3.2-restore/modules/UpgradeWizard/end.php:71:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');

modules/UpgradeWizard/silentUpgrade_step2.php:396:\$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');

Does any of this help?

https://community.sugarcrm.com/thread/19024

Actually, on closer inspection, these hook definitions shouldn’t even be there. They are left-overs from SugarCRM days.

So let’s focus on these two entries in your system:


custom/Extension/application/Ext/LogicHooks/SugarFTSHooks.php:8:
$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');

custom/application/Ext/LogicHooks/logichooks.ext.php:42:
$hook_array['after_save'][] = array(1, 'fts', 'include/SugarSearchEngine/SugarSearchEngineQueueManager.php', 'SugarSearchEngineQueueManager', 'populateIndexQueue');

What do you have in each of those files?

With the second solution it seems that it is fixed :).

Thanks and best regards