Undefined index: external in includes/language.inc on line 109.

seen on every page in a site not in English, i.e. using another default language.

CommentFileSizeAuthor
#2 642524.patch643 bytesjennifer.chang
#1 642524.patch644 bytesjennifer.chang

Comments

jennifer.chang’s picture

Status: Active » Needs review
StatusFileSize
new644 bytes
jennifer.chang’s picture

StatusFileSize
new643 bytes

Try this one instead.

Freso’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly and works as advertised and is really, really simple. However, does this need forward-porting to 7.x?

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Similar functionality seem to exist in locale_language_url_rewrite_url() and locale_language_url_rewrite_session() in D7, none of which have similar code though. The language based URL handling was totally reworked in D7.

Committed to Drupal 6, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

grahamtk’s picture

Alas, it seems it needs forward porting:
The described errormessage in this issue happens also in my drupal 7 site.
The default language is not English in this site also.

I also find the same options array here:

Lines 992 to 994 in drupal_root/modules/locale/locale.module 
function locale_url_outbound_alter(&$path, &$options, $original_path) {
  // Only modify internal URLs.
  if (!$options['external'] && drupal_multilingual()) {