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 Error after 4.3.1 install
Pages: [1] 2

Author Topic: Cron Job Error after 4.3.1 install  (Read 3619 times)

Studio136

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
    • Studio136
  • CMS version: Joomla 3 (mostly)
Cron Job Error after 4.3.1 install
April 26, 2013, 11:50:08 am
I'm running Civi under Joomla 2.5.10 and just upgraded Civi from 4.2.9 to 4.3.1.  After the upgrade, which went through without a problem, I started receiving emails everytime my Cron job ran with the following message.

Warning: mysqli_ping(): Couldn't fetch mysqli in /home/integrat/public_html/libraries/joomla/database/database/mysqli.php on line 190

My cron job is set up the following way and worked fine prior to the 4.3.1 upgrade (even after the 2.5.10 upgrade).

/usr/local/bin/php /home/integrat/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php -j -u <<username>> -p <<password>> -e Job -a execute

Thanks.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job Error after 4.3.1 install
April 29, 2013, 04:21:58 am
I have the same problem on a Joomla site. Changing the connect strings from mysql to mysqli (long shot anyway) didn't help.
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.

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
April 29, 2013, 11:46:15 am
Same problem with multiple sites.
J 2.5.11
Civi 4.3.1
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
May 01, 2013, 09:21:47 am
Changing the mysqli to mysql fixed the problem but created warnings within Joomla because other things need the mqsqi.

I really need this cron to work.  :(
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job Error after 4.3.1 install
May 07, 2013, 03:02:15 am
Quote from: helenbn on May 01, 2013, 09:21:47 am
Changing the mysqli to mysql fixed the problem

Yes, for me also changing to mysql in Joomla's configuration.php file fixed the cron issue.
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.

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
May 07, 2013, 04:08:22 am
I need a different fix because I have other things within Joomla that needs the sqli.

Any ideas??
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
May 08, 2013, 12:51:04 pm
Upgraded to 4.3.2. No more error but cron does not actually run according to joomla civicrm scheduled jobs.

Close, but no cigar!
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

Studio136

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
    • Studio136
  • CMS version: Joomla 3 (mostly)
Re: Cron Job Error after 4.3.1 install
May 15, 2013, 10:24:48 am
I upgraded to 4.3.3 and it is back again.  I'm in the same position as helenbn, I can't turn off MySQLi because other components need it.  It sounds to me like this is a bug to be reported, am I mistaken?

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 Job Error after 4.3.1 install
May 15, 2013, 11:40:01 am

Yes, seems like a bug and should be investigated.

Dan/Helen: can one of you investigate and figure out whats happening and why, we can help u get started on irc

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

pratik.joshi

  • I’m new here
  • *
  • Posts: 9
  • Karma: 2
  • CiviCRM version: 4.4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.34
  • PHP version: 5.3.10
Re: Cron Job Error after 4.3.1 install
May 17, 2013, 03:29:42 am
Hello,

I tried the following:
1) Configured 3 schedule jobs namely : cleanup, send_reminder and process_mailing and set them active.
2) Ran the cli script for executing the above jobs :
        php /home/path_to_joomla_site/administrator/components/com_civicrm/civicrm/bin/cli.php -u admin -p admin -e Job -a execute
3) I got the PHP Warning :
        PHP Warning:  mysqli_ping(): Couldn't fetch mysqli in /home/path_to_joomla_site/libraries/joomla/database/database/mysqli.php on line 190

4) But the jobs mentioned in #1 ran successfully.

I did a bit of investigation for this warning and found :
1) This warning occurs when the php method mysqli_ping tries to access closed connection object as parameter -
        this method calling is done by joomla to check weather the connection is active or not;

2) However, this closed connection object is being accessed while joomla calls session destruct method after the civi job execution has been completed.
3) So, as per me, the schedule jobs execution will not be affected.

I used Joomla 2.5.11 with civicrm 4.3.3 and also on civicrm 4.3 git repo.

Also found joomla bug raised http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=26197 of similar kind (mysqli_ping warning).

Thanks,
Pratik.
« Last Edit: May 17, 2013, 04:18:39 am by pratik.joshi »

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
June 04, 2013, 12:38:23 pm
I cannot figure out what is happening and why.

Is there any progress on this yet?
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

christianweb

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.30
  • PHP version: 5.3.24
Re: Cron Job Error after 4.3.1 install
June 13, 2013, 09:49:06 pm
I also have the same issue. No matter what i do the cron job never runs on my Joomla install. I am using the latest civicrm 4.3.4 and latest 2.5 joomla 2.5.11.

Some direct help would be appreciated, i.e. the exact cron command that should be run, because the ones outlined in your documentation do not work

Thanks

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
July 02, 2013, 10:59:54 am
Hi,

Is there a patch for this yet?

Thanks,
Helen
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

christianweb

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Joomla 2.5.14
  • MySQL version: 5.5.30
  • PHP version: 5.3.24
Re: Cron Job Error after 4.3.1 install
July 04, 2013, 05:28:14 pm
Hi,

I have submitted this to the issue tracker and you can follow along here - http://issues.civicrm.org/jira/browse/CRM-13002

I have applied the changes outlined here - https://github.com/ravishnair/civicrm-core/commit/2cb7adde873f88ae03bcfc58206d19f43ef84864 and have run the cron job:

php -q /home/user/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php -u user -p pass -e Job -a execute

This did not result in any cron errors like it did before, however it also did not run the cron jobs.

I also tried using the address bar and running cron.php manually using the existing site key and credentials and it also did nothing still. I tried changing the site key and that made no difference.

Seems like the issue is still there.

If anyone else has applied the changes specified in github and it then worked for them please let me know what you did exactly.

Igor

helenbn

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 2
    • Pretty Good Designs
  • CiviCRM version: 4.5.x
  • CMS version: Joomla 2.5.x, 3.x
  • MySQL version: 5.x.x
  • PHP version: 5.x.x
Re: Cron Job Error after 4.3.1 install
July 05, 2013, 05:17:13 am
I made the change and it did not work for me either.  :'(
Pretty Good Designs | http://prettygooddesigns.com | Hey, that's pretty good!

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

This forum was archived on 2017-11-26.