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) »
  • Undefined Index in cron - $GLOBALS('language')
Pages: [1]

Author Topic: Undefined Index in cron - $GLOBALS('language')  (Read 659 times)

kafmil

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.095
  • PHP version: 5.2.17
Undefined Index in cron - $GLOBALS('language')
January 10, 2013, 09:38:31 pm
I am receiving the following errors in cron:
Code: [Select]
Notice: Undefined index: language in /path/to/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 556

Notice: Trying to get property of non-object in /path/to/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 558

Notice: Trying to get property of non-object in /path/to/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 561

Notice: Trying to get property of non-object in /path/to/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 564

Notice: Trying to get property of non-object in /path/to/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 569

Notice: Undefined offset: 0 in /path/to/drupal/sites/all/modules/civicrm/CRM/Core/I18n/PseudoConstant.php on line 56

These all appear to be related to not finding $GLOBALS('language') in Drupal.php on line 556. None of the drupal globals appear to be available. I am sure I have come across this issue before but I cannot remember how to solve it. Any help is greatly appreciated, thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Undefined Index in cron - $GLOBALS('language')

This forum was archived on 2017-11-26.