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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Cron jobs with Joomla 3.2 and civi 4.4.3
Pages: [1]

Author Topic: Cron jobs with Joomla 3.2 and civi 4.4.3  (Read 2057 times)

dflorence

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: joomla 2.5 and testing 3.2.1
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Cron jobs with Joomla 3.2 and civi 4.4.3
January 02, 2014, 06:31:01 am
Hi, I'm trying to set up a cron job for scheduled tasks on Joomla 3.2  I hope this will be possible.

When logged into civi, the internal run all cron jobs manually method works fine: http://mysitename/administrator/?option=com_civicrm&task=civicrm/admin/runjobs&reset=1

The url for the cron however fails. The one I am using is as recommended in the docs: http://mysitename/administrator/components/com_civicrm/civicrm/bin/cron.php?name=admin&pass=XXXXX&key=XXXXXXXX

I started with Joomla  3.1 but I was getting errors like this: "Fatal error: Interface 'JObservableInterface' not found in /home/makeitbetter/public_html/libraries/joomla/table/table.php on line 26 "

There is a thread bout this at http://forum.civicrm.org/index.php?topic=29549.0 but I got a bit lost with the various proposed solutions, and as it seemed to be a joomla error anyway, I tried instead updating Joomla to  v3.2 - where the joomla issue referred to on this thread seems to have been fixed.

But with Joomla v3.2 I get a different error: "Fatal error: Class 'JPluginHelper' not found in /home/makeitbetter/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook/Joomla.php on line 47 "

I would really like to use Joomla 3 and am  happy to help out troubleshoting/fixing to the best of my ability, but where to start?

It seems that there's an ongoing problem with getting the Plugin helper class to load in the Joomla hook.

Has anyone got cron running successfully with Joomla 3? if so did they have to implement a fix and if so could they post it ?

Thanks

Dave




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: Cron jobs with Joomla 3.2 and civi 4.4.3
January 02, 2014, 08:45:57 pm

Would be great if you can take a look and investigate

the best place to start would be where the error is being reported and work backwards from there. I'd fix the fatal error first and then see how far it gets you etc

i assume u will need some knowledge of php and ability to grok some joomla code to make progress and fix this issue. Please post a patch once u've figured it out. Ideally would be great to ensure your patch does not break older versions of joomla + civi

thanx

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

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 jobs with Joomla 3.2 and civi 4.4.3
January 03, 2014, 07:21:59 am
I'll take a look as well.
I suspect we need to add some conditions to handle the differences between J3.0, J3.1, J3.2
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

dflorence

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: joomla 2.5 and testing 3.2.1
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Re: Cron jobs with Joomla 3.2 and civi 4.4.3
January 03, 2014, 11:44:24 am
Thanks lcdweb, I guess you understand the code better than me...

When I said I didn't know where to start, I think I knew that I had to start from where the fatal error was being reported, what I REALLY meant was I had no clue about how to start fixing the fatal error :(

I can't reproduce the  Jpluginhelper error I mention above now, instead I'm getting the same username/password error that conductorchris gets ( http://forum.civicrm.org/index.php/topic,31139.0.html )

When I get a chance I'll try this with Joomla3.0 , if that works its a good pointer that its J3.2 causing the problem

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 jobs with Joomla 3.2 and civi 4.4.3
January 07, 2014, 06:18:59 pm
I hadn't had a chance to look at this yet, but just noticed time filed a PR that likely will fix the issue:
https://github.com/civicrm/civicrm-core/pull/2306

may want to try that and see if the issue resolves.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

gharris

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 0
  • CiviCRM version: new
  • CMS version: new
  • MySQL version: new
  • PHP version: new
Re: Cron jobs with Joomla 3.2 and civi 4.4.3
January 13, 2014, 07:55:15 am
It's not Joomla, but I've been having the same issue with WordPress.  Check out this thread and see if it might help:

http://forum.civicrm.org/index.php/topic,31139.0.html

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Cron jobs with Joomla 3.2 and civi 4.4.3

This forum was archived on 2017-11-26.