Answers.Body: <p>The error seems to come from something unrelated to civi:</p>
  
  <pre><code>plugins/section-widget/olt-checklist/loader.php
  </code></pre>
  
  <p>Can you try to disable this plugin and see if it works?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-04T11:09:46.673Z
Answers.LastActivityDate: 2015-06-04T11:09:46.673Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>Another thought is to do this with wp-cli (WordPress drush equivilant).  This way you can tell wp NOT to load any plugins with fatal errors.</p>
  
  <p>The standard syntax I use is:</p>
  
  <pre><code>wp --user=&lt;cron&gt; --url=&lt;http://example.com&gt; --path=&lt;/path/to/wp&gt; civicrm api job.execute auth=0
  </code></pre>
  
  <p>You can also do this to exclude plugins:</p>
  
  <pre><code>wp --user=&lt;cron&gt; --url=&lt;http://example.com&gt; --path=&lt;/path/to/wp&gt; --skip-plugins=&lt;plugin&gt; civicrm api job.execute auth=0
  </code></pre>
  
  <p>By adding --skip-plugin=  you can get rid of the nasty plugin causing the error.  Of course, removing plugins with fatal errors is preferred, but sometime we need to keep them around.</p>
  
  <p>I have also added this to <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-10T09:44:19.147Z
Answers.Text: Nice tip Kevin!
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-05T12:32:32.667Z
Answers.LastActivityDate: 2015-06-05T12:40:25.390Z
Answers.LastEditDate: 2015-06-05T12:40:25.390Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>i use wordpress 4.2.2 and civiCrm 4.6.3.
  I have created a file CiviCron.php:</p>
  
  <pre><code>// create a new cURL resource
  $ch = curl_init();
  // set URL and other appropriate options
  curl_setopt($ch, CURLOPT_URL, "http://www.auroratrezzo.it/wordpress/wp-content/plugins/civicrm/civicrm//bin/cron.php?name=user&amp;pass=password&amp;key=key-site");
  curl_setopt($ch, CURLOPT_HEADER, 0);
  // grab URL and pass it to the browser
  curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>I have configurated cPanel cron job:</p>
  
  <pre><code>php /home/informac/CiviCron.php
  </code></pre>
  
  <p>I recived this error:</p>
  
  <pre><code>&lt;br /&gt;
  &lt;b&gt;Fatal error&lt;/b&gt;:  Function name must be a string in &lt;b&gt;/home/informac/public_html/wordpress/wp-content/plugins/section-widget/olt-checklist/loader.php&lt;/b&gt; on line &lt;b&gt;64&lt;/b&gt;&lt;br /&gt;
  </code></pre>
  
  <p>Why ??</p>
  
  <p>Marco</p>
  
Tags: <wordpress><cron-job>
Title: Cron Job configuration error
ThreadText: # Cron Job configuration error
  
  (Asked by: username_0 on 2015-06-04)
  
  i use wordpress 4.2.2 and civiCrm 4.6.3.
  I have created a file CiviCron.php:
  
  ```
  // create a new cURL resource
  $ch = curl_init();
  // set URL and other appropriate options
  curl_setopt($ch, CURLOPT_URL, "http://www.auroratrezzo.it/wordpress/wp-content/plugins/civicrm/civicrm//bin/cron.php?name=user&pass=password&key=key-site");
  curl_setopt($ch, CURLOPT_HEADER, 0);
  // grab URL and pass it to the browser
  curl_exec($ch);
  curl_close($ch);
  
  ```
  
  I have configurated cPanel cron job:
  
  ```
  php /home/informac/CiviCron.php
  
  ```
  
  I recived this error:
  
  ```
  <br />
  <b>Fatal error</b>:  Function name must be a string in <b>/home/informac/public_html/wordpress/wp-content/plugins/section-widget/olt-checklist/loader.php</b> on line <b>64</b><br />
  
  ```
  
  Why ??
  
  username_0
  
  **Tags:** wordpress, cron-job
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-06-04. Score: 4
  
  The error seems to come from something unrelated to civi:
  
  ```
  plugins/section-widget/olt-checklist/loader.php
  
  ```
  
  Can you try to disable this plugin and see if it works?
  
  
  ---
  
  ### Answer by username_2 on 2015-06-05. Score: 0
  
  Another thought is to do this with wp-cli (WordPress drush equivilant). This way you can tell wp NOT to load any plugins with fatal errors.
  
  The standard syntax I use is:
  
  ```
  wp --user=<cron> --url=<http://example.com> --path=</path/to/wp> civicrm api job.execute auth=0
  
  ```
  
  You can also do this to exclude plugins:
  
  ```
  wp --user=<cron> --url=<http://example.com> --path=</path/to/wp> --skip-plugins=<plugin> civicrm api job.execute auth=0
  
  ```
  
  By adding --skip-plugin= you can get rid of the nasty plugin causing the error. Of course, removing plugins with fatal errors is preferred, but sometime we need to keep them around.
  
  I have also added this to <http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs>
  
  > **Comments:**
  > **username_3**: Nice tip username_2!  
  
  ---
  
  