Support

Home Forums Event Espresso Premium Event Calendar not formatting properly after WP 6 update

Event Calendar not formatting properly after WP 6 update

Posted: March 1, 2023 at 10:05 am


Amy

March 1, 2023 at 10:05 am

I’m testing the WP6 update in staging. The formatting on the monthly view of my calendar is not working for some multiday events. It’s showing as a really long sliver on some. I can’t see a difference between ones working and ones not. I just updated to new verson of EE4 after WP6 to see if it would fix itself but it didn’t.


Amy

March 1, 2023 at 10:05 am

https://bco.aandkstg.wpengine.com/events-calendar/


Tony

  • Support Staff

March 1, 2023 at 12:51 pm

This is an issue from later versions of jQuery when using the calendar with events that small across multiple weeks on the calendar. It doesn’t need to be week long events but if they cross over from 1 row into another you see the issue you’ve mentioned.

We don’t currently have a solution for the calendar itself as the issue is part of the library we use for the calendar. However, you can use a plugin like this:

https://github.com/Pebblo/ee-calendar-migrate

To switch our the version of jQuery on the calendar page which should fix it.


Amy

March 1, 2023 at 12:57 pm

That seems like a pretty big problem considering many people have weekend events and weekends split the week when you look at a standard Sun – Sat calendar. So you’re not planning a fix?

Is there a reason I need to upgrade EE4?

With the fix above, do I just upload that php file?

Thanks!
Amy


Tony

  • Support Staff

March 1, 2023 at 1:07 pm

So you’re not planning a fix?

I didn’t say that 🙂

We are, but the calendar will need a significant rewrite to do so, the library we use or the calendar will need to be updated etc. It’s on our roadmap but we’ve been heavily focused on getting the next version of Event Espresso ready, including a new event editor and recurring events support, so it all just takes time.

Is there a reason I need to upgrade EE4?

I would use EE4 over EE3 as all development time now goes into EE4+.

EE3 is now our legacy product and can be considered deprecated, it is likely that within the next 12 months EE3 will be officially unsupported.

With the fix above, do I just upload that php file?

Click the code button, then download zip.

Install that as a plugin and activate.


Amy

March 1, 2023 at 1:36 pm

Sorry, I already have EE4 just not the most updated version. 4.10.6.p.

Also with the new one, I got an error that says a ticket must be selected so it wouldn’t move forward in the RSVP process. But a ticket was selected. It didn’t have anything to do with required tickets, etc. Events worked and then didn’t just from the update and no other changes.


Tony

  • Support Staff

March 1, 2023 at 3:54 pm

That can happen if you are loading a custom template for the ticket selector which needs to be updated to match the latest output.

In your Themes root directory do you have any ticket_selector template files?

They could also be within a plugin if your hooking in to change the path using one.


Amy

March 8, 2023 at 2:52 pm

Under Events –> Default Tickets, I have created a default ticket here. Is that what you mean? I have deleted the default ticket that I created but it’s still on existing events. What does updated to to match latest output mean? Creating a ticket is a function of Events Espresso, I didn’t add anything custom to that.


Amy

March 8, 2023 at 3:15 pm

I have these ticket-selector files. Do I need to do anything with them?
Screen print of files


Tony

  • Support Staff

March 9, 2023 at 3:29 am

Under Events –> Default Tickets, I have created a default ticket here. Is that what you mean?

No, thats within the dashboard and as you mentioned, is part of Event Espresso, thats not causing this.

I have deleted the default ticket that I created but it’s still on existing events.

You can leave those as they are for editing events, it’s a different feature/section.

What does updated to to match latest output mean?

If you are using a custom template its will output the ticket selector using that template with a specific markup.

IF EE expects a different markup (values used in different locations) it can break the submissions as yours is using an ‘old’ format.

Creating a ticket is a function of Events Espresso, I didn’t add anything custom to that.

Your issue isn’t caused b something you have done within Event Espresso itself, it looks like you have a custom template for the ticket selector which is causing this.

I have these ticket-selector files. Do I need to do anything with them?

No. Those looks like they are from /wp-content/plugins/event-espresso-core-reg/modules/ticket-selector/, meaning they are part of the plugin files and you never want to edit files directly like that.

Go to /wp-content/themes/legacy/ … thats the root directory of your theme.

Do you see any files related to the ticket selector there?


Amy

March 9, 2023 at 5:47 am

Okay, I found customization files but none look like they reference the tickets.
Am I correct in thinking that if there is a file with multiple names, only the files with the original name is being applied?

I can give you access if that’s helpful or I downloaded the theme folder.

EE-people.php – the hides the People Add-on information when the user is not logged in and shows it when the user is logged in.
EE-venues.php – same thing as above but for venues.
ee-venues-header- adds hyperlink to venue name
ee-grid-template.template – hide information on grid format
loop-espresso-event-attendees – doesn’t appear to have any customization
loop-ee-attendees – doesn’t appear to have any customization
single-ee-events.php – only show Attendees list if logged in. Only show cancel link if user logged in. Sends email to admin on event cancelation

Zip file of BB Child Theme Files - backup so you can't mess them up
Theme files 1 (screenprint)
Theme Files 2 (screenprint)


Amy

March 9, 2023 at 5:49 am

By the way, the github to format calendar on PHP 8 worked. Thanks!


Tony

  • Support Staff

March 9, 2023 at 5:56 am

It could be happening within a plugin (lots of customizations options within EE)

Can you send me WP-Admin and FTP credentials so I can take a look? If so, use this form:

https://eventespresso.com/send-login-details/


Amy

March 9, 2023 at 7:16 am

While you’re in there, the notifications on the Bayou City Outdoors subsite are working. 😀 I can create a separate ticket to track. When a user signs up, the admin usually gets an email. It recently stopped working. The attendee emails have never gone on the BCO site but they are going on the HTXoutdoors subsite.


Amy

March 9, 2023 at 7:20 am

Also, custom code usually has initials pnp in a comment at beginning and end of customization. Not always but usually.


Amy

March 9, 2023 at 10:42 am

Sorry, I didn’t realize WP Engine restored to an old version of website so WP 6 wasn’t installed this morning. Everything is installed and updated now. i’m on PHP 7.4 bc I have a critical error to update to 8. I’m working on that now too.


Tony

  • Support Staff

March 9, 2023 at 1:47 pm

FTP works but the WP-Admin credentials are unrecognised, can you recheck those.

I found a ticket selector template file within /wp-content/uploads/espresso/ but can’t see any code to include that so I need to check an event with and without that template.


Amy

March 9, 2023 at 2:37 pm

Sorry, I forgot that would have been deleted when I restored the old site. Try it now.


Amy

March 9, 2023 at 6:56 pm

I deleted the file and the quantity, cost and remaining amount disappeared. Added it back and still get errors.


Tony

  • Support Staff

March 10, 2023 at 6:21 am

Sorry, I forgot that would have been deleted when I restored the old site. Try it now.

The username now exists but looks like the password is different.

If you can set the email address to support@eventespresso.com I’ll request a reset and login.

I deleted the file and the quantity, cost and remaining amount disappeared. Added it back and still get errors.

Ok, so that means somewhere on your site is setting the location of that custom ticket selector file… however I can’t see anywhere obvious for that code to be, its not in the theme, or in and obvious plugin for custom functions.

The template file needs to be updated to match changes in our current ticket selector output (you can still have a custom output but need to bring over some of the changs in your template), that will fix the qty issue but it’s a good idea to find where is setting that template to load or you’re stuck in this current situation moving forward.


Tony

  • Support Staff

March 10, 2023 at 6:24 am

Note the hook most likely being used to set that template file is FHEE__EE_Ticket_Selector__display_ticket_selector__template_path.

Something like this: https://gist.github.com/Pebblo/da3d16507e1baaf53a40


Amy

March 10, 2023 at 7:18 am

I had added custom code that you (or EE) gave me awhile ago to filter the MY Events Table. See attached. I just added your cancel registration button to the file too. Is this the file causing the issue?

Or are you telling me to add the code you just referenced to a custom file?
eecustomamy.php


Amy

March 10, 2023 at 7:21 am

I updated the email address.


Amy

March 10, 2023 at 7:50 am

In addition to the file I referenced above, we have defined which tickets can be seen by users logged in or not. Could it be this setting?

Screenprint of ticket settings


Tony

  • Support Staff

March 10, 2023 at 8:01 am

I had added custom code that you (or EE) gave me awhile ago to filter the MY Events Table. See attached. I just added your cancel registration button to the file too. Is this the file causing the issue?

No, that’s not causing this.

Or are you telling me to add the code you just referenced to a custom file?

No, I think that code is already in use on the site somewhere to tell EE to load the custom template…. I just can’t find where.

In addition to the file I referenced above, we have defined which tickets can be seen by users logged in or not. Could it be this setting?

No, thats part of the WP Users add-on

Nice try tho 🙂

I’ll do some more digging shortly.


Amy

March 10, 2023 at 10:03 am

This reply has been marked as private.


Tony

  • Support Staff

March 10, 2023 at 10:35 am

Yeah thats the one, nice find.

If you comment out this line (add // at the beginning):

add_filter (‘FHEE__EE_Ticket_Selector__display_ticket_selector__template_path’, ‘ee_custom_ticket_selector_template_location’);

Then test the ticket selector, it works then right?


Tony

  • Support Staff

March 10, 2023 at 10:39 am

Also… eed_multi_event_registration.module.php

You’ve edited core plugin files?


Amy

March 10, 2023 at 10:42 am

It didn’t work to put the // in front of that line. Are there other lines?

Also, not sure if that core file was changed…probably not but it had FHEE language in it. There are no initial from my developer (pnp)


Tony

  • Support Staff

March 10, 2023 at 11:33 am

I updated the email address.

Lol, really not having any luck with this account!

So the email is set and I can request a password reset, but they all show as invalid when clicked. Can you set the password to something and send it over to that same email address?

It didn’t work to put the // in front of that line. Are there other lines?

I’ll test this once the account works.

Also, not sure if that core file was changed…probably not but it had FHEE language in it. There are no initial from my developer (pnp)

Oh, FHEE is the prefix for out Filter hooks:

FHEE – Filter Hook Event Espresso

AHEE – Action Hook Event Espresso

There are thousands of those through the codebase 🙂


Amy

March 10, 2023 at 1:21 pm

It works now! I needed to clear the cache. Yay! (and sorry, didn’t realize that last code file was so long!)


Tony

  • Support Staff

March 13, 2023 at 9:05 am

Great!

So the question now is, do you want to update your custom ticket selector template or stick with the default one from Event Espresso (which is why its now working)?


Amy

March 15, 2023 at 7:25 am

oh, yeah I’d like to update the template so we don’t have to create it on every event.


Tony

  • Support Staff

March 15, 2023 at 8:31 am

Create the ticket selector template on every event?


Amy

March 15, 2023 at 8:34 am

Oh, I was thinking of the default ticket. sure, what are the steps to update ticket selector? I think i have some customization still working on it but it needs to be updated too.


Tony

  • Support Staff

March 15, 2023 at 8:42 am

Oh, I was thinking of the default ticket.

For a default ticket within the editor?

When you create a ticket in the editor if you click the cog icon you’ll find a checkbox that shows:

‘use this new ticket as a default ticket for any new events’

Click that and save the event, you’ll now have a default ticket from the one you just created.

sure, what are the steps to update ticket selector? I think i have some customization still working on it but it needs to be updated too.

Will need to compare the current template with the custom one.

The support post ‘Event Calendar not formatting properly after WP 6 update’ 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