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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • cron cli.php log error
Pages: [1]

Author Topic: cron cli.php log error  (Read 1900 times)

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
cron cli.php log error
January 31, 2012, 06:52:37 pm
Thanks for http://wiki.civicrm.org/confluence/display/CRMDOC41/Managing+Scheduled+Jobs helps a lot.

In cron I have the command
Code: [Select]

php /home/domain1/domains/mvowebsites.nl/public_html/drupal-7/sites/all/modules/civicrm/bin/cli.php -u drupaluser -p password -e Job -a execute


This works fine: the scheduled jobs are working: mass mail is send and the log of the scheduled jobs gives the starting and finishing execution results.

Problem is in drupal/apache logs. On each cron command there is

Code: [Select]
Notice: Undefined index: SERVER_SOFTWARE in require_once() (line 13 van /home/domain1/domains/mvowebsites.nl/public/drupal-7/includes/mail.inc).

Location: http://www.mvowebsites.nl/home/domain1/domains/mvowebsites.nl/public_html/drupal-7/sites/all/modules/civicrm/bin/cli.php?/home/mvwbsts/domains/mvowebsites.nl/public_html/drupal-7/sites/all/modules/civicrm/bin/cli.php


Searching this forum and the internet, I cannot find the reason. 
Any sollutions?

(this is issue was placed in http://forum.civicrm.org/index.php/topic,22817.0.html, the subject is different, that's why a made a new issue)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: cron cli.php log error
February 01, 2012, 08:34:10 am
Hopefully someone else can solve this issue, but I can provide an alternative approach, which would be to use the wget method of executing the cron job.
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.

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
Re: cron cli.php log error
February 01, 2012, 11:11:00 am
Thanks for your reply and help, I will use the wget command if I cannot find a solution for the log notice when using the php approach. It is not an error but the log file is not readable with this notice every minute.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • cron cli.php log error

This forum was archived on 2017-11-26.