So we have 3 languages.
But we are not enabling the other 2 yet, but want the functionality available.

Global redirect throws an error on this

LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX - assumed 'LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX' in globalredirect_init() (line 142 of /var/www/cccj/live/public/sites/all/modules/globalredirect/globalredirect.module).

However if you change the code on this line -->
if ($settings['language_redirect'] && module_exists('translation') && preg_match('/node\/([0-9]+)(\/.+|)$/', $current_path, $matches)) {

to
if (drupal_multilingual() && $settings['language_redirect'] && module_exists('translation') && preg_match('/node\/([0-9]+)(\/.+|)$/', $current_path, $matches)) {

It goes away.
drupal_multilingual Returns TRUE if there is more than one language enabled.
http://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_...

There might be implications of doing this, but thought you should know about it.

CommentFileSizeAuthor
#1 1770186-1.patch843 bytesLukas von Blarer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lukas von Blarer’s picture

Status: Active » Needs review
FileSize
843 bytes

I created a patch with code replacements you made. It made the error go away.

Status: Needs review » Needs work

The last submitted patch, 1770186-1.patch, failed testing.