Posted: 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: 2) 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 |
|
seems there is an error witth the first image,i’ll give it another try. |
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. |
|
|
in case there is again an uploading error with the image to this post, here is the url of the screenshot: |
|
when inspecting the “upcoming events block” the date is missing. also the webmaster console displays this: |
|
and this is the function which calls the event date: |
|
And this is the function in the functions.php: |
|
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”. |
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? |
|
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.