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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Errors from CiviMail cron jobs
Pages: [1]

Author Topic: Errors from CiviMail cron jobs  (Read 4282 times)

speedyrob

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 3.0.3
  • MySQL version: 5.5.23
  • PHP version: 5.3
Errors from CiviMail cron jobs
March 26, 2013, 09:48:04 am
Hello

I am getting these errors from both cron jobs that are supposed to be running according to this article:
wiki.civicrm.org/confluence/display/CRMDOC43/CiviMail+Installation

This might not be a bug with the Beta of 4.3, but I thought I would mention it just in case. I am NEW to CiviCRM.

Error 1 ($PARAMS):
Warning: require(/home/tccadmin/public_html/libraries/joomla/environment/uri.php): failed to open stream: No such file or directory in /home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 616

Fatal error: require(): Failed opening required '/home/tccadmin/public_html/libraries/joomla/environment/uri.php' (include_path='.:/home/tccadmin/public_html/administrator/components/com_civicrm/civicrm:/home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/packages:.:/opt/php53/lib/php') in /home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 616

Error 2 ($PARAMSBOUNCE):
Warning: require(/home/tccadmin/public_html/libraries/joomla/environment/uri.php): failed to open stream: No such file or directory in /home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 616

Fatal error: require(): Failed opening required '/home/tccadmin/public_html/libraries/joomla/environment/uri.php' (include_path='.:/home/tccadmin/public_html/administrator/components/com_civicrm/civicrm:/home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/packages:.:/opt/php53/lib/php') in /home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 616

Thank you in advance!

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: Errors from CiviMail cron jobs
March 26, 2013, 12:01:06 pm

We do most of our testing / development with J! 2.5.x

However, would be really good to get 4.3 working with J! 3.0.x

Can you please check the civicrm file: CRM/Utils/System/Joomla.php and fix it so it will work with both J! 3.0 and J! 2.5

We can help u on IRC as needed. However our joomla knowledge is pretty minimal :(


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

speedyrob

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 3.0.3
  • MySQL version: 5.5.23
  • PHP version: 5.3
Re: Errors from CiviMail cron jobs
March 26, 2013, 12:41:42 pm
Hey Donald

I think that CiviCRM is working pretty good in 3.0.3. But, I am looking at line 616 in the Joomla.php file, and it is checking for a file that it really is not there.

    require $joomlaBase . '/libraries/joomla/environment/uri.php';

Why is this file not there in Joomla! 3.0.3 ? Is this file needed? How do I get on the IRC ? If you tell me what to do to whatever file you tell me, I will go and make changes, I don't know Joomla! a lot myself.

Let me know,
Thanks!

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: Errors from CiviMail cron jobs
March 26, 2013, 12:44:20 pm

You'll need to investigate the joomla docs and see where that file / functionality migrated to in joomla 3.0

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

speedyrob

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 3.0.3
  • MySQL version: 5.5.23
  • PHP version: 5.3
Re: Errors from CiviMail cron jobs
March 26, 2013, 02:49:39 pm
HI

I don't know what the functionality is, but I had to change the administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php file

    require $joomlaBase . '/libraries/import.php';
    require $joomlaBase . '/libraries/joomla/event/dispatcher.php';
    require $joomlaBase . '/libraries/joomla/uri/uri.php';
    require $joomlaBase . '/libraries/legacy/component/helper.php'; //'/libraries/joomla/application/component/helper.php';
    require $joomlaBase . '/configuration.php';

Now, I am having an problem with the administrator/components/com_civicrm/civicrm/CRM/Utils/Hook/Joomla.php
Error:
Fatal error: Class 'JCli' not found in /home/tccadmin/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook/Joomla.php on line 53

Line 53:         $app = JCli::getInstance();

What does this JCli mean or do? From the previous statements, it looks like its looking for a helper, but it is not specifc as to which one.

Let me know if anyone has any clues!

speedyrob

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 3.0.3
  • MySQL version: 5.5.23
  • PHP version: 5.3
Re: Errors from CiviMail cron jobs
March 27, 2013, 09:15:08 am
HI

I am positive that I was able to resolve my Cron Job errors by editing the following lines, and correcting the paths with what is highlighted in orange:

In the file: administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php

line 609      define('JPATH_BASE', $joomlaBase . '/administrator');
line 610      require $joomlaBase . '/includes/defines.php';
line 611    }
line 612
line 613    // Get the framework.
line 614    require $joomlaBase . '/libraries/import.php';
line 615    require $joomlaBase . '/libraries/joomla/event/dispatcher.php';
line 616    require $joomlaBase . '/libraries/joomla/uri/uri.php';
line 617    require $joomlaBase . '/libraries/legacy/component/helper.php'; //'/libraries/joomla/application/component/helper.php';

line 618   require $joomlaBase . '/configuration.php';
line 619
line 620    jimport('joomla.application.cli');

In the file: administrator/components/com_civicrm/civicrm/CRM/Utils/Hook/Joomla.php

line 53         $app = JApplicationCli::getInstance();

I will test processing emails and then see about the bounces
Thanks!

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: Errors from CiviMail cron jobs
April 23, 2013, 05:21:22 pm
I filed a patch against: http://issues.civicrm.org/jira/browse/CRM-12096
to address this. it ensures that we retain functionality for both 2.5 and 3.0

would be great if you can test.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Errors from CiviMail cron jobs

This forum was archived on 2017-11-26.