Answers.Body: <p>An issue has been filed for this in the CiviCRM bug tracker.</p>
  
  <p>See <a href="https://issues.civicrm.org/jira/browse/CRM-18514" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-18514</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T03:05:35.367Z
Answers.LastActivityDate: 2016-05-27T03:05:35.367Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>On a WordPress site with CiviCRM 4.6.10 I had the same problem but switching from the "URL" to the "CLI" method of executing cron fixed the problem.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-07T12:55:45.433Z
Answers.LastActivityDate: 2016-04-07T12:55:45.433Z
Answers.UserDisplayName: Hershel
Answers.Body: <p>I see from the above that you are using the php cli method.   The credentials that it is looking for is a CMS User (WordPress) with sufficient permissions in CiviCRM to run the jobs.</p>
  
  <p>I just tested on 4.7.8 CiviCRM with WP 4.5.2 with the following syntax</p>
  
  <pre><code>/usr/local/php56/bin/php /home/user/htdocs/civicrm/wp-content/plugins/civicrm/civicrm/bin/cli.php -u cronuser -p somepassword -e Job -a execute
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-06T05:07:14.677Z
Answers.LastActivityDate: 2016-06-06T05:07:14.677Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>Upgraded from 4.6.11 to 4.7.1 and now this this error when running /wp-content/plugins/civicrm/civicrm/bin/cron.php</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Exception' with message 'Function
    "is_admin()" is missing, even though WordPress is the user framework.'
    in
    /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php:261 Stack trace: #0
    /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(219):
    CRM_Utils_System_Base->theme('PEAR_Error('DB Error: insuf...', -26, 16, Array, '
    [nativecode=10...') #5
    /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(564):
    DB_Error->DB_Error(-26, 16, Array, ' [nativec in
    /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php
    on line 261</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-04T17:08:49.997Z
Comments.Text: How are you running this?  Utilizing the run manually page, I'm able to run the jobs without issue.  However, curl and wget are failing with username/password errors and/or key errors, while php is complaining of deprecated # comment marks, that need to be re-written to ;.
Comments.UserDisplayName: G H
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-05T02:21:51.060Z
Comments.Text: I got this same error in Joomla 3.4.8. Upon clearing caches and reset paths, now completely broken. Blank pages.
Comments.UserDisplayName: BruceW
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-20T23:03:49.560Z
Comments.Text: Running a script with this command: /usr/local/bin/php /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -u mysqluser -p mysqlpass -e Job -a execute
  
  i think the primary error is "DB Error: Insufficient Permissions" - however, i can log into MySql with the same credentials manually without any problem.
Comments.UserDisplayName: Eric Rogers
Tags: <upgrade><cron-job><error><4.7>
Title: Cron error after upgrade to 4.7.1
ThreadText: # Cron error after upgrade to 4.7.1
  
  (Asked by: username_0 on 2016-02-03)
  
  Upgraded from 4.6.11 to 4.7.1 and now this this error when running /wp-content/plugins/civicrm/civicrm/bin/cron.php
  
  > Fatal error: Uncaught exception 'Exception' with message 'Function
  > "is\_admin()" is missing, even though WordPress is the user framework.'
  > in
  > /home/xxxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php:261 Stack trace: #0
  > /home/xxxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(219):
  > CRM\_Utils\_System\_Base->theme('PEAR\_Error('DB Error: insuf...', -26, 16, Array, '
  > [nativecode=10...') #5
  > /home/xxxx/public\_html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(564):
  > DB\_Error->DB\_Error(-26, 16, Array, ' [nativec in
  > /home/xxxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php
  > on line 261
  
  **Tags:** upgrade, cron-job, error, 4.7
  
  > **Comments:**
  > **username_1**: How are you running this?  Utilizing the run manually page, I'm able to run the jobs without issue.  However, curl and wget are failing with username/password errors and/or key errors, while php is complaining of deprecated # comment marks, that need to be re-written to ;.  
  > **username_2**: I got this same error in Joomla 3.4.8. Upon clearing caches and reset paths, now completely broken. Blank pages.  
  > **username_0**: Running a script with this command: /usr/local/bin/php /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -u mysqluser -p mysqlpass -e Job -a execute  i think the primary error is "DB Error: Insufficient Permissions" - however, i can log into MySql with the same credentials manually without any problem.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_3 on 2016-05-27. Score: 1
  
  An issue has been filed for this in the CiviCRM bug tracker.
  
  See <https://issues.civicrm.org/jira/browse/CRM-18514>
  
  
  ---
  
  ### Answer by username_4 on 2016-04-07. Score: 1
  
  On a WordPress site with CiviCRM 4.6.10 I had the same problem but switching from the "URL" to the "CLI" method of executing cron fixed the problem.
  
  
  ---
  
  ### Answer by username_5 on 2016-06-06. Score: 0
  
  I see from the above that you are using the php cli method. The credentials that it is looking for is a CMS User (WordPress) with sufficient permissions in CiviCRM to run the jobs.
  
  I just tested on 4.7.8 CiviCRM with WP 4.5.2 with the following syntax
  
  ```
  /usr/local/php56/bin/php /home/user/htdocs/civicrm/wp-content/plugins/civicrm/civicrm/bin/cli.php -u cronuser -p somepassword -e Job -a execute
  
  ```
  
  
  ---
  
  