Some URLs not working

Created on 7 April 2016, over 8 years ago
Updated 18 February 2023, over 1 year ago

Hey all,

I've gotten the following error message for a couple of URLs I've tried to display using the opengraph filter - most URLs work fine but it seems that when the URL I try to render with the filter doesn't have a 'www' in it yet when clicked the source site pushes a 'www' into the URL the filter doesn't know what to do and doesn't render anything.

Error:

Notice: Undefined index: request_uri in template_preprocess_opengraph_filter() (line 377 of /var/www/vhosts/mywebsite.com/httpdocs/sites/all/modules/opengraph_filter/opengraph_filter.module).

Referenced code (from line 377):

  $variables['tags']['url'] = $variables['metatags']['request_uri'];
  $variables['tags']['type'] = 'website';
  foreach ($keys as $key) {
    if (isset($variables['metatags'][$key])) {
      $variables['tags'][$key] = $variables['metatags'][$key];
    }
  }

Any ideas how to hack/fix this?

Qasim

πŸ› Bug report
Status

Fixed

Component

Miscellaneous

Created by

πŸ‡¨πŸ‡¦Canada designguru

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.

Production build 0.71.5 2024