Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
creted and got this error
Notice: Undefined variable: nids in views_plugin_row_node_rss->pre_render() (line 60 of D:\xampp\htdocs\d7allsaints\sites\all\modules\views\modules\node\views_plugin_row_node_rss.inc).
Comment | File | Size | Author |
---|---|---|---|
#1 | 1109564-row_node_rss-notice.patch | 616 bytes | dawehner |
Comments
Comment #1
dawehnerDoes this patch works for you?
In general do you get any results in this feed?
Comment #2
artatac CreditAttribution: artatac commentedYes getting results
http://venturacottage.homedns.org/d7allsaints/user
webmaster
aa
If you want to look yourself
Comment #3
dawehnerUpdate status.
Comment #4
artatac CreditAttribution: artatac commentedStarted with a fresh install and am rebuilding currently cannot reproduce error
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedLet's use this status for now; it's a better descriptor.
Comment #6
BrightBoldI am getting the same error after installing the WP_Blog module, which created the following view:
Patch in #1 seems to solve it.
Comment #7
Bevan CreditAttribution: Bevan commentedI tested this and confirmed it fixes the bug where a Feed display with no rows causes an error like "Undefined variable: nids in views_plugin_row_node_rss->pre_render() (line 60 of .../modules/views/modules/node/views_plugin_row_node_rss.inc".
The patch is clean and meets code standards. Further, this is a simple fix. I am marking as RTBC.
I marked #1134416: nids in views_plugin_row_node_rss->pre_render() (line 60 as duplicate.
Comment #8
Bevan CreditAttribution: Bevan commentedComment #9
dawehnerThere should be no pre_render called when there is not result, or?
Perhaps there is a use case to alter the values if there are none.
Comment #10
Bevan CreditAttribution: Bevan commentedWell, the Feed's URL should still return valid RSS+XML even if there are no items. I do not know if/how that affects whether pre_render should be called or not...
Comment #11
dynamicdan CreditAttribution: dynamicdan commentedI also got the error randomly.. What also concerns me is that the default drupal functionality of showing the content related to a term is not working...
mysite/tags/fish should show me content tagged with fish. Am I missing something here?
Do I have to now specify what should happen with mysite/tags/[extra-url-parts] ?
Comment #12
merlinofchaos CreditAttribution: merlinofchaos commentedI think pre_render() is called on the style even with no rows. Committed this patch.
Comment #14
marco71 CreditAttribution: marco71 commentedIs this the final patch for this issue?
And does this fix also "Style RSS Feed requires a row style but the row plugin is invalid." error?
As was suggested on http://www.drupalgardens.com/content/feed-error-style-rss-feed-requires-....
I am using Views 7.x-3.0-rc1 and this error below is showing up there.
"Style RSS Feed requires a row style but the row plugin is invalid."
Comment #15
dawehnerMh this patch is about the notice not about having a rss row plugin for users.
I'm not sure whether there exists a feature request for that, but .... the final patch is above.
Comment #16
marco71 CreditAttribution: marco71 commentedTnx for the reply,
Do you know if your patch is already in 7.x-3.0-rc1?
Also the error looks different from mine and actually doesn't mean the same.
Probably my error isn't the same problem... hmmm.
I guess I need to dive in more :-)
Comment #17
dawehnerIt should be part of the RC1. If it's not just use the dev version and be happy :)
Comment #18
marco71 CreditAttribution: marco71 commentedThank you ;-) Most mod already in dev anyway so it's in good company.