Support

Home Forums Event Espresso Premium EE4 No Longer Showing Ticket Selector and Venue for New Events

EE4 No Longer Showing Ticket Selector and Venue for New Events

Posted: April 20, 2022 at 2:40 pm


shoreshdavid

April 20, 2022 at 2:40 pm

Hello,

After nearly 3 years EE4 suddenly stopped working correctly for us. Now when we create new events, either from scratch or duplicated, they appear as “Upcoming” but the ticket selector, venue and other information are missing.

What we’ve tried:

Each test event is published, set to public, the Display Ticket Selector toggle is set to YES, the event datetime is set to a few months from now, the range for Sale Starts and Sell Until are right now. We cleared both site and browser caches, and tried this on different browsers on different computers on different networks. We even deactivated all other site plugins and removed everything from both style.css and functions.php. All efforts are in vain.

What is really odd is that we happen to have an ongoing event still listed, and that one looks and works just fine. But EE4 refuses to properly show any new events. What gives??

Regards,
Chris


Tony

  • Support Staff

April 21, 2022 at 6:11 am

Hi Chris,

So, on that event, you’re not getting any of what we would call the ‘injected content’, which usually means something is hooking into the_content to do something unexpected before EE has had a chance to do its thing.

With EE events the_content is the event description and then we hook into the call for the_content and inject all of the additional details for that event (the ticket selector, venue information, datetimes, etc). When none of that is happening and the_content is just being rendered as is its because something ran the_content really early for whatever reason, that call triggered EE to inject additional content there and then it won’t do it again on the same request (otherwise we’d end up with a bunch of additional content in various locations).

We see this with SEO plugins using the content to generate an excerpt if one is not set, so first they adding some content to the excerpt for that event and see if that fixes it.

I can see you’re using Divi which has its own page builder and templating system which I know does some weird and wonderful things with the_content.

Are you using any Divi specific features on those test events?


shoreshdavid

April 21, 2022 at 12:38 pm

Hi Tony,

Well, as I said before, during problem determination I deactivated all other site plugins (including removal of everything in our child theme’s functions.php and style.css) but still the problem occurred.

On your recommendation I entered something in the excerpt for one of the affected events but that had no effect. But then if it was something interfering with the injection of EE content, would it not affect also the existing event that has been active for months?

In a bit I’ll assign you an admin userid, so you can see for yourself that I’m not bonkers.

/Chris


shoreshdavid

April 21, 2022 at 12:40 pm

This reply has been marked as private.


Tony

  • Support Staff

April 21, 2022 at 12:51 pm

Well, as I said before, during problem determination I deactivated all other site plugins (including removal of everything in our child theme’s functions.php and style.css) but still the problem occurred.

Yeah but you’re still using Divi, right?

‘Something’ within that could be causing it and it ‘could’ be event-specific (I can’t say for sure but we’ve seen it happen previous with various theme options etc)

On your recommendation I entered something in the excerpt for one of the affected events but that had no effect. But then if it was something interfering with the injection of EE content, would it not affect also the existing event that has been active for months?

Not if its something specific that needs to be set on the event, it’s hard to troubleshoot just viewing the front end so the above is just my best guess so far.

In a bit I’ll assign you an admin userid, so you can see for yourself that I’m not bonkers.

Sure, I’ll take a look but just to note, it’s not that I don’t believe you (or think your bonkers :)) its just a hard issue to troubleshoot, especially when one works and another does not.


shoreshdavid

April 21, 2022 at 2:42 pm

If Divi was the culprit then, logically, the currently active event should also be affected.


shoreshdavid

April 21, 2022 at 6:33 pm

Few updates… I tried downgrading Divi to a version released over 6 months ago, and also tried deleting and reinstalling EE4. Still puzzling why the pre-existing active event appears correctly yet newly created events do not.

We have a site/db backup downloaded to our local network, and plan to do a restore once this gets resolved. Feel free to do whatever is required to determine the issue.

/Chris


Tony

  • Support Staff

April 22, 2022 at 7:00 am

If Divi was the culprit then, logically, the currently active event should also be affected.

By that same logic, if EE was the only culprit then logically all of your current events would be affected and we’d see this happening across multiple user’s sites. ‘Something’ on the site is interfering with specific events here.

The difference between your working event and your none working events is that the working event has a featured image set on it. I’ve added the same feature image from your working event (although the image itself doesn’t matter) to the EE Test event 2 and the injected content works, remove it again and it stops working.

So then, knowing that I had a quick look through Divi’s settings and the issue sis from the ‘Grab the first post image’ setting within:

Dashboard -> Divi -> General -> General.

With that option enable the above issue happens, with it disable it does not. Based on the option name I assume Divi is parsing the_content to pull in the first image it finds, that first call to the_content is triggering the event details injection and stopping it from happening on the ‘real’ output.


Tony

  • Support Staff

April 22, 2022 at 7:02 am

After posting the above I had a feeling I’d seen this before so did some digging into my snippets and found one which allows you to keep that option enabled if preferred but disables it specifically for EE events:

https://gist.github.com/Pebblo/b033ac5ceae674299197196753ee496c

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


shoreshdavid

April 22, 2022 at 3:19 pm

Tony! You’re absolutely brilliant!! So for the acid test.. I restored the site to 5 days ago, inserted your custom function into our functions.php, created a new EE event, and now all event information appears properly. I added and removed the featured image multiple times and everything is again working as designed. WOW!

Thank you, thank you! This topic can be marked resolved. 🙂

Kindest Regards,
Chris


Tony

  • Support Staff

April 26, 2022 at 4:42 am

You’re most welcome, I’m glad it worked for you 🙂

Marking resolved.

The support post ‘EE4 No Longer Showing Ticket Selector and Venue for New Events’ 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