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) »
  • Fatal Error
Pages: [1]

Author Topic: Fatal Error  (Read 2332 times)

TeakMcGlukes

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 4.3.7
  • CMS version: Joomla 3.1.5
  • MySQL version: 5.1.52
  • PHP version: 5
Fatal Error
February 04, 2012, 08:43:13 pm
Hey guys.  This forum is really great, so helpful and friendly.  SOOOOO much better than the Joomla forums, which never produces anything helpful, ever.  They are truly terrible.

Anyhow, I just finished installing CiviCRM 4.1.beta3 because I was having so many problems trying to get the cron to launch.  As suggested by you guys, I upgraded to a pack with the consolidated cron.  I am VERY nearly fixed I believe, but I am getting a pesky error when I run the cron.

Quote
Fatal error: Class 'JPluginHelper' not found in /home/opoa/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook/Joomla.php on line 49

I get this when I try to navigate to http://www.opoa.info/administrator/components/com_civicrm/civicrm/bin/cron.php?name=[joomla-user-name]&pass=[joomla-password]&key=[key]

Is there any insight to be given?  In the Joomla forums they list to modify the
Quote
if ( defined( '_JEXEC' ) ) {
script to have an 'or die' error handling, but it just dies and the cron doesn't get launched.

I think I'm getting close, please help me push past the last hump.

Thank you,
Teak

BTW How do you assign Karma points?  You guys are so helpful.

TeakMcGlukes

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 4.3.7
  • CMS version: Joomla 3.1.5
  • MySQL version: 5.1.52
  • PHP version: 5
Re: Fatal Error
February 15, 2012, 01:21:07 pm
Please, please, please I am hopelessly desperate for help on this one.  I am behind on my project and this is the wrench in the whole machine. I really need help. Please. :-\

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: Fatal Error
February 15, 2012, 01:29:13 pm

i'd upgrade to the latest versions of joomla 1.7 and civi v4.1.0 and see if that helps

a couple of other joomla folk on the forums have had success running the cron tasks

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

TeakMcGlukes

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 4.3.7
  • CMS version: Joomla 3.1.5
  • MySQL version: 5.1.52
  • PHP version: 5
Re: Fatal Error
February 15, 2012, 01:47:29 pm
Lobo, thanks for the reply. I am running Joomla 1.7.3 and CiviCRM 4.1beta3.

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Fatal Error
February 24, 2012, 03:34:41 am
Just a "me too" on this. I've checke with my host (Hershel) and the Cron job appears properly set up, but is giving the same response as above. Running the cron manually (from inside the administrator area using that link) appears to work fine, so it is a function of calling it at a cron job (in the way that I do).

I'm on J1.7.5 and C4.1.0 and these are both versions that have been upgraded to that rather than installed fresh, in case that is relevant.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Fatal Error
February 24, 2012, 04:40:05 am
To note, EdP's site calls the wrong via wget and indeed just loading the URL into the browser shows the same error as the OP.
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.

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Fatal Error
February 27, 2012, 03:08:58 pm
Incidentally, looking at the code for the CRM\Utils\Hooks\Joomla.php it has this comment:

Code: [Select]
// ensure that we are running in a joomla context
       // we've not yet figured out how to bootstrap joomla, so we should
       // not execute hooks if joomla is not loaded
       if ( defined( '_JEXEC' ) ) {

Is that still the case because this page: http://developer.joomla.org/manual/ch01s02.html
sounds as if bootstrapping Joomla is as simple as including a file? Certainly including that file makes the error message go away (but the cron still doesn't seem to have run, so it wasn't a fix and I have no time tonight to look further).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Fatal Error

This forum was archived on 2017-11-26.