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 »
  • 3.4 and 4.0 Releases Testing »
  • LANGUAGE_NEGOTIATION notices
Pages: [1]

Author Topic: LANGUAGE_NEGOTIATION notices  (Read 2673 times)

mrl586

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.0
  • MySQL version: 5.5.9
  • PHP version: 5.3.5
LANGUAGE_NEGOTIATION notices
February 25, 2011, 01:51:31 pm
I see following notices when I look index page of Drupal.
Code: [Select]
Notice: Use of undefined constant LANGUAGE_NEGOTIATION_NONE - assumed 'LANGUAGE_NEGOTIATION_NONE' funktiossa CRM_Core_Config->_setUserFrameworkConfig() (rivi 250 tiedostossa /path/to/drupal/sites/all/modules/civicrm/CRM/Core/Config.php).
Notice: Use of undefined constant LANGUAGE_NEGOTIATION_PATH_DEFAULT - assumed 'LANGUAGE_NEGOTIATION_PATH_DEFAULT' funktiossa CRM_Core_Config->_setUserFrameworkConfig() (rivi 252 tiedostossa /path/to/drupal/sites/all/modules/civicrm/CRM/Core/Config.php).
Notice: Use of undefined constant LANGUAGE_NEGOTIATION_PATH - assumed 'LANGUAGE_NEGOTIATION_PATH' funktiossa CRM_Core_Config->_setUserFrameworkConfig() (rivi 252 tiedostossa /path/to/drupal/sites/all/modules/civicrm/CRM/Core/Config.php).

HanV

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: LANGUAGE_NEGOTIATION notices
April 13, 2011, 06:27:46 am
I have the same problem after upgrading from Drupal 6.20 to Drupal 7, and CiviCRM from 3.20 to 4.0.beta3.

It is a problem in Drupal 7 in the module locale. When you disable this module you dont have these warnings, but that is not possible when you want to use another language.

In the Drupal forums there is no real solution given for this problem. My solution is to add 4 lines to default/civicrm.settings.php to define these fields. I can not find out how you set  in Drupal these parameters, in a post it is said that they are only used in Drupal 6. The variable 'language_negotiation' is not present and the existing variable 'language_negotiation_language' looks different.

define( 'LANGUAGE_NEGOTIATION_NONE', 0 );
define( 'LANGUAGE_NEGOTIATION_PATH_DEFAULT', 1 );
define( 'LANGUAGE_NEGOTIATION_PATH', 2 );
define( 'LANGUAGE_NEGOTIATION_DOMAIN', 3);



 
HanV

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: LANGUAGE_NEGOTIATION notices
April 13, 2011, 09:52:45 pm
An issue has been filed  - you can track  it here:
http://issues.civicrm.org/jira/browse/CRM-7803

HTh
Sushant.
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

johanbeckers

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.3.2
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a
  • PHP version: 5.2.14
Re: LANGUAGE_NEGOTIATION notices
April 14, 2011, 02:18:41 am
Applying the patch in this issue solved it for me!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • LANGUAGE_NEGOTIATION notices

This forum was archived on 2017-11-26.