I Just recently upgraded from 7.7.2 to 7.7.4 and I found something strange in search module either the basic or advanced search. The problem is it doesn’t function at all, when i try anything in the field for example looking for lead created in last 7 days, it always gives the whole lead list instead data created for the last 7 days. It also happens in Account Module
Anyone can help me how to fix this issue? Or is this one of the bug in version 7.7.x ?
I have successfully fixed the error in timezone, but still the search is not working as expected, I keep on getting this kind of error
Sun Sep 18 07:20:02 2016 [24888][1][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php
Sun Sep 18 07:20:02 2016 [24888][1][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Sun Sep 18 07:20:02 2016 [24888][1][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php
Sun Sep 18 07:20:02 2016 [24888][1][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Sun Sep 18 07:20:02 2016 [24888][1][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php
Sun Sep 18 07:20:02 2016 [24888][1][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Sun Sep 18 07:20:02 2016 [24888][1][ERROR] Unable to load custom logic file: include/SugarSearchEngine/SugarSearchEngineQueueManager.php
I didn’t find any folder named SugarSearchEngine as displayed in error log, can you tell me which permission should I check or maybe something else that creates this problem?
There is no such folder or file in /include/ so that’s probably where the error is coming from.
Then I found the following comment in /modules/UpgradeWizard/silentUpgrade_step2.php containing the same reference to SugarSaerchengineQueueManager.php:
/*
// creating full text search logic hooks
// this will be merged into application/Ext/LogicHooks/logichooks.ext.php
[…]
$hook_array[‘after_save’][] = array(1, ‘fts’, ‘include/SugarSearchEngine/SugarSearchEngineQueueManager.php’, ‘SugarSearchEngineQueueManager’, ‘populateIndexQueue’);
[…]
*/
I don’t see anything like this in /custom/application/Ext/LogicHooks/, so not sure what that means. But since there is no such folder called “SugarSearchEngine” in the /include folder of newer SuiteCRM installations, I’m assuming it’s safe to remove the logichook file SugarFTSHooks.php from /custom/Extension/application/Ext/LogicHooks/
I have a faint memory of coming across this same issue a few months ago, and I believe I did turn it off (remove hook definition) without any inconvenience. But I’m not sure, and I can’t check now.
I think it’s not too risky for you to simply try it and make a few test on your search to confirm it’s ok.
You might also want to search the code on Github to see what’s current code. You won’t find the hook definitions there, they are created only at runtime, but if you see there’s no file called SugarSearchEngineQueueManager.php there, and no fiunction called populateIndexQueue, then it should be safe to remove.