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) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • cli.php -s option incorrectly documented
Pages: [1]

Author Topic: cli.php -s option incorrectly documented  (Read 870 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
cli.php -s option incorrectly documented
October 29, 2013, 07:41:42 pm
On page http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs the documentation says the -s option should be used in the following instance ...
Quote
Using cli.php with Drupal Multi-site

If your site is NOT running under sites/default, add -s <site_directory> to the command line. For example, to run the Process Pledges job when your site is running from sites/myorg ...

But the only use of this parameter in the code that I can see is ...
Code: [Select]
    $_SERVER['HTTP_HOST'] = $this->_site;
... on line 186 of bin/cli.class.php

From my reading, the -s option supplies the host name, and should be supplied in all instances. The default for _site is 'localhost' but this not helpful for instance when the send-mail job wants to convert relative URLs to absolute.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: cli.php -s option incorrectly documented
October 31, 2013, 10:51:52 pm
That documentation page has been updated.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • cli.php -s option incorrectly documented

This forum was archived on 2017-11-26.