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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
Pages: [1]

Author Topic: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function  (Read 1276 times)

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 07, 2011, 03:08:03 pm
TRIAL #97 (of 100+)
php5 /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -uUSER -pPASSWORD -sSITEKEY
Resulted in
Warning: require_once(./civicrm.config.php): failed to open stream: No such file or directory in /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php on line 107

Fatal error: require_once(): Failed opening required './civicrm.config.php' (include_path='packages/:.:/usr/lib/php:/usr/local/lib/php') in /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php on line 107
__________________________________
TRIAL #98 (of 100+)
cron -e php5 /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -uUSER -pPASSWORD -sSITEKEY
results in   
/bin/sh: cron: command not found
________________
TRIAL #99 (of 100+)
php5 /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php -umailprocess -pSucceed17586 -sSucceed17586
results in 

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/lib/php/PEAR.php:735) in /home/dtruss/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php on line 811
_______________________________

All suggestions appreciated, we really need this to work
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 07, 2011, 03:36:31 pm
try the wget method: http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviMail+Installation#CiviMailInstallation-Usingwget
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.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 07, 2011, 03:39:27 pm

might also want to see if someone on IRC can help.

In general, repeating the same set of commands with different variation is not very likely to work (IMO).

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Re: Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function
May 07, 2011, 07:00:00 pm
FIXED!  Thank you Hershel Robinson!

1.  modify civimail.cronjob.php. Change line 68 ((just after // you can run this program either from an apache command
or from the cli)).  Change   

                  if (isset($argv)) {
to
                  if (0) {

In command line of cron job use
wget 'http://www.example.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=admin&pass=333&key=xxx'

(single quotes were required)

Thanks again Hershel!
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Joomla 1.5.20, civicrm CiviCRM 3.3.5, Hostgator, can't get cron jobs to function

This forum was archived on 2017-11-26.