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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • bin/cli.php is failing
Pages: [1]

Author Topic: bin/cli.php is failing  (Read 1193 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
bin/cli.php is failing
February 25, 2012, 02:04:43 am
When I try to run the new consolidated CRON, bin/cli.php  I get the error message:

Failed to bootstrap CMS

This was after an upgrade from 3.4.7 to 4.1.0, under Drupal 6.  I already changed the "civicrm.settings.php" file so that
define( 'CIVICRM_UF'               , 'Drupal6'        );
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: bin/cli.php is failing
February 25, 2012, 11:40:41 am
Are you running it via wget or cli? Can you try running the URL in a browser and see what happens?
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.

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: bin/cli.php is failing
February 26, 2012, 01:05:19 am
The failure happens when I run it via "cli"

The "wget" approach is working fine.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: bin/cli.php is failing
February 26, 2012, 01:44:53 pm
Hi - can we close down this thread in favour of

http://forum.civicrm.org/index.php/topic,23468.msg98586.html
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: bin/cli.php is failing
February 26, 2012, 02:18:49 pm
To be honest - I can't understand how cli.php would work on Drupal 7 OR drupal 6.

This line seems doomed to fail

Code: [Select]
        if( !CRM_Utils_System::loadBootstrap( array(), false, false, $civicrm_root )) {
since a positive response would only be returned if a correct username & password were submitted
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • bin/cli.php is failing

This forum was archived on 2017-11-26.