Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9727

cron.php will not run in Wordpress, is_admin() call to undefined function

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I have attempted to run the cron from a browser using these methods in Wordpress with 4.1.0

      consolidated cron:
      http://www.site.org/wp-content/plugins/civicrm/civicrm//bin/cron.php?name=do-not-delete&pass=xxx&key=xxx

      specific job:
      http://www.site.org/wp-content/plugins/civicrm/civicrm//bin/cron.php?job=process_mailing&name=do-not-delete&pass=xxx&key=xxx

      Both result in this error:
      Fatal error: Call to undefined function is_admin() in /home/capitol/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php on line 49

      The user "do-not-delete" is 'administrator' role

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              stoob Stoob
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: