# Cron Error

**URL:** <https://forum.mautic.org/t/cron-error/7011>\
**Category:** General Discussion\
**Created:** [January 1, 2017, 11:56am UTC](https://forum.mautic.org/t/cron-error/7011 "2017-01-01T11:56:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![purewaterman](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@purewaterman](https://forum.mautic.org/u/purewaterman)\
**Post date:** [January 1, 2017, 11:56am UTC](https://forum.mautic.org/t/cron-error/7011/1 "2017-01-01T11:56:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![purewaterman](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@purewaterman](https://forum.mautic.org/u/purewaterman)\
**Post date:** [January 1, 2017, 11:56am UTC](https://forum.mautic.org/t/cron-error/7011/2 "2017-01-01T11:56:42Z")

</div>

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
