Using Solr database for rss media image error

Created on 20 June 2012, about 12 years ago
Updated 23 September 2023, 9 months ago

Hi there,

I have the following issue.
I use views to create a geolocation results display and I wish to attach an rss feed to the view.

Everything works fine except for the enclosure image media tag.

When creating a normal vews rss feed on the normal db I get the usual enclosure tag:
eg:

 <item> <title>The Ritz-Carlton Berlin</title>
 <link>http://www.xxx.info/12345</link>
 <description>Erleben Sie das The Ritz-Carlton, Berlin – ein unvergessliches 5-Sterne-Superior-Hotel, direkt am Potsdamer Platz gelegen und nur wenige Schritte von unzähligen Shopping- und Unterhaltungsmöglichkeiten entfernt. Das Luxushotel verfügt über einzigartige Räumlichkeiten und bietet einen anspruchsvollen Service. Als Gast unseres Hauses können Sie sich in der Ruhe und Abgeschiedenheit des Wellness…</description>
 <comments>http://www.ritzcarlton.com</comments>
 <enclosure url="http://www.xxx.info/files/styles/medium/public/uploads/entry/node_10288/pictures/picture_10288_ritz_berlin_00122_vert_x518_front.jpg" length="9775" type="image/jpeg" />
 <guid isPermaLink="false">12345</guid>
</item>

Namely:

<enclosure url="http://www.xxx.info/files/styles/medium/public/uploads/entry/node_10288/pictures/picture_10288_ritz_berlin_00122_vert_x518_front.jpg" length="9775" type="image/jpeg" />

Now when I use the solr_database to create a view my enclosure element looks like this:

<enclosure> &lt;enclosure url=&quot;http://www.xxx.info/files/styles/medium/public/uploads/entry/node_10330/pictures/picture_10330_hasir_mitte1.jpg&quot; length=&quot;8127&quot; type=&quot;image/jpeg&quot; /&gt;
</enclosure>

So it displays html and the entire tag again inside the tag...

How can I fix this issue?

I am using:

Views RSS 7.x-2.0-rc3
Views RSS: Media (MRSS) Elements 7.x-1.x-dev

I create a view - select RSS Feed - Fields as display type.
Attach the fields I require - including an image field.
Set the formatter as RSS enclosure element
select the correct image preset:

Multiple field settings:

display all values in same row: yes
Simple seperator 'blank'
display 1 value starting from 0

Style Settings - nothing ticked
Reqrite results: nothing ticked.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany -ds-

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.69.0 2024