Hello guys today i experenci some problem with Advanced OpenDiscovery Search is not working wen we search in the bar it appear in blank with no error or a warning
/home/domain/public_html/suitecrm/cron.php: line 1: ?php: No such file or directory
/home/domain/public_html/suitecrm/cron.php: line 2: syntax error near unexpected token 'sugarEntry'' /home/domain/public_html/suitecrm/cron.php: line 2: if(!defined(‘sugarEntry’))define(‘sugarEntry’, true);’
Check cron.php file. Looks like it’s missing PHP opening tag <?php
Maybe it was edited with vim and first character was removed with “x” key or something like that.
Looks like I cant edit my previous post.
It could be also bad entry in crontab. If you’re running it without php or path to php it will try to interpret php script as bash script.
Depending how your cron jobs are setup edit it for user www-data (if you’re on Ubuntu)
Advanced OpenDiscovery does not work for us either. Please point us to a guide on how to configure this. The earlier reply “Did you set up a cron job” is too vague for us to understand.
Is the cron job set up in your server to allow AOD to index the records? Are you getting errors, or is it simply displaying a white screen? I presume AOD is enabled in Admin -> AOD Settings?
What is your server setup? Please navigate to Admin -> Schedulers and navigate into ‘Optimise AOD Index’ and ‘Perform Lucene Index’. Are there entries in the job log? When was the last successful run?
@jninhilario - It may be worth checking your logs to see why the ‘Optimise AOD Index’ job is still running. You can kill the job in ‘job_queue’ but it would be worth checking for errors which may have caused this, before killing it.
@Nick - Normally on a linux setup, you would ssh onto the server and then run ‘sudo crontab -e’ which would open up the cron tab. You would then navigate to Admin -> Schedulers in SuiteCRM and copy the link shown @ the bottom of the list of schedulers and paste this into the crontab file and then do ‘Ctrl+X’ and press Y to confirm.
Note: These settings/options may differ depending on your environment and it is always advisable to run a test before performing changes on your production environment.