Support

Home Forums Event Espresso Premium Custom Event Detail Page no longer working after updating to Version 4.10.10.p

Custom Event Detail Page no longer working after updating to Version 4.10.10.p

Posted: March 26, 2021 at 11:55 am


Scott Schoberg

March 26, 2021 at 11:55 am

Hello,

After upgrading Event Espresso to Version 4.10.10.p along with Event Espresso – Attendee Mover (EE4.9.13+), Event Espresso – Promotions (EE 4.9.10+), Event Espresso – WP Users (EE4.6+), our event details page is now blank.

Nothing has been changed on the website other than the update of the plugin. Did something change with the new update? An example page that is not working is https://www.nptinstitute.com/courses/tank-manager-course/. As a result, no customers can checkout.

We are using a custom template page called single-espresso_events.php. However, at closer inspection, it looks like the detail page is now using the single.php template. So perhaps some configuration on how to set the custom event template changed?

Thanks for your help.


Scott Schoberg

March 26, 2021 at 12:00 pm

After closer inspection, it looks like an error is being thrown at

LINE:
$ticket_array = $post->EE_Event->first_datetime()->tickets();

ERROR:
Fatal error: Uncaught Error: Call to a member function first_datetime() on string

So I am thinking that maybe your functions have changed?


Tony

  • Support Staff

March 26, 2021 at 2:00 pm

Hi there,

Did something change with the new update?

What version were you running prior to 4.10.10.p?

You can find this in Event Espresso -> Maintenance -> System information -> ee_activation_history (it’s the section headering).

We are using a custom template page called single-espresso_events.php. However, at closer inspection, it looks like the detail page is now using the single.php template. So perhaps some configuration on how to set the custom event template changed?

It’s very rare for us to make changes on how something works/loads. That’s not to say we don’t make changes, but the way in which things would load should remain the same and any changes that are likely to do that would include some kinda of backward compatibility.

I’m not aware of any changes with how the templates, it’s not actually controlled by Event Espresso.

After closer inspection, it looks like an error is being thrown at

Ok, so is that from within single-espresso_events.php?

When you updated, did you only update the EE plugins you mention above? No theme or other plugin updates?


Scott Schoberg

March 26, 2021 at 2:14 pm

This reply has been marked as private.


Tony

  • Support Staff

March 26, 2021 at 3:12 pm

4.10.9 -> 4.10.10 had no changes that would have caused the above so there’s got to be more going on. That update addressed a jQuery update, in short, we switched from using the .unload() function to .on(“unload”, handler).

Is the error you are getting from single-espresso_events.php or single.php?

Can you post the content of your template file to Pastebin or a Gist so I can take a look?

Did you update anything else when you updated EE above and noticed this? Right now it looks like something may be altering the global post or preventing EE from hooking in and adding the EE_Event parameter.

Would simply disabling and re-enabling the core plugin help any?

I doubt it would do anything with this issue but wont hurt to try if preferred..


Scott Schoberg

March 29, 2021 at 8:12 am

This reply has been marked as private.


Tony

  • Support Staff

March 31, 2021 at 3:18 am

You’re more welcome.

That’s an odd one but I’m glad you found the cause.

The support post ‘Custom Event Detail Page no longer working after updating to Version 4.10.10.p’ 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