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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cron Job problems
Pages: 1 2 [3]

Author Topic: Cron Job problems  (Read 23516 times)

gmarsh

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Cron Job problems
August 06, 2012, 10:25:13 am
Scheduled jobs finally work!  It was the fix from crawdaddyFL that did the trick!  I patched the Joomla.php file (CRM/Utils/System/Joomla.php) as noted and have used it on three different sites with success.  All running Joomla 2.5.6 and Civi 4.1.5.

For those who may be wondering whether this will cure scheduled job problems - I wasn't running cron jobs via php-cli, so didn't get the same error as craddadyFL.  Instead, I was processing through a URL and would get an HTTP 500 server error whenever I attempted to run the cron process.  I tried several of the other fixes described in the forum with no success.  An earlier thread describing other scheduled job problems and fixes is: http://forum.civicrm.org/index.php?topic=24449.0

Please note:  A couple of the fixes described in earlier posts are included in the 4.1.5 Joomla.php file.  So it's worthwhile to upgrade to Civi 4.1.5 BEFORE applying this latest patch.



gmarsh

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Cron Job problems
August 24, 2012, 05:40:39 am
Just downloaded the 4.2 archive and checked the CRM/Utils/System/Joomla.php file to see if this patch had been added.  Found that it was not added.  I have not upgraded to 4.2, so don't know if the patch is needed given other changes, but wanted to make a note of it.

This was a crucial addition in my 4.1.5 setup to allow CRON processes to run from a Joomla framework.


Quote from: crawdaddyFL on August 01, 2012, 01:17:27 pm
For those with the "PHP Fatal error:  Class 'JDispatcher' not found" problem running cron jobs via php-cli with Joomla 2.5.6:

Adding the line with the arrow to CRM/Utils/System/Joomla.php works for me.   

Code: [Select]
  function loadBootStrap($params = array(

 ...

    // Get the framework.
    require $joomlaBase . '/libraries/import.php';
-->    require $joomlaBase . '/libraries/joomla/event/dispatcher.php';
    require $joomlaBase . '/libraries/joomla/environment/uri.php';
    require $joomlaBase . '/configuration.php';
 

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Cron Job problems
August 24, 2012, 05:56:22 am
I just touched base with Kurund -- he'll make sure it's added to the next release.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cron Job problems
August 24, 2012, 06:05:35 am
For tracking purpose: http://issues.civicrm.org/jira/browse/CRM-10703

Kurund
Found this reply helpful? Support CiviCRM

gmarsh

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Cron Job problems
August 24, 2012, 01:36:55 pm
Thanks to both of you!

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cron Job problems

This forum was archived on 2017-11-26.