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 problem
Pages: [1]

Author Topic: Cron job problem  (Read 941 times)

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
Cron job problem
January 25, 2012, 01:42:36 am
Hi All

We are helping with a site which is running on Druapl 6.22 and CiviCRM 3.4.8 (latest versions at this time).
When they create a scheduled Mailing the Cron Job isn't working. As far as we can see all settings are correct.

Username, pword, site key, civcrm root in settings file all correct.
If you try and run the job manually in a browser the following message is displayed.
"ERROR: You need to send a valid user name and password to execute this file"

The same message is displayed for both;
http://example.com/sites/all/modules/civicrm/bin/civimail.cronjob.php/name=name&pass=pass&key=key
http://example.com/sites/all/modules/civicrm/bin/EmailProcessor.php/name=name&pass=pass&key=key

Has anyone got ideas as to what could be causing this?
Any help really appreciated.

Olly
Oliver Gibson, Northbridge Digital

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: Cron job problem
January 25, 2012, 02:21:43 am
Hi Olly

You need a query string(?) in the Url instead of '/', to pass the data to the script.

Please try

http://example.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=name&pass=pass&key=key
http://example.com/sites/all/modules/civicrm/bin/EmailProcessor.php?name=name&pass=pass&key=key
« Last Edit: January 25, 2012, 02:27:09 am by Rajesh »

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
Re: Cron job problem
January 25, 2012, 03:14:05 am
Hi Rajesh

Sorry that was a typing error in my post. The same error still appears

Olly
Oliver Gibson, Northbridge Digital

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: Cron job problem
January 25, 2012, 07:24:01 am

make sure your name and pass are simple (alphabets and numerals only) and dont have any punctuation characters (especially &)

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

martinpaul

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Re: Cron job problem
January 25, 2012, 02:14:30 pm
After upgrading Civicrm my mailjob isn't working anymore. I've created a logfile and there I get the message "ERROR: Invalid username and/or password".

I run Civicrm 3.4.7 with Joomla 1.5.23 and PHP 5.2.17.

Obviously I need to create a new user. I can create a user in Joomla, but then I have to associate that user with a Civicrm contact. At least that's what I read in the wiki. But how can I do that?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron job problem

This forum was archived on 2017-11-26.