[EventCalendar] Re: 404 error when there are no future events
(EC 3.1._pre14 and EC 3.1._pre15)
Alex Tingle
alex at firetree.net
Fri Oct 6 11:22:22 UTC 2006
Hi Steve,
I experimented with your site a little bit and discovered that the
problem only occurs when you use the permalink...
http://stevewinton.com/stuff/events/
If you use the ?cat= style, it works fine...
http://stevewinton.com/?cat=23
Before we take this any further, could you try disabling the
EventCalendar plugin. Does the permalink URL still give a 404 error now?
> For what it's worth, my thoughts are that list_cats shouldn't display
> the events category when using EC in 'Keep Events Separate' mode and
> there are no future events. There seems to be a list_cats filter
> (http://wphooks.flatearth.org/hooks/list_cats/), but perhaps you have
> some other thoughts on how to best resolve this?
I agree. Look at the second item in the "FUTURE" section on the TODO
list...
http://svn.sf.net/viewvc/wpcal/trunk/eventcalendar3/TODO.txt?view=markup
-Alex
--
On Fri, 6 Oct 2006 12:00:08 +0100
"Steve Winton" <stevewinton at gmail.com> wrote:
> Hi Alex
>
> Thanks for getting back to me on this, really appreciate it.
>
> I encountered this error while developing a WP site for a friend,
> which is only on my laptop at the moment. But I've managed to
> reproduce on my own blog site (WP 2.0.3 and EC3 3.1._pre15).
>
> I've created 1 event, that occurred on Wednesday this week, so there
> are no future events. I've posted the event under the 'Events'
> category and the 'Stuff' category.
>
> The events category shows up in the categories list (generated by the
> list_cats template tag) on the front page, and is displayed as
> containing 1 post (the past event):
>
> http://stevewinton.com
>
> Now, when you go into the Stuff category, you can see the event:
>
> http://stevewinton.com/stuff/stuff
>
> But when you go into the Events category, you get the 404 error:
>
> http://stevewinton.com/stuff/events
>
> Here is a screenshot of the setup I am using for EC:
>
> http://stevewinton.com/wp-content/uploads/2006/10/ec3_setup.png
>
> For what it's worth, my thoughts are that list_cats shouldn't display
> the events category when using EC in 'Keep Events Separate' mode and
> there are no future events. There seems to be a list_cats filter
> (http://wphooks.flatearth.org/hooks/list_cats/), but perhaps you have
> some other thoughts on how to best resolve this?
>
> Many thanks,
> Steve
>
> On 10/6/06, Alex Tingle <alex at firetree.net> wrote:
> > Steve,
> >
> > I don't see this problem on my setup. Could you post a link to your site
> > so that I can see this for myself?
> >
> > -Alex
> >
> > --
> >
> > On Fri, 6 Oct 2006 10:01:46 +0100
> > "Steve Winton" <stevewinton at gmail.com> wrote:
> >
> > > Has no-one else noticed this? Could it be something to do with my setup?
> > >
> > > Thanks
> > > Steve
> > >
> > > On 10/4/06, Steve Winton <stevewinton at gmail.com> wrote:
> > > > Hi all
> > > >
> > > > What is the recommended way of avoiding the 404 error when using EC in 'Keep
> > > > Events Separate' mode and there are no future events scheduled?
> > > >
> > > > Currently I've hacked my 404.php template file as follows:
> > > >
> > > > <?php
> > > > global $wp_query;
> > > > if ($wp_query->query_vars['cat'] =
> > > > get_option('ec3_event_category')) :
> > > > ?>
> > > > <p>You were trying to access the events page, but there are currently no
> > > > scheduled events!</p>
> > > > <pre>
> > > > <?php
> > > > endif;
> > > > ?>
> > > >
> > > > But does anyone have a more elegant approach?
> > > >
> > > > Thanks,
> > > > Steve
> > > >
> > > >
> > >
> > > _______________________________________________
> > > EventCalendar at firetree.net mailing list
> > > Unsubscribe: http://penguin.firetree.net/eventcalendar
> > > Download: http://sf.net/projects/wpcal
> >
> >
> > --
> > :: Let me solve your problems: http://www.firetree.net/consulting/
> > :: alex.tingle AT firetree.net +44-7901-552763
> >
> > _______________________________________________
> > EventCalendar at firetree.net mailing list
> > Unsubscribe: http://penguin.firetree.net/eventcalendar
> > Download: http://sf.net/projects/wpcal
> >
--
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net +44-7901-552763
More information about the EventCalendar
mailing list