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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • CiviMail cron error
Pages: [1]

Author Topic: CiviMail cron error  (Read 1112 times)

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
CiviMail cron error
May 23, 2011, 08:55:51 am
Code: [Select]
Usage: Please define CIVICRM_CONFDIR in settings_location.php at the top level civicrm directory
this is my cron:
Code: [Select]
MAILTO="my@email.address" (changed to protect the innocent!)
CIVI_ROOT=/home/rdcdiving/ringwooddivingclub.com.au/public_html/administrator/components/com_civicrm/civicrm
USER=user (changed! i assume this is my server's username?)
PHP=/usr/local/bin/php

PARAMS= -sdefault -u<username> -p<password> (obviously, these are my joomla username and passwords yeah?)

*/2 * * * * cd $CIVI_ROOT;$PHP bin/civimail.cronjob.php $PARAMS
*/15 * * * * cd $CIVI_ROOT;$PHP bin/EmailProcessor.php $PARAMS

i thought settings_location.php was a drupal file...

anyway, ive got my civicrm 3.4.1 installed on joomla 1.5.22.

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
Re: CiviMail cron error
May 23, 2011, 09:20:04 am
ive also tried the wget method...

when i do this:
Code: [Select]
export WGETRC=civicrm-wgetrc
wget -O - -q -t 1 \
http://www.example.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php
everything works fine and scheduled  emails get sent off.

however, when i put it in a cron:
Code: [Select]
MAILTO="my@email.address" (changed to protect the innocent!)
*/5 * * * * yourLinuxUserName wget -O - -q -t 1  export WGETRC=civicrm-wgetrc http://www.example.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

why isn't wget working in crontab?
doesn't do anything. i don't even get an error sent to my email address!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail cron error
May 23, 2011, 10:01:11 am
Hi,

the CIVICRM_CONFDIR in settings_location.php means it didn't find the civicrm config. Not sure why, I don't use joomla. would be good if you could investigate.

As for why the cron doesn't work, sounds weird. you put it in a file under /etc/cron.d ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
Re: CiviMail cron error
May 23, 2011, 10:04:52 am
new update...

i found that if i put the export and wget commands into a shell script file and then call that file through crontab that works:

cron.sh
Code: [Select]
export WGETRC=ringwooddivingclub.com.au/civicrm-wgetrc
wget -O - -q -t 1 http://www.ringwooddivingclub.com.au/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

crontab -e
Code: [Select]
*/5 * * * * sh  /home/rdcdiving/cron.sh

hope this helps anyone thats having the same problems...

zmi

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
    • Protéger Internet Services Austria
  • CiviCRM version: 4.0.0
  • CMS version: Joomla 1.6.3
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: CiviMail cron error
July 20, 2011, 07:09:12 am
I'd like to jump into this. I also setup CiviCRM within Joomla, and got the "CIVICRM_CONFDIR" error message from the first posting. And I'd like to use the normal cron way without wget. There just isn't any "settings_location.php" in the whole CiviCRM+Joomla path, so where should that variable go in?
--
Protéger: Professional Hosting in AUSTRIA, Europe
http://proteger.at/
http://facebook.com/protegerat

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • CiviMail cron error

This forum was archived on 2017-11-26.