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 »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cronjobs in Civimail 4.1beta
Pages: [1]

Author Topic: Cronjobs in Civimail 4.1beta  (Read 2264 times)

joshathedone

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
  • CiviCRM version: Civicrm4
  • CMS version: Drupal 7
  • MySQL version: 5.1.41
  • PHP version: 5
Cronjobs in Civimail 4.1beta
December 29, 2011, 08:50:17 am
Hello.  I am attempting to setup cronjobs for civimail and EmailProcessor on a site running 4.1beta.  I have read and followed the instructions on flossmanual with no success.  I tried moving the appropriate files from /bin/depreceated/ back to /bin and the jobstill failing, I believe due to the changes to cli.php (I am getting a message from cli.php stating that I need to specify an action).

Can anyone tell me how I would setup a cronjob under the new cli.php?

Thanks.

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: Cronjobs in Civimail 4.1beta
January 04, 2012, 05:30:55 am
Quote
Can anyone tell me how I would setup a cronjob under the new cli.php?

There is some documentation on http://wiki.civicrm.org/confluence/display/CRMDOC41/Command-line+Script+Configuration

HTh
Kurund
Found this reply helpful? Support CiviCRM

datagroove

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: Cronjobs in Civimail 4.1beta
January 06, 2012, 07:31:47 am
I read the link posted by kurund but it did not seem to address the question by the op, or one of my own:

What took the place of the EmailProcessor.php script in 4.1?

How are we to use cron to ensure emails get processed in 4.1?

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: Cronjobs in Civimail 4.1beta
January 07, 2012, 03:37:41 am
Documentation for new cron interface is missing, we will update the docs soon.

Kurund
Found this reply helpful? Support CiviCRM

co-operatives uk

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7.15
  • MySQL version: 5
  • PHP version: 5
Re: Cronjobs in Civimail 4.1beta
January 13, 2012, 04:17:41 am
Following for update on how to set up the cron jobs. Got a beautiful instal that at the moment has to send mail manually :)

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: Cronjobs in Civimail 4.1beta
January 13, 2012, 04:55:01 am
You can also check  http://wiki.civicrm.org/confluence/display/CRMDOC41/Managing+Scheduled+Jobs . It would be great if you can verify it.

Kurund
Found this reply helpful? Support CiviCRM

oak

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Joomla 1.7
  • MySQL version: 5.0.92
  • PHP version: PHP 5.3.6 (cli) (built: Sep 12 2011 18:02:42)
Re: Cronjobs in Civimail 4.1beta
February 09, 2012, 12:46:46 pm
I am running on a joomla 1.7 upgraded civi version. Following the instructions on  wiki.civicrm.org (slash) confluence (slash) display (slash) CRMDOC41(slash) CiviMail+Installation


When running the script:
PARAMS='-j -smysite.org -umyuser -pmypass -e Job -a process_mailing'


I get:

PHP Notice:  Undefined variable: value in /Volumes/Promise_RAID1/Library/WebServer/thesel_01/administrator/components/com_civicrm/civicrm/bin/cli.php on line 125
PHP Notice:  Undefined variable: value in /Volumes/Promise_RAID1/Library/WebServer/thesel_01/administrator/components/com_civicrm/civicrm/bin/cli.php on line 125
PHP Notice:  Undefined variable: value in /Volumes/Promise_RAID1/Library/WebServer/thesel_01/administrator/components/com_civicrm/civicrm/bin/cli.php on line 125
PHP Notice:  Undefined property: civicrm_Cli::$_password in /Volumes/Promise_RAID1/Library/WebServer/thesel_01/administrator/components/com_civicrm/civicrm/bin/cli.php on line 158
PHP Notice:  Use of undefined constant JPATH_SITE - assumed 'JPATH_SITE' in /Volumes/Promise_RAID1/Library/WebServer/thesel_01/libraries/joomla/filesystem/path.php on line 25
PHP Notice:  Undefined variable: limit in /Volumes/Promise_RAID1/Library/WebServer/thesel_01/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 449
Jobs called from cli.php require valid user and password as parameter

It appears that the first 'line 125' notices are coming from the site user and password issues. Is this the wrong configuration for joomla? Alternatives? Can I use Curl instead?
What is the next step?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cronjobs in Civimail 4.1beta

This forum was archived on 2017-11-26.