Mautic Community Forums

Cron Error

Hello when running the following cron job



/usr/bin/php56-cli /home/cluster-sites/28/eatingdisorderecovery.info/public_html/marketing/app/console mautic:campaigns:trigger



I get the following error:

$input = new ArgvInput();

$env = $input->getParameterOption(, getenv(‘SYMFONY_ENV’) ?: ‘prod’);

$debug = getenv(‘SYMFONY_DEBUG’) !== ‘0’ && !$input->hasParameterOption() && $env !== ‘prod’;



if ($debug) {

Debug::enable();

}



$output = ($input->getParameterOption() !== false) ? new ConsoleDatetimeOutput() : null;



Can any body help me out what is wrong here?



Thanks very much



HL

Hello when running the following cron job

/usr/bin/php56-cli /home/cluster-sites/28/eatingdisorderecovery.info/public_html/marketing/app/console mautic:campaigns:trigger

I get the following error:
$input = new ArgvInput();
$env = $input->getParameterOption([’–env’, ‘-e’], getenv(‘SYMFONY_ENV’) ?: ‘prod’);
$debug = getenv(‘SYMFONY_DEBUG’) !== ‘0’ && !$input->hasParameterOption([’–no-debug’, ‘’]) && $env !== ‘prod’;

if ($debug) {
Debug::enable();
}

$output = ($input->getParameterOption([’–no-interaction’, ‘-n’]) !== false) ? new ConsoleDatetimeOutput() : null;

Can any body help me out what is wrong here?

Thanks very much

HL