Support

Home Forums Event Espresso Premium EE4 Version Upgrade resulted in Missing Registration Forms on Event Pages

EE4 Version Upgrade resulted in Missing Registration Forms on Event Pages

Posted: November 20, 2015 at 9:10 am

Viewing 4 reply threads


Anthony Hann

November 20, 2015 at 9:10 am

I tested and confirmed all event links were working properly and have received registrations.

Unfortunately, I upgraded to the latest version of EE4 and now all of my registration forms don’t show up on the event page any more.

My previous list of event registrations is located here: http://mozekgames.com/west-hills-christian-school/

I would appreciate help in correcting this right away


Tony

  • Support Staff

November 20, 2015 at 10:32 am

Hi Anthony,

In the latest version of Event Espresso we introduced a check to prevent the event details from being added to the post content more than once. We found some themes loading the content multiple times which cause the event details to be added multiple times.

The problem here is your theme is running get_the_content() within the template, EE is picking this up and then no adding the details the_content() call after that.

I have issued a ticket with our developers to see if we can prevent this.

Have you setup a child theme on your site?

I can provide you with a fix you can use within the themes template file.


Tony

  • Support Staff

November 20, 2015 at 2:36 pm

We’ve been discussing this issue and I just wanted to update this post with the findings.

Catch Everest is running get_the_excerpt() within the theme template to simply check if a post has an excerpt. Like this:

$catcheverest_excerpt = get_the_excerpt();
		
if ( is_search() || ( !is_single() && $current_content_layout=='excerpt' && !empty( $catcheverest_excerpt ) ) ) : ?>

The problem with this is that get_the_excerpt() returns the posts excerpt if it has one, or if it doesn’t it pulls the details from the post content, but when doing so it runs the_content filters which is what is causing the problem.

We track the_content filters as mentioned above, so EE thinks the event details have been added to the page and doesn’t want duplicates, so then the_content() runs and EE ignores it.

The fix for this is simple, but it needs to be done within the theme itself. We can’t work around it without effecting themes that are correctly using get_the_excerpt().

If you are using a child-theme the fix is to copy the content.php template file to that, one line 41 you’ll find this:

$catcheverest_excerpt = get_the_excerpt();

Change it to:

$catcheverest_excerpt = has_excerpt();

As a quick fix you can add an excerpt within your event which should prevent the_content filters from being fired too early and everything should work as expected.


Anthony Hann

November 20, 2015 at 5:37 pm

Thanks very much. I followed your recommendation and my registration is back up and running.


Tony

  • Support Staff

November 23, 2015 at 4:21 am

Hi Anthony,

I’m glad your up and running 🙂

Can I ask which method you used to fix this? Did you create a new template within a child theme or simply add an excerpt to your events?

Viewing 4 reply threads

The support post ‘EE4 Version Upgrade resulted in Missing Registration Forms on Event Pages’ 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