# Cron job 2.0.1 error

**URL:** https://forum.mautic.org/t/cron-job-2-0-1-error/4535
**Category:** Product Support
**Created:** [July 17, 2016, 5:24pm UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535 "2016-07-17T17:24:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![clalihu](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@clalihu](https://forum.mautic.org/u/clalihu)
#### Post date: [July 17, 2016, 5:24pm UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/1 "2016-07-17T17:24:08Z")

</div>

I installed mautic 2.0.1,  
I changed the new CLI, but  
generates error :  

Quote:

$ Input = new ArgvInput ( $ args )

  
I need to execute commands from the cron-job.org .  
  
In version 1.4 the cron job normally run from cron -job- org.  
  
I do not understand why not run properly .

---

<div class="post-metadata">

### Author: ![clalihu](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@clalihu](https://forum.mautic.org/u/clalihu)
#### Post date: [July 17, 2016, 5:24pm UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/2 "2016-07-17T17:24:08Z")

</div>

I installed mautic 2.0.1,  
I changed the new CLI, but  
generates error :

> [@](#):
>
> $ Input = new ArgvInput ( $ args )

I need to execute commands from the [cron-job.org](http://cron-job.org) .

In version 1.4 the cron job normally run from cron -job- org.

I do not understand why not run properly .

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [July 17, 2016, 5:55pm UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/3 "2016-07-17T17:55:36Z")

</div>

hola!

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [July 18, 2016, 11:20am UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/4 "2016-07-18T11:20:02Z")

</div>

If you execute `php -v`, the CLI PHP version appears. Isn’t it some older version than Mautic 2 supports?

---

<div class="post-metadata">

### Author: ![klausv1304](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@klausv1304](https://forum.mautic.org/u/klausv1304)
#### Post date: [July 22, 2016, 8:16am UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/5 "2016-07-22T08:16:59Z")

</div>

I`ve got the problem and to be honest, I don`t understand the reply of esopecz.  
Where do I have to execute this, could you write a short, non cryptic example?  
Would be great and I would be so grateful

Klaus

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [July 22, 2016, 9:16am UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/6 "2016-07-22T09:16:31Z")

</div>

As clalihu wroute “CLI” in her question, I assumed she knows how to execute a CLI command.

If you want to execute a CLI command, you have to open a terminal if you are on unix system (it is more difficult on Windows, but I don’t use them so I cannot tell, google it maybe) and paste in the command and hit enter.

This will work if your server is on your local computer. If not, you have to first log in to your server via SSH and then execute the command.

---

<div class="post-metadata">

### Author: ![klausv1304](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@klausv1304](https://forum.mautic.org/u/klausv1304)
#### Post date: [July 22, 2016, 10:38am UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/7 "2016-07-22T10:38:55Z")

</div>

Ah, OK, I use putty for this . Now its clear and I`ll test this

THX2U  
Klaus

---

<div class="post-metadata">

### Author: ![klausv1304](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@klausv1304](https://forum.mautic.org/u/klausv1304)
#### Post date: [July 23, 2016, 6:25am UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/8 "2016-07-23T06:25:12Z")

</div>

Hi there,  
it`s me again,  
I executed the php -v via SSH, but nothing changes  
Can you please explain me, how I have to use it to run may cron jobs again?

THX  
Klaus

---

<div class="post-metadata">

### Author: ![balkee](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@balkee](https://forum.mautic.org/u/balkee)
#### Post date: [July 29, 2016, 9:23pm UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/9 "2016-07-29T21:23:42Z")

</div>

That command php -v is to show the version of php so you can check. There’s probably a version conflict between [cron-job.org](http://cron-job.org) and Mautic. If that’s the case you’ll need an alternative way to schedule your jobs.  
If you can ssh (putty etc.) to your server, on the command line enter :

php /mautic/app/console mautic:campaigns:trigger --env=prod  
(you’ll need to specify the web folder before /mautic, such as /var/www etc…)

See what this produces and if it triggers your campaigns.  
Also check your logs in the /app/log/

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [July 30, 2016, 12:52pm UTC](https://forum.mautic.org/t/cron-job-2-0-1-error/4535/10 "2016-07-30T12:52:20Z")

</div>

[https://www.mautic.org/community/index.php/5092-mautic-2-0-up-cronjob](https://www.mautic.org/community/index.php/5092-mautic-2-0-up-cronjob) @balkee
