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.
To reproduce:
- Create a View with 2 displays, feed 1 and feed 2.
- Use views_embed_view() to output both displays.
- Rows from 2nd display will all be blank.
The problem is a static variable in the views_plugin_row_rss_fields::render() function. It assumes that Views will only render a single display before php exits.
Comment | File | Size | Author |
---|---|---|---|
#2 | fixStaticVar-2860890-1.patch | 1023 bytes | colemanw |
Comments
Comment #2
colemanw CreditAttribution: colemanw commentedHere is a patch to fix the problem.
Comment #3
colemanw CreditAttribution: colemanw commentedComment #4
JKingsnorth CreditAttribution: JKingsnorth commentedComment #5
DamienMcKennaOut of interest, wouldn't multiple RSS feeds in out output stream result in invalid RSS?
Comment #6
colemanw CreditAttribution: colemanw commentedIn my use-case I needed to fetch several streams programmatically and hand them off to another service.
Comment #7
bgm CreditAttribution: bgm commentedWe have been using this patch for a while, without discovering any issues.