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) »
  • Issue running CiviMail cron jobs
Pages: [1]

Author Topic: Issue running CiviMail cron jobs  (Read 682 times)

thomasat12meter

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Issue running CiviMail cron jobs
June 16, 2011, 07:08:22 am
Hi,

I get the following errors when running the civiMail related cron scripts, bin/civimail.cronjob.php and bin/EmailProcessor.php
The problem comes up both running the scripts using php-cli or via http. Drupal 6.22 and CiviCRM 3.4.3. Outbound email and bounce processor have been configured successfully.

Followed the steps on:
http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviMail+Installation , and
http://en.flossmanuals.net/civicrm/ch042_system-configuration/

My interpretation of the error is that the scripts look in the wrong place for the civicrm.settings.php file. Any hints you have to resolve this would be appreciated.

Warning: include_once(/path-to-drupal-root/sites/all/modules/civicrm/default/civicrm.settings.php) [function.include-once]: failed to open stream: No such fil e or directory in /path-to-drupal-root/sites/all/modules/civicrm/civicrm.config.php on line 110

Warning: include_once() [function.include]: Failed opening '/path-to-drupal-root/sites/all/modules/civicrm/default/civicrm.settings.php' for inclusion (include_pat h='.:/usr/share/php:/usr/share/pear') in /path-to-drupal-root/sites/all/modules/civicrm/civicrm.config.php on line 110

Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /path-to-drupal-root/sites/all/modu les/civicrm/bin/civimail.cronjob.php on line 63

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /path-to-drupal-root/sites/all/modules/civicrm/bin/civimail.cronjob.php on line 63

Thanks, Tom

thomasat12meter

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Re: Issue running CiviMail cron jobs
June 16, 2011, 07:23:30 am
ok, I got over that by creating the following settings_location.php file in
/path-to-drupal-root/sites/all/modules/civicrm/

<?php
// the following (/home/lobo/public_html/drupal/sites/)
// should be changed to your sites directory
define( 'CIVICRM_CONFDIR', '/path-to-drupal-root/sites/' );

I have seen this in a civicrm forum post but I can't find the post at the moment...
Here is a link to the CiviCRM doc with the same info:
ttp://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations

Tom
« Last Edit: June 16, 2011, 07:25:35 am by thomasat12meter »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Issue running CiviMail cron jobs

This forum was archived on 2017-11-26.