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) »
  • Mailing not Starting
Pages: [1]

Author Topic: Mailing not Starting  (Read 8750 times)

FredJones

  • Guest
Mailing not Starting
December 11, 2007, 06:29:04 am
My scheduled delivery time is in the past (6 AM EST today) and I run cron manually from "You can run cron manually." on /admin/logs/status

yet the Report says "Delivery has not yet begun for this mailing."

How can I kickstart this thing? :)

Thanks.

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: Mailing not Starting
December 11, 2007, 07:00:46 am
I can't remember the specifics off hand, but I seem to remember some type of delay in mailing due to the time zone settings(I haven't got CiviMail installed yet so I can't test, i'm on php4). Just as a test you might want to place the send time further back in time(like 1 day instead of just 3 hours) just to confirm that this(or isn't) related to the delay.

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Mailing not Starting
December 11, 2007, 10:00:30 am
This is the first time that I have heard about /admin/logs/status - is this limited to Joomla by any chance?
I tried <installed site>/admin/logs/status - where can I find more about this?

I have been using http://<your drupal site>/civicrm/mailing/queue?reset=1 , but I think this may only deal with the mailings and not run the general cron job which may be needed to deal with other housekeeping (I'm not sure on this).

Does everything work fine with your batches when you send immediately? For example batches of size 2 - does 2 go out the first time and 2 in each successive trigger?  (I realize most batches will be much larger than 2 emails, but I'm just testing with my 4 email addresses).

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Mailing not Starting
December 11, 2007, 10:03:01 am
You have to run the "civimail" cronjob /modules/civicrm/bin/civimail.cronjob.php

You can just call it from a browser for testing, recent versions require the username and password to be passed in the url, like this

http://www.example.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=civimail&pass=password

Neil

FredJones

  • Guest
Re: Mailing not Starting
December 11, 2007, 11:46:44 am
Quote from: Denver Dave on December 11, 2007, 10:00:30 am
This is the first time that I have heard about /admin/logs/status - is this limited to Joomla by any chance?
I tried <installed site>/admin/logs/status - where can I find more about this?

This is standard Drupal. Well that URL is only if you have Clean URLs enabled. Without that it's
<installed site>/?q=admin/logs/status This is also available of course from <installed site>/?q=admin/logs

Quote from: Neil Adair on December 11, 2007, 10:03:01 am
You have to run the "civimail" cronjob /modules/civicrm/bin/civimail.cronjob.php

You can just call it from a browser for testing, recent versions require the username and password to be passed in the url, like this

http://www.example.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=civimail&pass=password

Neil

Oh, well now that is certainly helpful to know. I was considering trying this as I did see others mentioning it. Correct URL should actually be:

http://www.example.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=admin&pass=SuperSecretWordHere

Anyhow, this worked perfectly!

Thanks!!!

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Mailing not Starting
December 12, 2007, 01:32:53 am
To answer the original question (if I get it right) – we don’t plug in into Drupal’s cronjob infrastructure, so running Drupal’s cronjobs doesn’t result in running CiviMail cronjob.
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.

FredJones

  • Guest
Re: Mailing not Starting
December 12, 2007, 01:37:53 am
Quote from: Piotr Szotkowski on December 12, 2007, 01:32:53 am
To answer the original question (if I get it right) – we don’t plug in into Drupal’s cronjob infrastructure, so running Drupal’s cronjobs doesn’t result in running CiviMail cronjob.

I have surmised this and would suggest that clarifying this explicitly in CiviCRM itself would be beneficial. Including the URL to the CiviCML cron script and a small note about this would make the process extremely easy for first-timers.

Thanks.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Mailing not Starting
December 12, 2007, 02:07:02 am
You’re right; CRM-2499 filed.
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.

FredJones

  • Guest
Re: Mailing not Starting
December 12, 2007, 02:16:05 am
Quote from: Piotr Szotkowski on December 12, 2007, 02:07:02 am
You’re right; CRM-2499 filed.

Hey, groovy. Thanks.

It's not about who's right or who's wrong--it's about who gets the most grants. ;)

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: Mailing not Starting
December 12, 2007, 06:43:14 am

hershel:

The wiki and the documentation are editable by users. Please fix the documentation as needed to make the process easy for first timers

thanx

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

FredJones

  • Guest
Re: Mailing not Starting
December 12, 2007, 07:20:51 am
Good idea. Done: http://wiki.civicrm.org/confluence/display/CRMDOC/5.+Schedule+or+Send

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Mailing not Starting
December 12, 2007, 07:39:01 am
I'm running 1.9 but not the very last version.

Is http://<your drupal site>/civicrm/mailing/queue?reset=1
part of the overall civimail cron job?

http://www.example.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=USERNAME&pass=PASSWORD

I should know this, but where is CRM/Mailing/BAO/Job.php located?  I found <install site>/sites/all/modules/civicrm/CRM/ - but no BAO directory there.

Quote
// civimail.cronjob.php

function processQueue( ) {
    require_once 'CRM/Mailing/BAO/Job.php';
    CRM_Mailing_BAO_Job::runJobs();
}

function run( ) {
    session_start( );                               
                                           
    require_once '../civicrm.config.php';
    require_once 'CRM/Core/Config.php';
   
    $config =& CRM_Core_Config::singleton();

    // this does not return on failure
    CRM_Utils_System::authenticateScript( true );

    // we now use DB locks on a per job basis
    processQueue( );
}

run( );

« Last Edit: December 12, 2007, 07:44:00 am by Denver Dave »

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
Re: Mailing not Starting
December 12, 2007, 11:13:41 am
Job.php is in /drupal/sites/all/modules/civicrm/CRM/Mailing/BAO, ... it should be... .

When it is missing, maybe you should install the scripts again. Take the newest version, when you are using V1.9 (not dev) there are no mysql changes.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Mailing not Starting
December 13, 2007, 12:55:12 am
Quote from: Denver Dave on December 12, 2007, 07:39:01 am
Is http://<your drupal site>/civicrm/mailing/queue?reset=1
part of the overall civimail cron job?

No, it’s just another approach to invoke CRM_Mailing_BAO_Mailing::runJobs().

Quote from: Denver Dave on December 12, 2007, 07:39:01 am
I should know this, but where is CRM/Mailing/BAO/Job.php located?  I found <install site>/sites/all/modules/civicrm/CRM/ - but no BAO directory there.

You missed the Mailing part; the class is in <install site>/sites/all/modules/civicrm/CRM/Mailing/BAO/Mailing.php
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) »
  • Mailing not Starting

This forum was archived on 2017-11-26.