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) »
  • bin/cli.php, line 58: Cannot use object of type PEAR_Error as array
Pages: [1]

Author Topic: bin/cli.php, line 58: Cannot use object of type PEAR_Error as array  (Read 2569 times)

elifarley

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 6
  • MySQL version: 5.1.5.3
  • PHP version: 5.3.4
bin/cli.php, line 58: Cannot use object of type PEAR_Error as array
January 16, 2011, 11:05:46 am
When I try to run the cron job as suggested in http:// en.flossmanuals.net/CiviCRM/SystemConfiguration :

*/5 * * * * cd $CIVI_ROOT;$PHP  bin/civimail.cronjob.php $PARAMS

I get this error:

Fatal error: Cannot use object of type PEAR_Error as array in /home/USER/DOMAIN/drupal/sites/all/modules/civicrm/bin/cli.php on line 58

I'm using CiviCRM 3.3.2 and PHP 5.3.4

Is it a misconfiguration from my part?

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: bin/cli.php, line 58: Cannot use object of type PEAR_Error as array
January 27, 2011, 06:58:58 am
I'm running into this same issue. Did you find any resolution?

civicpixel

  • I’m new here
  • *
  • Posts: 25
  • Karma: 3
Re: bin/cli.php, line 58: Cannot use object of type PEAR_Error as array
March 16, 2011, 03:56:49 pm
We ran into this same error today when moving a site from a wget implementation to a php cli cron implementation.

That error can mean that PEAR had trouble parsing the arguments, which is quite possible if you ambiguously read the civimail guide in the manual here: http://en.flossmanuals.net/CiviCRM/SystemConfiguration

The mistake we made was assuming -sdefault -umailprocess -pseol-lzprm42amv-psyc were the full values to replace. So in our cron setup we had:
-sdefault -username -password
instead of:
-sdefault -uusername -ppassword

Replacing them with that second pattern resolved the error for us.

brian@openmediafoundation.org

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: bin/cli.php, line 58: Cannot use object of type PEAR_Error as array
March 16, 2011, 09:44:08 pm
Quote from: civicpixel on March 16, 2011, 03:56:49 pm

The mistake we made was assuming -sdefault -umailprocess -pseol-lzprm42amv-psyc were the full values to replace. So in our cron setup we had:
-sdefault -username -password
instead of:
-sdefault -uusername -ppassword


Thanks, will try to modify the the cli to make a clearer error message.

Could you create an issue and assign it to me?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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

This forum was archived on 2017-11-26.