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 (Moderator: Dave Greenberg) »
  • PHP Fatal Error in Joomla Geocode Cron Job
Pages: [1]

Author Topic: PHP Fatal Error in Joomla Geocode Cron Job  (Read 1225 times)

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
PHP Fatal Error in Joomla Geocode Cron Job
November 02, 2012, 02:10:10 pm
When running this cronjob for geocode

php httpdocs/administrator/components/com_civicrm/civicrm/bin/cli.php -j -u username -p password -e Job -a geocode

we get this error:

PHP Fatal error:  Class 'JComponentHelper' not found in /mnt/data/vhosts/casite-232297.cloudaccess.net/httpdocs/libraries/joomla/access/access.php on line 300


We used the Joomla superadmin username and password, and tried it without the password since the documentation says 4.2 does not need a password. Both created this same error.

Either we did not put the cronjob in correctly or something is amiss with the username and password - at least those are our guesses.

Thanks for your thoughts in advance.

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: PHP Fatal Error in Joomla Geocode Cron Job
November 02, 2012, 03:58:45 pm
what version are you using of both joomla and civicrm?
in one of the dot releases of joomla there were some changes that then required a change in the subsequent version of civi. i want to say it was caused by 2.5.7 and fixed in 4.2.2, but don't quote me on that.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Re: PHP Fatal Error in Joomla Geocode Cron Job
November 03, 2012, 11:05:16 am
Hi,

I'm using Joomla 2.5.7 and Civi 4.2.4.

Does this help?


Potentially helpful in solving this: I found similar error messages in the joomla forums. They recommended adding this: jimport('joomla.application.component.helper');  to /libraries/joomla/access/access.php. I did this and the cron appeared to run, however, after an hour or so, I got this message:

Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /administrator/components/com_civicrm/civicrm/CRM/Core/Error.php on line 267

There is one other forum post that mentions this: http://forum.civicrm.org/index.php?topic=26062.0 which seems to think that adding the throttle parameter to the line will help. I tried that, and got the same message.

Thanks for any ideas you may have.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • PHP Fatal Error in Joomla Geocode Cron Job

This forum was archived on 2017-11-26.