Support

Home Forums Event Espresso Premium display error when updating past version 4.9.7

display error when updating past version 4.9.7

Posted: May 7, 2019 at 6:37 am

Viewing 8 reply threads


RA MICRO Koeln

May 7, 2019 at 6:37 am

Hi Support-Team,

before i start, do you need our prem. license key for support ?

We are running on version 4.9.7 and when updating to the current one or any other version after 4.9.7, we occur several errors.

The main problem is this display error:

1) before the update:
before the update

2) after the update:
after the update

We’ve tried to fix this with your help some time ago, without success.

Your support advice/message was:“ I’m afraid there’s a function name conflict between your theme and Event Espresso 4 core. In this case, both define a function with the name espresso_next_upcoming_event_date. The way to work around this is add a prefix to your custom function’s name and wherever it’s used. For example you could rename the function to be ra_espresso_next_upcoming_event_date.

That function is defined in your theme’s functions.php file on line 553, and it’s used in page-home.php and in page-home2.php.“

If i understand you correctly, there are 2 functions with the same „name“? I Couldn’t find any other string / defined function named espresso_next_upcoming_event_date in the whole wordpress directory

Anyway, i’ve renamed the function as you suggested, but nothing happened.

Is there a chance that you could give it another try to help us solve this error ?

So Long

Andreas


RA MICRO Koeln

May 7, 2019 at 6:41 am

seems there is an error witth the first image,i’ll give it another try.

before the update

after the update


Josh

  • Support Staff

May 7, 2019 at 7:20 am

Hi,

Can you clarify a bit more about the display error? I’m afraid the screenshots you posted do not reveal much in the way of errors.


RA MICRO Koeln

May 10, 2019 at 2:22 am

screenshot

in case there is again an uploading error with the image to this post, here is the url of the screenshot:

https://ra-micro-koeln.de/3.jpg


RA MICRO Koeln

May 10, 2019 at 3:03 am

when inspecting the “upcoming events block” the date is missing.
date missing
https://ra-micro-koeln.de/5.jpg

also the webmaster console displays this:
console error
https://ra-micro-koeln.de/4.jpg


RA MICRO Koeln

May 10, 2019 at 3:11 am

and this is the function which calls the event date:

function event date
https://ra-micro-koeln.de/6.jpg


RA MICRO Koeln

May 10, 2019 at 3:17 am

And this is the function in the functions.php:
functions.php
https://ra-micro-koeln.de/7.jpg


RA MICRO Koeln

May 10, 2019 at 5:52 am

Something i’ve found out:

the events on the right side of our page belong to “div class 7-12”, the events on the left side belong to “div class 1-6”.
If i rename the function inside function.php and inside page.php for the “div class 1-6”, the date-times appear, but on the wrong side, on the side for “div class 7-12” and vice versa.
And if i rename the function for both div classes “1-6” and “7-12”, no datetimes appear on the site.


Josh

  • Support Staff

May 10, 2019 at 7:07 am

Two things: 1) It’s best to not override a core EE function just to use it in a custom template somewhere. This is because if the core function is used elsewhere you’ll run into issues because the core function was overridden.

2) The webmaster console shows a lot of “is not defined” errors, which appear to be related to the Autoptimize plugin. If you deactivate the Autoptimize plugin do the JavaScript errors go away?

Viewing 8 reply threads

The support post ‘display error when updating past version 4.9.7’ 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