Undefined index error

Created on 21 April 2020, almost 5 years ago
Updated 27 January 2025, 2 months ago

Great module! Unfortunately I'm getting a few variations of the same error:

Notice: Undefined index: und in _intlinks_title_process_link() (line 98 of /srv/bindings/adc3fbecffef41cc8fdd6057c5bda618/code/sites/all/modules/contrib/intlinks/intlinks_title_filter.inc).

Any idea what might cause this?

Awesome module, seems to work great despite the errors.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States plato1123

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States philsward

    The supplied patch produces the error:

    Warning: Undefined array key "" in _intlinks_build_url_options() (line 122 of /sites/all/modules/contrib/intlinks/intlinks_title_filter.inc).

    Google Gemini proposed fix:

    function _intlinks_build_url_options($parts, $language_list, $langcode) {
      $options = ['absolute' => FALSE];
    
      if ($langcode !== LANGUAGE_NONE && isset($language_list[$langcode])) {
        $options['language'] = $language_list[$langcode];
      }
    
      if (isset($parts['query'])) {
        $options['query'] = $parts['query'];
      }
    
      if (isset($parts['fragment'])) {
        $options['fragment'] = $parts['fragment'];
      }
    
      return $options;
    }
    
Production build 0.71.5 2024