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.
I am not sure which version this started happening with. The feed in question is http://northernplainsathletics.com/events/rss.xml
Using CTools alpha4 and Views beta3.
Comment | File | Size | Author |
---|---|---|---|
#7 | location-rss_namespaces-1122638-7.patch | 1.8 KB | rooby |
Comments
Comment #1
dawehnerThis is not added by views.
Perhaps you could search in all files in your installation for "georss". Please file an issue against this module.
Views just uses the core methods here.
Comment #2
Letharion CreditAttribution: Letharion commentedI think this qualifies as closed then, no? :)
Comment #3
mattbk CreditAttribution: mattbk commentedMoving to Location module to see if anyone can help me. "georss" shows up in search under this module and the gmap module.
This is the problem area as identified by Opera 11:
Error: undeclared XML namespace prefix used in attribute name
Specification: http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
Comment #4
mattbk CreditAttribution: mattbk commentedI solved this problem by setting "RSS mode" for that content type ("Competitive Event" in my case) to "None," but the fact remains that with the GeoRSS-simple setting, the georss tag makes some feed readers choke (in my case, Opera 11 and Apple Mail). Google Reader didn't seem to have a problem with it.
Comment #5
chamyalsunil CreditAttribution: chamyalsunil commentedSame problem here ....
Comment #6
chamyalsunil CreditAttribution: chamyalsunil commentedthis is the preview of rss feed
plz help me.
<?xml version="1.0" encoding="utf-8" ?>
http://localhost/road/drupal-7.0/jj
en
Unclaimed Baggage Center http://localhost/road/drupal-7.0/content/unclaimed-baggage-center <div class="field field-name-field-image field-type-image field-label-above"><div class="field-label">Image: </div><div class="field-items"><div class="field-item even"><img typeof="foaf:Image" src="http://localhost/road/drupal-7.0/sites/default/files/IMG1738A.preview.jpg" alt="" title="Sundernagar" /></div></div></div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The countrys largest final stop for lost luggage. Unclaimed at the airports, given a decent waiting period, UBC is a bargain free-for-all.’</p>
</div></div></div><div class="field field-name-field-chain field-type-list-boolean field-label-above"><div class="field-label">Chain: </div><div class="field-items"><div class="field-item even">No</div></div></div><div class="field field-name-field-category field-type-taxonomy-term-reference field-label-above"><div class="field-label">Category: </div><div class="field-items"><div class="field-item even"><a href="/road/drupal-7.0/category/attractions" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Attractions</a></div></div></div> Thu, 19 May 2011 12:08:14 +0000 admin
2 at http://localhost/road/drupal-7.0
http://localhost/road/drupal-7.0/content/unclaimed-baggage-center#comments
34.673694 -86.040594
Museum of Wonder http://localhost/road/drupal-7.0/content/museum-wonder <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Way back in the hills and dales of Alabama near a town called Seale, (population around 400 plus a coupla herds of cows) Butch Anthony has set up shop with a collection of some of the oddest stuff you have never seen. For the past 6 years or so hes been making a living as a folk artist and curator of his self-made Alabama Museum of Wonder.’</p>
</div></div></div><div class="field field-name-field-chain field-type-list-boolean field-label-above"><div class="field-label">Chain: </div><div class="field-items"><div class="field-item even">No</div></div></div><div class="field field-name-field-category field-type-taxonomy-term-reference field-label-above"><div class="field-label">Category: </div><div class="field-items"><div class="field-item even"><a href="/road/drupal-7.0/category/attractions" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Attractions</a></div></div></div> Thu, 19 May 2011 12:05:40 +0000 admin
1 at http://localhost/road/drupal-7.0
http://localhost/road/drupal-7.0/content/museum-wonder#comments
32.322894 -85.167063
Comment #7
rooby CreditAttribution: rooby commentedYep, there is a problem with the location_node rss functionality.
It does not properly set the $node->rss_namespaces.
Can you try this patch and see if it fixes your problem?
Comment #8
Th_puch CreditAttribution: Th_puch commentedThanks! Worked for me.
Comment #9
rickmanelius CreditAttribution: rickmanelius commentedI can confirm that patch #7 does ADD the georss namespace... but it also deletes/removes other namespaces.
Testing now to create an updated patch to get both...
Comment #10
rickmanelius CreditAttribution: rickmanelius commentedSo technically this patch solves the issue of adding the georss namespace. However, adding that element to $node->rss_namespaces has the following effect.
goes to
Printing out the node via dpm shows that prior to this patch, $node->rss_namespaces is empty and adding an element to $node->rss_namespaces causes the other to disappear. I think this might not be an issue with the location module at this point, so I'm willing to mark as RBTC because it seems that this change is really an issue with the node module... and merely a surprising result (at least to me).
Thoughts?
Comment #11
rooby CreditAttribution: rooby commentedThat does seem strange.
In this patch:
+ $node->rss_namespaces += location_rss_namespaces($mode);
In drupal core node_feed() function:
Everything gets merged in so it shouldn't overwrite.
In your example code you have a number of namespaces.
By default in drupal I believe you would only have
<rss version="2.0" xml:base="http://d7.rt" xmlns:dc="http://purl.org/dc/elements/1.1/">
Maybe whatever code is inseting your other namespaces is not doing it correctly?
I still don't know how you would end up with the result you got though.
Another possibility I guess is that node_feed() is not what is generating your particular RSS feed?
And whatever is is not doing things right?
Comment #12
rickmanelius CreditAttribution: rickmanelius commentedI think what happens (at least based on what I'm seeing) is that if NO $node->rss_namespaces are provided, the RDFx module throws in everything... and only when you set a namespace does it revert to just what is needed.
Again, this isn't looking like a location.module issue and it might warrant a new ticket in either Drupal core or RDFa/RDFx. Technically the patch works perfectly, it's just the behavior from other modules/core that is somewhat surprising.
Comment #13
rickmanelius CreditAttribution: rickmanelius commentedHi rooby,
I think this is somehow related to a default Drupal behavior instead of anything that this module and/or patch is doing (see my comment in #12).
What would you like me to do in order to test this theory? I could use a different module that adds $node->rss_namespaces and RSS namespace and see if it does the same thing. I actually had the same problem recently using Drupal Gardens in that (by default) they were throwing in all the namespaces even if they were not valid/needed. I think that happens here is that when one is set, it no longer throws in the kitchen sink :)
I'd like to get this tested and committed to the main branch, so let me know what would be sufficient to remove the concerns I brought up in #9/#10?
Comment #14
podarok#1931088: [META] Fixing tests tests were broken, so triggering to active
Comment #15
podarokbot
Comment #16
podarokany updates here
looks like this needs tests due to #1931088: [META] Fixing tests
Comment #17
rooby CreditAttribution: rooby commentedSorry I haven't got back to this one for ages.
In theory the patch in #7 should be good.
As rickmanelius mentions, the extra issues are probably a drupal core quirk.
Testing another module that provides rss namespaces to see if the same quirk happens would be a good idea.
Also, location module tests as per #16 would be great to make sure we get what is expected.
Comment #18
podarok#7 commited pushed to 7.x-3.x
thanks!!!
Comment #19
podarokhttp://drupal.org/node/1942736 tagged in alpha release