Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
for some reason $r_url was empty and parse_url func was breaking on that. so I had to add an extra check in the below function
function _feeds_tamper_absolute_url($r_url, &$urls, $b) {
if(empty($r_url)){
return;
}
$r = parse_url($r_url);
Comments
Comment #1
TechNikh CreditAttribution: TechNikh commentedalso I had to do this to handle images in google news rss feeds https://news.google.com/news/feeds?output=rss&q=%22rti%20act%22
description has //nt3.ggpht.com/news/tbn/b0UpRelFgmEtpM/6.jpg
which has to be converted to https://nt3.ggpht.com/news/tbn/b0UpRelFgmEtpM/6.jpg
Comment #2
twistor CreditAttribution: twistor commentedWhat was your configuration that gave you an empty value?
Breaking how, there's already a check to see if the parse failed?
Handling scheme relative urls would be a different issue.
Comment #4
twistor CreditAttribution: twistor commentedComment #6
twistor CreditAttribution: twistor commented