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 CiviMail (Moderator: Piotr Szotkowski) »
  • cron job failing with site key error
Pages: [1]

Author Topic: cron job failing with site key error  (Read 602 times)

ginga

  • Guest
cron job failing with site key error
August 26, 2010, 11:20:49 am
I hope someone can help. I am using Drupal and in the civicrm.settings.php file I created my key as such.
define( 'CIVICRM_SITE_KEY', 'OCvoPh9dz8gupihAWQfig84G' );

and I use the following in my cron
wget -O - -q -t 1 --post-data='name=usernname&pass=password@2010#&key=OCvoPh9dz8gupihAWQfig84G' http://www.example.org/sites/all/modules/civicrm/bin/civimail.cronjob.php


But i get the following error

ERROR: You need to send a valid key to execute this file. More info at: http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

What am I doing wrong

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: cron job failing with site key error
September 10, 2010, 04:45:06 am
Quote from: ginga on August 26, 2010, 11:20:49 am
wget -O - -q -t 1 --post-data='name=usernname&pass=password@2010#&key=OCvoPh9dz8gupihAWQfig84G'

# in URLs is a special meaning (it means a page fragment), so you need to escape it – try using %23 in its place.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • cron job failing with site key error

This forum was archived on 2017-11-26.