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) »
  • CiviReportMail.php URL error - valid user name and password needed
Pages: [1]

Author Topic: CiviReportMail.php URL error - valid user name and password needed  (Read 1283 times)

dayron

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
CiviReportMail.php URL error - valid user name and password needed
January 18, 2011, 11:41:58 am
Hello all. I'm trying to test an email delivered report calling CiviReportMail.php in a URL. When I do I get this error:
ERROR: You need to send a valid user name and password to execute this file

The URL I'm calling is:
http://<MY-DOMAIN>/sites/all/modules/civicrm/bin/CiviReportMail.php?instanceId=29&reset=1&sendmail=1?name=<MY CIVI USERNAME>&pass=<MY CIVI PASSWORD>&key=<MY SITE KEY>

My user name is an admin on the Civi site.
I get this error using HTTP or HTTPS.

Is the issue the syntax of my URL? Any help would be much appreciated.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviReportMail.php URL error - valid user name and password needed
January 19, 2011, 01:09:52 am
Can you check http://wiki.civicrm.org/confluence/display/CRMDOC33/Command-line+Script+Configuration

HTh
Kurund
Found this reply helpful? Support CiviCRM

dayron

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: CiviReportMail.php URL error - valid user name and password needed
January 19, 2011, 06:31:47 am
Hi. Thanks for the response. Yes I did check that link which is where I got the syntax to build my URL. However, the URL is failing with the errors I reported. What I'd like to know is if the syntax of my URL is correct. The examples given in the link don't address the URL for CiviReportMail.php specifically, so I'm unclear if I even have the URL configured correctly and why it says my user name and password ar eincorrect when in fact they are correct. Any help would be appreciated. 
 

Quote from: Kurund Jalmi on January 19, 2011, 01:09:52 am
Can you check http://wiki.civicrm.org/confluence/display/CRMDOC33/Command-line+Script+Configuration

HTh
Kurund

dayron

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: CiviReportMail.php URL error - valid user name and password needed
February 07, 2011, 10:49:53 am
No response? Can someone let me know if the URL syntax I'm using is correcT?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviReportMail.php URL error - valid user name and password needed
February 07, 2011, 11:01:39 am

the correct syntax is:

Code: [Select]
http://<MY-DOMAIN>/sites/all/modules/civicrm/bin/CiviReportMail.php?instanceId=29&reset=1&sendmail=1&name=<MY CIVI USERNAME>&pass=<MY CIVI PASSWORD>&key=<MY SITE KEY>

there can be only one '?' in the url

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

davidunwinubs13

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
    • Marylebone Association
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: CiviReportMail.php URL error - valid user name and password needed
February 23, 2011, 05:29:14 am
I am having a similar problem. Could somebody explain the other parameters
instanceId=29
reset=1
sendmail=1
When I submit the URL I get the following message
Sorry. A non-recoverable error has occurred.
is not of type String

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • CiviReportMail.php URL error - valid user name and password needed

This forum was archived on 2017-11-26.