Support

Home Forums Event Espresso Premium Update to Version 5.0.0.p broke our site

Update to Version 5.0.0.p broke our site

Posted: March 16, 2023 at 12:36 am

Viewing 9 reply threads


mlevison

March 16, 2023 at 12:36 am

I received an automated email telling me that our site was throwing errors due to the Event Espresso plugin. After logging into the dashboard I learned that Event Espresso also needed to update the database in order to complete the latest update. I thought that running the database update would solve the problem but it did not and now any of our pages that have anything Event Espresso related on them are throwing errors.

Is there a new update coming soon to fix this?


Tony

  • Support Staff

March 16, 2023 at 3:05 am

Hi there,

What errors are you getting from Event Espresso?

We will investigate this asap but need to know the errors as I’m not getting any on my test sites.


mlevison

March 16, 2023 at 8:10 am

This reply has been marked as private.


mlevison

March 16, 2023 at 8:11 am

This reply has been marked as private.


mlevison

March 16, 2023 at 8:19 am

This reply has been marked as private.


mlevison

March 16, 2023 at 8:51 am

This reply has been marked as private.


mlevison

March 16, 2023 at 9:37 am

This reply has been marked as private.


mlevison

March 16, 2023 at 10:29 am

This reply has been marked as private.


Tony

  • Support Staff

March 16, 2023 at 12:09 pm

Ok, so the issue is with some custom code running on your site.

This worked fine up until the update. Was the function “city” deprecated or changed somehow?

No, but it’s not city() that is the issue there.

The error is:

PHP Fatal error: Uncaught Error: Call to a member function city() on null

This is basically saying you are trying to run the city() method on null (nothing), in your example, $venue is null and then trying to run any method on null would return that error.

So it’s not the city method that is the problem, it looks like something may have changed with what $event->venues() returns which is then tripping up that code. I’ll open a ticket to investigate this further, I may need to ask some more questions on your event setup if we can’t reproduce it.

I fixed the date formatting problem too. I had been parsing the dates out of the already html formatted response from the EE function and there were some slight changes to it that threw me off.

Oh, interesting, I’m not aware of changes here, what changes did you find?


Tony

  • Support Staff

March 16, 2023 at 12:23 pm

Just noting, no additional details are needed over venues, found the cause and have an open ticket for it to be addressed.

The problem is an event with no venue is returning array(null), it should return an empty array (or possibly null, but an empty array is ‘correct’). Because it actually does have an element within the array currently (null is basically ‘nothing’, but is still an element in that array) the foreach is looping over that element and will throw a fatal because whatever you do with it… its nothing… so blows up.

Viewing 9 reply threads

The support post ‘Update to Version 5.0.0.p broke our site’ 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