SuiteCRM Scheduler not running on xampp, 3 error message show on

Hi All, I have some problem with Schedule on suiteCRM,
I am using this version of software

xampp version = xampp-win32-5.6.20-0-VC
PHP Version = 5.2.0
suitecrm_version = 7.11.12

It was not running well, there is 3 error message on suiteCRM
Kindly see 1 picture for 3 error message

error number 1 was on making batch file, bad data passed in

error number 2
Notice: Undefined index: LBL_TRIMSUGARFEEDS in G:\htdocs\modules\Schedulers\Scheduler.php on line 1057
self::$job_strings[‘function::’ . $v] = $mod_strings[‘LBL_’ . strtoupper($v)];

error number 3
Notice: Undefined index: show_all in G:\htdocs\modules\Schedulers\views\view.list.php on line 51
if (!($this->options[‘show_all’] === false)) {

If anyone know how to solve this it will help me a lot.
Thank you, waiting for reply.

SuiteCRM won’t work with that version of PHP, see here:

Also, you need to turn off display_errors in your php.ini

1 Like

Hi pgr,

I am already upgrade the software version
SuiteCRM-7.11.15
xampp-win64-7.3.7-1-VC15

error number 2 and 3 was fix,
error number 1 I write this line on batch file was work

@echo off
cd C:\xampp\htdocs\suitecrm
C:\xampp\php\php.exe -f cron.php

But there is another problem was shown as picture.

is there any advise to solve this problem ?

Try setting date.timezone in your php.ini, then restart XAMPP.

1 Like

@pgr was also referring to your outdated version of PHP which is not supported, for your own security and SuiteCRMs stability it’s a really good idea to upgrade to one of the more modern versions, 7.1+ preferably.

This is working when htdocs folder and xampp folder at the same Drive,
If different drive still have same issue.

In Admin/Schedulers, you will find instructions on how to set up the Schedulers, specific to your own system.

You will see there is a switch there, on the cd command, that ensures drive letter is also used when changing directory.


I make batch file : schedule.bat at
c:\xampp\php\schedule.bat
and
c:\xampp\htdocs\suitecrm\suitecrm\schedule.bat

inside the file schedule.bat is :
@echo off
cd C:\xampp\htdocs\suitecrm
C:\xampp\php\php.exe -f cron.php

I already update date.timezone on php.ini same zone with suitecrm/profile/advance/timezone

I try to run one by one of this schedule.bat,
First I make run on c:\xampp\php\schedule.bat
then there is nothing happen.

second I make run on c:\xampp\htdocs\suitecrm\suitecrm\schedule.bat
then this error message was shown.

Is there any suggestion for this problem ?

What does it say here?


The instruction is;

In order to run the SuiteCRM schedulers, create a batch file to run using Windows Scheduled Tasks. The batch file should include the following commands:
cd /D C:\xampp\htdocs\suitecrm
php.exe -f cron.php

Ok. That switch

cd /D

ensures that the command works even if the directory is in a different drive.

Then, that command expects that the XAMPP PHP executable is in the current PATH that Windows searches. If it isn’t, then add it, or else add the full path in the batch file:

cd /D C:\xampp\htdocs\suitecrm
C:\xampp\php\php.exe -f cron.php

That should work, no matter where it is placed.

None of this necessarily has anything to do with the FATAL error you’re seeing.

You might want to run this

C:\xampp\php\php.exe -i

And from the output, check the date.timezone that is effective in CLI, and also exactly which php.ini it’s using (you probably have more than one in your system).


Can we say this command for schedule batch was success or fail ?

Looks like a success.

That would mean that cron.php was started correctly, and started to execute SuiteCRM Scheduled jobs.

But then one of those jobs can be failing, you can track that from the logs and from Admin / Schedulers, in each job there is a field Last ran successfully

Thanks for the help.

I think all this procedure on the top is the answer for the problem how to create batch file to start schedule on suite CRM.

Thanks pgr you are the best teacher :slight_smile:

1 Like