Support

Home Forums Event Espresso Premium Event page broken after date/time

Event page broken after date/time

Posted: April 22, 2014 at 1:23 pm


Joshua Nadal

April 22, 2014 at 1:23 pm

On the event page, nothing loads after the date/time info, not even the page footer. I think there must be something wrong with the espresso_get_template_part( 'content', 'espresso_events-venues' ) line of the CPT, because everything else looks ok. See here:

http://www.cfact.org/events/cfact-presents-col-walter-cunningham/

WP 3.9
EE 4.2.2


Lorenzo Orlando Caum

  • Support Staff

April 22, 2014 at 2:28 pm

Hi Joshua,

I see an error related to sharebar (social media plugin) on that page. Could you try temporarily disabling it to see if the page loads correctly/


Lorenzo


Joshua Nadal

April 22, 2014 at 2:34 pm

I already tried that. Even when the plugin is disabled, the page won’t load.

In the edit post page, also, I can’t uncheck the “show sharing buttons” box. That is, if I uncheck it and then hit “update post,” it will be checked again after the update.


Josh

  • Support Staff

April 22, 2014 at 3:40 pm

Hi Joshua,

Can you try putting the site into WP_DEBUG mode? There will likely be a fatal error printed that will help troubleshoot this. You can log (instead of displaying) the error if you’d prefer. More information on how to set up logging can be found here:

http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging


Joshua Nadal

April 23, 2014 at 1:43 pm

Here is the error message that displays at the bottom of the page with the debug mode on:

Fatal error: Call to undefined function espresso_display_venue_address_in_event_details() in /mnt/stor08-wc1-ord1/716154/www.cfact.org/web/content/wp-content/themes/flare-child-theme/content-espresso_events-venues.php on line 3


Lorenzo Orlando Caum

  • Support Staff

April 23, 2014 at 2:40 pm

Hi Joshua, this looks related to a template that you may have customized.

Do you remember the customizations that you made?

Could you try temporarily renaming that file and let me know if the page begins to load?


Lorenzo


Joshua Nadal

April 23, 2014 at 7:34 pm

Yeah, I already tried that, and just tried again. I renamed the child theme single-espresso_events.php so that the core theme file would load, and the page still has the same problem. The important parts are exactly the same, it’s just the header & footer stuff that I changed.

Is there a different file I should be changing?


Josh

  • Support Staff

April 24, 2014 at 9:23 am

Hi Joshua,

Can you give us a list of all the Event Espresso templates that you copied over to your theme? This will give us something to work with to investigate further.


Joshua Nadal

April 24, 2014 at 2:15 pm

archive-espresso_events.php
archive-espresso_venues.php
content-espresso_events-datetimes.php
content-espresso_events-details.php
content-espresso_events-tickets.php
content-espresso_events-venues.php
content-espresso_events.php
content-espresso_venues-details.php
content-espresso_venues-location.php
content-espresso_venues.php
loop-espresso_events.php
loop-espresso_venues.php
single-espresso_events.php
single-espresso_venues.php

I didn’t change most of them, but I believe I was told to copy everything from the Espresso_Arabica_2014 folder to my child theme if I was modifying any of the CPTs. All I was changing was the wrapping divs above and below the event content, as your defaults were not playing nice with my theme’s precontent area. So I think I only changed single-espresso_events.php & single-espresso_venues.php and maybe the archive pages, as those are the only ones that generate actual pages.

So I’m assuming that one of the other files was changed in a recent update and is now incompatible. It’d be nice if you wrote the calls/paths such that the files don’t have to be in the same folder to work. That way I could move only the files I’ve changed to the child theme.


Joshua Nadal

April 24, 2014 at 2:28 pm

Ok, I think I’ve narrowed the problem down to content-espresso_events-venues.php. When I remove that file from the child theme, the rest of the page loads correctly. Does this mean that I can, in fact, remove from my child theme any of the Espresso_Arabica_2014 files that I have not modified?


Josh

  • Support Staff

April 24, 2014 at 3:11 pm

In most cases, yes.

The support post ‘Event page broken after date/time’ 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