Support

Home Forums Events Calendar Add-on Past Event Links in Calendar Displaying Incorrectly

Past Event Links in Calendar Displaying Incorrectly

Posted: September 13, 2013 at 11:23 am

Viewing 10 reply threads


william Kaczor

September 13, 2013 at 11:23 am

My calendar seems to be working well with data throttling, and if a user clicks on a future event on the calendar everything works great.
However, if one clicks on a past event, the page template displays *inside* of the event div instead of the other way around.

Anyone else experiencing this?
http://www.ancestralknowledge.org/calendar-ee/

WP 3.6.1
EE v3.1.35.P
Calendar version 2.0.6.2,
Multi Event Registration version 1.0.4,
Recurring Events version 1.1.7.1


Dean

September 13, 2013 at 12:01 pm

Hi,

It is doing it with current events too.

I think it is an incorrectly edited or old template file.

Please rename the uploads/espresso folder to force the plugin to use the default templates and see if the issue persists.


william Kaczor

September 13, 2013 at 12:54 pm

I’ve renamed the templates folder through the template settings page, and have made sure that the templates I am modifying are from EE v3.1.35.P.
The calendar problem persists unfortunately.

These are the files I’ve modified and uploaded:
event_list_display.php
event_list.php
registration_page_display.php
registration_page.php


Seth Shoultes

  • Support Staff

September 13, 2013 at 11:44 pm

Are you adding any HTML within the event descriptions? It seems that some future events are having this problem, while others are not.

For example, this future event is messed up:
http://www.ancestralknowledge.org/event-registration/?ee=436

But this one is not:
http://www.ancestralknowledge.org/event-registration/?regevent_action=register&event_id=458

Looking the URLs above, I can see that they are using different URL parameters. Eg. “?regevent_action=register&event_id=458” and “?ee=436”.

However, the messed up pages are not consistent. Eg. this one is fine:
http://www.ancestralknowledge.org/event-registration/?ee=178

But this one is broken:
http://www.ancestralknowledge.org/event-registration/?ee=436

Can you please look at the difference between these two events, in the event editor?


william Kaczor

September 16, 2013 at 12:50 pm

Hi Seth –

Actually ALL of our events have HTML in the event description. It’s never been a problem before and we’ve been using the plugin for a year.

The event that you have pointed out as “fine” is an “ongoing” event that we have set not to appear on the calendar page. It’s a workaround we created for volunteers to be able to apply for positions.

The “broken” event is a standard event setup for a real workshop. It’s a good example of how all of our events are formatted. When accessed through the event list pages, this event renders fine. It’s only through the calendar that it blows apart.

Also, a more immediate situation is that despite not having touched ANY of the files since this past friday, the whole calendar was refusing to render this morning. I’ve throttled it back down to 250 events load, but it means that it stops displaying events past November.

Your continued help and patience is really appreciated!


Josh

  • Support Staff

September 17, 2013 at 12:15 pm

Hi there,

With the events not displaying correctly, it’s likely an unclosed div somewhere in the event’s content or possibly in the template. But since it’s affecting the calendar’s display and it’s only happening for some events, it’s likely within the event description.

With the calendar not loading without throttling: I can advise downloading and installing the calendar beta that’s available in the pre-release channel. It will load up events one month at a time.


william Kaczor

September 17, 2013 at 2:01 pm

Hi Josh –

An unclosed div is a good guess, though we are not using div’s in the event descriptions, just p’s and li’s and such. The display problem is only happening when linking to an event through the calendar. It’s not happening when accessing the event from the Event List. I’ve double checked for any unclosed div’s in my edited templates as well, and haven’t come up with anything.

Thanks for the reminder about the calendar beta! I thought that the recent calendar plugin upgrade included the “one month at a time” feature. I’ll get onto the pre-release channel hopefully later today.


Josh

  • Support Staff

September 17, 2013 at 2:55 pm

I checked and I’m not seeing any past events being linked from the event lists. If I go directly to this page:

http://www.ancestralknowledge.org/event-registration/?ee=436

(not from the calendar) it renders incorrectly.

So to clarify, it’s only on event pages where there are no registration forms. Does that sound about right?

I’m looking at the page’s source and it’s looking like there’s page content getting loaded within the event’s description. In order to rule out what could be causing this you can try loading up past event pages with the stock Event Espresso templates (by temporarily re-naming the /wp-content/uploads/espresso/templates directory). You can rule out whether it’s a theming issue by temporarily loading up the default WordPress theme (the theme test drive plugin will allow you to check on this without altering the site’s appearance for non-admins.


william Kaczor

September 17, 2013 at 3:48 pm

This crosses over with my other thread:
https://eventespresso.com/topic/expire-at-end-of-event-not-registration

I had edited the Event List Display & Registration Display templates in an attempt to get events to continue to display until the end of the *event* rather than the end of *registration*. That’s why you don’t see some “current” events listed on the Event List pages.

There are past events listed on most pages, like this one:
http://www.ancestralknowledge.org/event-registration/youth-day-camps/

We have “Display Registration Form?” set to “No” on all of our events, as we don’t want them filling it out until just before the checkout process.

I followed your suggestion in re-naming the templates folder, but the formatting problem persisted. I even replaced the template files with fresh ones from the latest EE, but same result.

I used the Theme Test Drive plugin (cool thing, that!) and same result in the formatting:
http://www.ancestralknowledge.org/ScreenShot-2013-09-17.png

Things are pointing to something being wrong with the way we create our events, but why would this come up in the last few days? And what could we possibly be doing that would cause the page head to be wrapped within an event div?

I forwarded login & ftp info to Dean this morning in case you would like to root around in there. Thanks, Josh!


Josh

  • Support Staff

September 18, 2013 at 12:35 pm

It looks like it’s the expired Add to cart links within the event’s description. If you remove them the layout of the event works as expected.


william Kaczor

September 18, 2013 at 4:34 pm

Yes! You are correct. Man, I have no idea how you figured that out but I’m extremely grateful!

Viewing 10 reply threads

The support post ‘Past Event Links in Calendar Displaying Incorrectly’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso