This may be more of a general Feed problem than a Views Bonus Pack issue, but I'm using XML and hoping someone can help anyway.
I am using "Style: XML file" to build a Feed which is used as a nightly data export of several nodes. The View works fine, as evidenced by the Preview, with several dozen nodes. The XML file, however, only contains 10 items, UNLESS I retrieve it from a browser which is logged in to Drupal. In that case, the entire list comes through.
Logging in to Drupal is not an option for the automated retrieval. I need all results of this view to appear in the Feed when loaded by an anonymous user.
I'm guessing that some other restriction with the Feed display is causing the problem, or some other permission. Changing Content Management > RSS publishing did not affect the number of nodes returned.
Again, the View and its filters are fine, and returning the right number of items... here are the relevant Feed settings:
Style: XML file
Items to display: Unlimited
Distinct: No
Access: Unrestricted
Thanks!
Comments
Comment #1
neclimdulPossibly obvious question but have you tried clearing your cache?
Comment #2
Earwig commentedYes. The cap is definitively linked to whether I am authenticated. It seems like limitations on Feeds should be overridden by the View settings, or handled by the View altogether.
Comment #3
neclimdulThat is how its handled which is why I'm not sure what's going on.
Comment #4
Scott Reynolds commentedI have run into this with XLS export as well. For whatever reason, its 'inheriting' the pager from the attached display or default display.
Comment #5
neclimdulAs a note, this also happens with the core views RSS feed so it would seem this is either a expected behavior or a bug in views itself. I hope to be able to talk to merlin soon and see if we can't track down where and with which project the actual problem is.
Comment #6
neclimdulOk, I don't know what happened but this magically decided its not going to happen anymore. can someone still seeing this look through the views_plugin_display and view pre_render functions and see if things right. you might have to use some vpr_trace's in view->set_items_per_page and see where the problematic call is coming from.
Thanks.
Comment #7
Earwig commentedOn a related (maybe?) note, sort order of the XML feed seems to be ignored completely, even when I get the proper number of items by being authenticated. It seems to be sorting them by creation date, no matter what. Preview query of the View sorts properly.
Comment #8
neclimdulThe sort bug has actually been fixed in the latest -dev. #737450: Default sorting is broken. is the relevant issue. I don't know about the original issue as I haven't been able to reproduce it again.
Comment #9
Scott Reynolds commentedAh Ha I am able to reproduce with this view. Its CSV in this case but shouldn't be any different.
Comment #10
Scott Reynolds commentedAnd I was able to solve my problem by setting the Default display to have no pager, and then my page display override pager settings and set it to full pager 25 items.
So the paging is being inherited from the default display.
Comment #11
evanmcd commentedI'm having a similar issue, which I haven't been able to resolve. With style set to XML File, I get results when authenticated but no results when not authenticated.
Access is set to unrestricted in the Default and Feed views, User pager set to No.
Comment #12
neclimdul