- Status changed to Fixed
almost 2 years ago 3:16pm 18 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.
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
Fixed
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.