Posted: 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 |
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. |
|
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:
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:
Change it to:
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. |
|
|
Thanks very much. I followed your recommendation and my registration is back up and running. |
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? |
|
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.