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) »
  • civimail.cronjob.php CLI fatal error
Pages: [1]

Author Topic: civimail.cronjob.php CLI fatal error  (Read 1393 times)

messy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.05
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.5
  • PHP version: 5.3.5
civimail.cronjob.php CLI fatal error
September 20, 2011, 02:17:10 pm
Greetings friends,

I am testing the civimail cronjob on a new installation using CLI and receive the following error:

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in .../drupal/sites/all/modules/civicrm/packages/PEAR.php:773) in .../drupal/sites/all/modules/civicrm/packages/PEAR.php on line 811

I am executing the file from the directory .../drupal/sites/all/modules/civicrm/ which is my CiviCRM root (at least, I'm pretty sure ;) ).

Running CiviCRM 4.05, Drupal 7.7 and PHP 5.3.5

php -v output:

PHP 5.2.17 (cli) (built: Jun 28 2011 17:39:50)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Any suggestions?

Many thanks in advance!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: civimail.cronjob.php CLI fatal error
September 22, 2011, 05:15:14 am
Please review http://forum.civicrm.org/index.php?topic=11932.0 and http://forum.civicrm.org/index.php?topic=16093.0
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.

messy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.05
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.5
  • PHP version: 5.3.5
Re: civimail.cronjob.php CLI fatal error
October 10, 2011, 07:01:56 pm
Thanks Hershel,

Had a read of both of those threads before posting, but don't believe they apply. I have a fresh install of Drupal and CiviCRM with no additional modules installed or enabled. I've also disabled all non-required modules in Drupal. Further, I don't appear to have a conflict in two separate PEAR installations as the error I'm receiving indicates that the redeclare is occurring in the same CiviCRM PEAR.php , not another, as was the issue in those other threads:

(previously declared in /usr/lib/php/PEAR.php:773) in ~/sites/all/modules/civicrm/packages/PEAR.php

vs the error I'm receiving (note the same file):

(previously declared in ~/sites/all/modules/civicrm/packages/PEAR.php:773) in ~/sites/all/modules/civicrm/packages/PEAR.php

Any other thoughts?

Sincerely appreciate your help.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: civimail.cronjob.php CLI fatal error
October 10, 2011, 07:09:10 pm
If you are running civimail.cronjob.php via CLI and getting this, then perhaps try running it via a URL.
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.

messy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.05
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.5
  • PHP version: 5.3.5
Re: civimail.cronjob.php CLI fatal error
October 10, 2011, 09:04:33 pm
It works via URL, but I'm attempting to run it through CLI to avoid execution timeout issues...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • civimail.cronjob.php CLI fatal error

This forum was archived on 2017-11-26.