Home › Forums › Calendar Products › Events Calendar PRO › RSS and iCal Feeds
- This topic has 16 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 30, 2012 at 8:31 am #24356
wdgdc
ParticipantI’m having trouble getting the event feeds to return the correct information.
iCal feeds return all the expected information
/events/category/entertainment/ical or /events/icalFeeds don’t.
/events/feed or /events/rss or events/rss2 etc
/events/category/entertainment/feed or /events/category/entertainment/rss
They all return the xml that’s formatted correctly, but the actual content is missing.When I try to query the feed url directly, e.g. /index.php?post_type=tribe_events&eventDisplay=upcoming&feed=rss2
I get the same result.This is a multisite installed in a subdirectory.
August 30, 2012 at 12:13 pm #24364wdgdc
ParticipantStill tracing the issue. It seems like the post type modifications aren’t making it to the feed, but eventDisplay is there.
WP_Query Object ( [query_vars] => Array ( [feed] => feed [post_type] => Array ( [post] => post ) [eventDisplay] => upcoming [error] => [m] => 0 [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [static] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author_name] => [tb] => [paged] => 0 [comments_popup] => [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [fields] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [blogid] => [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_post_meta_cache] => 1 [posts_per_page] => 10 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [order] => DESC ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( ) [relation] => AND ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( ) [relation] => ) [post_count] => 10 [current_post] => 0 [in_the_loop] => 1 [comment_count] => 0 [current_comment] => -1 [found_posts] => 41 [max_num_pages] => 5 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => [is_search] => [is_feed] => 1 [is_comment_feed] => [is_trackback] => [is_home] => [is_404] => [is_comments_popup] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_posts_page] => [is_post_type_archive] => [query_vars_hash] => 66a90307febc6d6192cce3d309ce9f71 [query_vars_changed] => 1 [thumbnails_cached] => [query] => Array ( [feed] => feed [post_type] => Array ( [post] => post ) [eventDisplay] => upcoming )
August 31, 2012 at 7:58 am #24391wdgdc
ParticipantAnother update.
Some of the rewrite rules are missing from the wp rewrite object.
The following are there, but the rest are missing.
[event/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[event/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[event/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[event/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[event/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[event/([^/]+)/trackback/?$] => index.php?tribe_events=$matches[1]&tb=1
[event/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events=$matches[1]&feed=$matches[2]
[event/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events=$matches[1]&feed=$matches[2]
[event/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tribe_events=$matches[1]&paged=$matches[2]
[event/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?tribe_events=$matches[1]&cpage=$matches[2]
[event/([^/]+)(/[0-9]+)?/?$] => index.php?tribe_events=$matches[1]&page=$matches[2]
[event/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[event/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[event/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[event/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[event/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[venue/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[venue/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[venue/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[venue/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[venue/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[venue/([^/]+)/trackback/?$] => index.php?tribe_venue=$matches[1]&tb=1
[venue/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_venue=$matches[1]&feed=$matches[2]
[venue/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_venue=$matches[1]&feed=$matches[2]
[venue/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tribe_venue=$matches[1]&paged=$matches[2]
[venue/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?tribe_venue=$matches[1]&cpage=$matches[2]
[venue/([^/]+)(/[0-9]+)?/?$] => index.php?tribe_venue=$matches[1]&page=$matches[2]
[venue/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[venue/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[venue/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[venue/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[venue/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[events/category/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events_cat=$matches[1]&feed=$matches[2]
[events/category/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events_cat=$matches[1]&feed=$matches[2]
[events/category/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tribe_events_cat=$matches[1]&paged=$matches[2]
[events/category/([^/]+)/?$] => index.php?tribe_events_cat=$matches[1]August 31, 2012 at 8:34 am #24396Barry
MemberHi Mike, can you provide some URLs so we can take a look?
August 31, 2012 at 8:43 am #24400wdgdc
ParticipantScratch the above. The rewrite runs exist. It looks like /events/feed is problematic because WordPress has a rule after that that looks for [[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$]
The issue seems to be that the post type is never changed from post to tribe_events (the-events-calendar/lib/tribe-event-query.class.php -> setupQuery() ).
Adding the following lines to setupQueryArgs seems to fix this issue for category feeds:
if($args[‘post_type’] != TribeEvents::POSTTYPE) {
$query->query_vars[‘post_type’] = TribeEvents::POSTTYPE;
}…so that just leaves the full events feed.
August 31, 2012 at 8:54 am #24403wdgdc
ParticipantSo then it seems like the last step is to check and see if eventDisplay is set and run the filters if that’s true.
Adding “|| (isset($query->query_vars[‘eventDisplay’]) && $query->query_vars[‘eventDisplay’] != ”)” to the condition in setupQuery seems to handle this.August 31, 2012 at 9:20 am #24406Barry
MemberMike, thanks for the detailed posts. If this is a problem then we would of course love to get this fixed. Can I check if I am understanding this correctly first of all?
- You have a networked site and the problem with the feed exists within one of those networked sites – you are also using a sub-directory style URL structure rather than subdomains
- When you try to view the RSS feed for one of those networked sites the XML structure is present but basically empty
Does that sound like a fairly accurate summary? If so, what I can say is that I am unable to replicate this … so there is a possibility that there is some kind of conflict either with another plugin or with code in your theme – are you in a position to check this out?
August 31, 2012 at 9:45 am #24408wdgdc
ParticipantHey Barry,
I can’t share the url, unfortunately.The summary is accurate except that I’m working with the original blog on the multisite, so everything is running from /events instead of /[subsite]/events.
I’ve been combing through filters and actions to see if anything is changing the wp_query to just retrieve posts, but I haven’t seen anything yet that would be overwriting that change.
August 31, 2012 at 10:01 am #24412Barry
MemberOK, I can understand that. What I can say however is that I quickly put together a test (networked) site and the results of events/feed and {subsite}/events/feed is as I would expect.
That makes me think there could be a conflict somewhere; if you can’t disable other plugins and switch theme on the site in question are you able to create a test site in the same or a similar hosting environment and check this out for yourself?
It would be great to isolate the cause of this.
August 31, 2012 at 10:07 am #24413wdgdc
ParticipantOn it.
August 31, 2012 at 11:33 am #24419wdgdc
ParticipantYou’re right. It was a conflict.
http://wordpress.org/extend/plugins/custom-content-type-manager/Their function search_filter() in /includes/CCTM.php includes a line (2394): $query->set(‘post_type’, $post_types); that kills the post_type query on feeds.
August 31, 2012 at 11:43 am #24422wdgdc
ParticipantChange that. It’s request_filter() that’s fucking everything up. Same plugin. This is their bug…
“This is a troublesome little query… we need to monkey with it so WP will play nice with custom post types, but if you breathe on it wrong, chaos ensues.” — CCTM devsAugust 31, 2012 at 11:56 am #24428wdgdc
ParticipantI think I’ve resolved this issue with CCTM.
August 31, 2012 at 12:32 pm #24432Barry
MemberWell, that’s a pain but if nothing else it’s good to have this on the forum in case other users come up against this.
Thanks for keeping us posted 🙂 and please don’t hesitate to shout back if there is anything else we might be able to help with from our end.
August 31, 2012 at 12:39 pm #24434wdgdc
ParticipantEverything’s good now. CCTM might be the death of me.
-
AuthorPosts
- The topic ‘RSS and iCal Feeds’ is closed to new replies.
