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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Schedule Reminders for Activities
Pages: 1 [2]

Author Topic: Schedule Reminders for Activities  (Read 4850 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Schedule Reminders for Activities
October 11, 2011, 08:29:20 am
Hi,

What does it display when you run php bin/civimail.cronjob.php with the right params manually?

As a side note, that's not necessary to run every minute these crons imh. At least for the bounce one, you can connect every 15min or so

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

naseem_sarwar

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: civivrm version 4
  • CMS version: drupal 7
  • MySQL version: mysql 5+
  • PHP version: php version 5+
Re: Schedule Reminders for Activities
October 11, 2011, 08:40:32 am
hi,

i have give these credentials to it. civicrm/bin/civimail.cronjob.php?name=ain&pass=pard&key=8cb4edb3630cc
and it is giving me a blank page nothing on it. but i have check the mailing list and that kicks off. any pointers where is the problem?
/civicrm/bin/action.cronjob.php?name=afin&pass=pword&key=8cb4edb363dfgf0bd64a1e

i have setup the schedule reminder but i am getting an error when i am using action.cronjob.php. which is DB Error : syntax error
this file even shows the blank page again after giving the values.
« Last Edit: January 09, 2012, 06:40:29 am by naseem_sarwar »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Schedule Reminders for Activities
October 11, 2011, 09:11:47 am
Perhaps try the web method and get that to work first.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

circlebails

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
  • CiviCRM version: 4.1.X 4.2.X
  • CMS version: Drupal-6.X / Drupal-7.X
  • MySQL version: 5.1
  • PHP version: 5.2.16/17, 5.3
Re: Schedule Reminders for Activities
March 28, 2012, 01:23:55 am
Hi We're now getting this on a 3.4.8 when running:

action.cronjob.php


    [type] => DB_Error
    [user_info] =>
INSERT INTO civicrm_action_log (contact_id, entity_id, entity_table, action_schedule_id)
SELECT  as contact_id, e.id as entity_id, 'civicrm_activity' as entity_table, 1 as action_schedule_id
FROM civicrm_activity e
INNER JOIN civicrm_contact c ON c.id =
LEFT JOIN civicrm_action_log reminder ON reminder.contact_id =  AND
reminder.entity_id    = e.id AND
reminder.entity_table = 'civicrm_activity' AND
reminder.action_schedule_id = 1
WHERE e.activity_type_id IN (30,31,21,1,2,22,36) AND e.status_id IN (1) AND  e.is_current_revision = 1  AND  e.is_deleted = 0  AND c.is_deleted = 0 AND reminder.id IS NULL AND '20120328091601' >= DATE_SUB(e.activity_date_time, INTERVAL 2 day) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as contact_id, e.id as entity_id, 'civicrm_activity' as entity_table, 1 as actio' at line 2]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="
INSERT INTO civicrm_action_log (contact_id, entity_id, entity_table, action_schedule_id)
SELECT  as contact_id, e.id as entity_id, 'civicrm_activity' as entity_table, 1 as action_schedule_id
FROM civicrm_activity e
INNER JOIN civicrm_contact c ON c.id =
LEFT JOIN civicrm_action_log reminder ON reminder.contact_id =  AND
reminder.entity_id    = e.id AND
reminder.entity_table = 'civicrm_activity' AND
reminder.action_schedule_id = 1
WHERE e.activity_type_id IN (30,31,21,1,2,22,36) AND e.status_id IN (1) AND  e.is_current_revision = 1  AND  e.is_deleted = 0  AND c.is_deleted = 0 AND reminder.id IS NULL AND '20120328091601' >= DATE_SUB(e.activity_date_time, INTERVAL 2 day) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as contact_id, e.id as entity_id, 'civicrm_activity' as entity_table, 1 as actio' at line 2]"]
)


Any ideas

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: Schedule Reminders for Activities
March 28, 2012, 07:10:55 am

bails:

can u try the same on 4.1.1 and see if u can reproduce the error? If so, we should fix and then u can backport to 3.4.x

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

circlebails

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
  • CiviCRM version: 4.1.X 4.2.X
  • CMS version: Drupal-6.X / Drupal-7.X
  • MySQL version: 5.1
  • PHP version: 5.2.16/17, 5.3
Re: Schedule Reminders for Activities
March 29, 2012, 12:34:50 am
Hi Lobo 

ON 4.1.1 I get a lovely 500 from wget:

PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '../civicrm.config.php' (include_path='.:/usr/local/lib/php') in /var/www/html/training/drupal-7.12/sites/all/modules/civicrm/bin/deprecated/action.cronjob.php on line 56" while reading response header from upstream, client: 77.99.22.187, server: foopants.co.uk, request: "GET /sites/all/modules/civicrm/bin/deprecated/action.cronjob.php?name=myusername&pass=mypassword&key=9211091289874ac31657465394d4f3ad HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "foopants.co.uk"

my civicrm.config.php is in sites/all/modules/civicrm/civicrm.config.php

So I've added a  ../ to line 56

        require_once '../../civicrm.config.php';

I as I'm guessing the fact that the script now lives in bin/deprecated needs it.

That now runs correctly and gives a 200 rather than a 500.

Cheers

Bails




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: Schedule Reminders for Activities
March 29, 2012, 06:32:30 am

yes, we moved the scripts to the deprecated folder, but did not fix them so they would run :(

We are urging all folks to migrate to the new cronjob framework

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

circlebails

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
  • CiviCRM version: 4.1.X 4.2.X
  • CMS version: Drupal-6.X / Drupal-7.X
  • MySQL version: 5.1
  • PHP version: 5.2.16/17, 5.3
Re: Schedule Reminders for Activities
March 29, 2012, 07:27:17 am
So there's little chance of a fix in 4.0.8?

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: Schedule Reminders for Activities
March 29, 2012, 07:53:27 am

yeah, we dont have the time/energy/resources/$$$ to support and fix multiple releases.

However for scheduled reminders, there are a couple of fairly important fixes in 4.1.1 that might be worth the upgrade (specifically not sending to events/activities long past over)

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

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Schedule Reminders for Activities

This forum was archived on 2017-11-26.