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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Errors running cron job since upgrade to 4.3.3
Pages: [1]

Author Topic: Errors running cron job since upgrade to 4.3.3  (Read 677 times)

artfulrobot.com

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 4
Errors running cron job since upgrade to 4.3.3
May 20, 2013, 08:45:41 am
Since the upgrade the cron job (civicrm/bin/cli.php) is spitting out:

PHP Notice:  Trying to get property of non-object in /var/www/mysite.com/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 699
PHP Notice:  Trying to get property of non-object in /var/www/mysite.com/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 702
PHP Notice:  Trying to get property of non-object in /var/www/mysite.com/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 705
PHP Notice:  Trying to get property of non-object in /var/www/mysite.com/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 709
PHP Notice:  Undefined offset: 0 in /var/www/mysite.com/sites/all/modules/civicrm/CRM/Core/I18n/PseudoConstant.php on line 52

I've looked at the code and this seems to be having a problem accessing global $language; I'm running the latest Drupal (7.22).

I've hacked the getUFLocale to just return null for now.

Seems to be something to do with running in cli mode - I don't get these notices using the site live.

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 running cron job since upgrade to 4.3.3
May 20, 2013, 09:09:56 am

i've fixed this for 4.3.4

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

artfulrobot.com

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 4
Re: Errors running cron job since upgrade to 4.3.3
May 20, 2013, 12:50:28 pm
cool. should it work ok with my "return null" in that function? (the client speaks English, so translation is not reqd.)

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 running cron job since upgrade to 4.3.3
May 20, 2013, 12:58:15 pm

yes it should

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Errors running cron job since upgrade to 4.3.3

This forum was archived on 2017-11-26.