CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • cron for Grant report
Pages: [1]

Author Topic: cron for Grant report  (Read 748 times)

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
cron for Grant report
May 08, 2011, 06:03:08 am
I am confused by the fact that these two commands produce different results.

This command to initiating sending of qued email works fine
wget 'http://www.students2science.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?  name=USERNAME&pass=PASSWORD&key=SITEKEY'

When I use the same format to run the grant status report (following the format given in the documentation), no report is produced

wget 'http://www.students2science.org/administrator/components/com_civicrm/civicrm/bin/CiviReportMail.php? instanceId=3&reset=1&sendmail=1 name=USERNAME&pass=PASSWORD&key=SITEKEY'

no report is produced

I'm not usually this dense - What am I missing?  ???
« Last Edit: May 09, 2011, 03:21:19 pm by Donald Truss »
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: cron for Grant report
May 08, 2011, 10:42:32 am
Do you get any message? Try loading that URL in your browser and see if there's a message.

Also, does CiviCRM send mails otherwise OK?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Re: cron for Grant report
May 08, 2011, 11:48:36 am
Yes, the mail que is sent appropriately, but I cannot trigger sending of reports.
Should work, as the path, username, password and sitekey are proven
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: cron for Grant report
May 09, 2011, 03:08:45 am
If you run it in a browser, do you see a message?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Re: cron for Grant report
May 09, 2011, 04:05:27 am
Thanks Hershel. When I try to run this in a browser it returns the error message

ERROR: You need to send a valid user name and password to execute this file


Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Re: cron for Grant report
May 11, 2011, 08:14:16 am
Got it - thanks to Rahul!

Running Grant report from Civicrm - I see instance # in browser address bar.
When I used this instance number in cron job - report was generated and sent.

Thank you
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • cron for Grant report

This forum was archived on 2017-11-26.