[EventCalendar] activating event calendar breaks RSS feed

Chad Day CDay at mindshare.net
Fri Dec 1 18:34:31 UTC 2006


After much testing of where the breakage was occurring, I was able to
work around the plugin breaking my RSS feeds by adding the following
lines to eventcalendar.php3

 

function ec3_filter_posts_where(&$where)

{

  global $ec3,$wp_query,$wpdb;

  /** Mod to fix **/

 

  if(array_key_exists("feed", $wp_query->query_vars)) {

      return $where;

  }

  

  /** end mod **/

 

Whatever is happening down below where it's building the query is what
is screwing up my RSS feeds.  That seems to work and the condition to
check for that array key shouldn't break anything else (I hope).

 

Thoughts?

Chad Day, Developer
Mindshare Interactive Campaigns, LLC 
108 5th Street SE, Suite 307
Charlottesville, VA 22902
tel 202.654.0835 fax 202.318.0755
www.mindshare.net <BLOCKED::http://www.mindshare.net/> 

  _____  

From: eventcalendar-bounces at firetree.net
[mailto:eventcalendar-bounces at firetree.net] On Behalf Of Chad Day
Sent: Thursday, November 30, 2006 2:57 PM
To: eventcalendar at firetree.net
Subject: [EventCalendar] activating event calendar breaks RSS feed

 

After activating the plugin, my feed URL:  http://www.site.com/feed/

 

No longer works and returns a 404 error.  Deactivating the plugin causes
it to become functional again.  Using a feed link like:

 

http://www.site.com/?feed=rss2 while the plugin is active only shows me
the feed for the front page page, not any actual posts in the system.

http://www.pharmacorps.org/?feed=rss2 while the plugin is not active
shows the results the way they should be, posts included.

 

What in this plugin is causing it to muck with the feeds, and how can I
fix it?

 

Chad Day, Developer
Mindshare Interactive Campaigns, LLC 
108 5th Street SE, Suite 307
Charlottesville, VA 22902
tel 202.654.0835 fax 202.318.0755
www.mindshare.net <BLOCKED::http://www.mindshare.net/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20061201/873b0ce2/attachment.html


More information about the EventCalendar mailing list