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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • [solved] Cannot use object of type PEAR_Error as array in ...cli.php line 57
Pages: [1]

Author Topic: [solved] Cannot use object of type PEAR_Error as array in ...cli.php line 57  (Read 2021 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
[solved] Cannot use object of type PEAR_Error as array in ...cli.php line 57
August 29, 2011, 02:09:46 am
Cannot use object of type PEAR_Error as array in /home/ablazep/public_html/sites/all/modules/civicrm/bin/cli.php on line 57

The command I am running is (from within the civicrm module directory):

 nice -9 /usr/local/bin/php  bin/EmailProcessor.php -sdefault -uentitleduser -password activities

note that in place of 'entitleduser' I have an actual user name and for 'password' I have an actual password!

I have php ctypes enabled, so does  this means that the script is not finding the PEAR Console, which is in packages?

If so, is there something wrong with the script, or what else is setting the wrong path?

I also have settings_location.php in my civicrm root as follows:

<?php
define( 'CIVICRM_CONFDIR', '/home/ablazep/public_html/sites/' );

(following the recent note on http://wiki.civicrm.org/confluence/display/CRMDOC40/Command-line+Script+Configuration I've left out the closing php tag! though adding it in makes no difference)
« Last Edit: August 29, 2011, 07:25:01 am by myles »

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Cannot use object of type PEAR_Error as array in ...cli.php line 57
August 29, 2011, 07:24:30 am
Agh, funny message -

error was actually to do with PEAR having difficulties parsing the script - there's an error in it

the parameter is -ppassword rather than -password

I've always been too damn innattentive to be a coder.

I've now got something else funny going on - but on we go!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • [solved] Cannot use object of type PEAR_Error as array in ...cli.php line 57

This forum was archived on 2017-11-26.