Hi Sac
Just try as below :
1.Download dolibarr-12.0.4.zip from dolibarr download page .
2.Unzip the file .
3.Find the file " cron_run_jobs.php " in " scripts/cron/ " .
4.Copy " cron_run_jobs.php " to your website root folder .( For windows system it will be in your xampp folder and if your system is linux , it will be in /var/www/html/ . )
5.Open " cron_run_job.php " by any editor .
6.Edit line 45 [ require_once $path."…/…/master.inc.php";" ] to [ require_once $path.“master.inc.php”; ].
Note: You also could copy the cron_run_jub.php to the other folder , but you will need to change the path to real path .
7.Go to your dolibarr Home >> Setup >> Modules/Application setup >> SCHEDULED JOBS.
8.Enable " SCHEDULED JOBS " module if you have not enable it .
9.Create " Security key for URL to launch cron jobs " and press save .
10.Go to Home >> Admin Tools >> Scheduled jobs
11.Click the link below " URL to check and launch qualified cron jobs: " to test the cron job .
12.If it works it will as like below :cron_run_jobs.php cronjobid: 2 priority=10 entity=1 label=SendEmailsReminders - qualified - result of run_jobs = 1 - reprogrammed cron_run_jobs.php cronjobid: 4 priority=50 entity=0 label=PurgeDeleteTemporaryFilesShort -> we change entity so we reload user and conf - not qualified cron_run_jobs.php cronjobid: 1 priority=50 entity=1 label=SendReminderForExpiredSubscriptionTitle - not qualified cron_run_jobs.php cronjobid: 3 priority=50 entity=1 label=RecurringInvoices - not qualified cron_run_jobs.php cronjobid: 5 priority=90 entity=0 label=MakeLocalDatabaseDumpShort -> we change entity so we reload user and conf - not qualified Result: 5 jobs - 1 launched = 1 OK + 0 KO
13.Test cron job command in your host .( If in windows you could use cmd and type as below to test : { D:\Xampp\php\php.exe D:\Xampp\htdocs\cron_run_jobs.php your_Security_key your_admin_name cronid } . If you use linux system , just use terminal to excute like { php cron_run_jobs.php your_Security_key your_admin_name cronid } .)
14.Add the cron job command to your Scheduled Task tools in windows .
In linux ,you will need to add command line in the end of Scheduled jobs page " */5 * * * * pathtoscript/scripts/cron/cron_run_jobs.php xzR787r1izJOtgRibPW9I87tIF5Iq6L5 admin > /var/lib/dolibarr/documents/cron_run_jobs.php.log " into your contab .