Support

Home Forums Event Espresso Premium Fatal Error when opening Event Single Site

Fatal Error when opening Event Single Site

Posted: November 3, 2021 at 8:06 pm

Viewing 1 reply thread


RehaVital

November 3, 2021 at 8:06 pm

After we changed from “Specular” to “Enfold” Theme the Event Sites are not longer available. There is a fatal Error. I activated the WordPress Debug Mode and here is the Error:

Fatal error: Uncaught Error: Call to undefined function codeless_get_post_id() in /mnt/web114/d1/99/510136599/htdocs/neue_seite/mit_enfold/wp-content/themes/enfold/single-espresso_events.php:5 Stack trace: #0 /mnt/web114/d1/99/510136599/htdocs/neue_seite/mit_enfold/wp-includes/template-loader.php(106): include() #1 /mnt/web114/d1/99/510136599/htdocs/neue_seite/mit_enfold/wp-blog-header.php(19): require_once(‘/mnt/web114/d1/…’) #2 /mnt/web114/d1/99/510136599/htdocs/neue_seite/mit_enfold/index.php(17): require(‘/mnt/web114/d1/…’) #3 {main} thrown in /mnt/web114/d1/99/510136599/htdocs/neue_seite/mit_enfold/wp-content/themes/enfold/single-espresso_events.php on line 5

Any hints why is that and how i can solve this?


Tony

  • Support Staff

November 4, 2021 at 3:19 am

Hi there,

When you switched themes, did you also copy over some custom templates from your other theme?

/wp-content/themes/enfold/single-espresso_events.php

That single-espresso_events.php template is a custom template that’s not usually found within enfold, within that template the function codeless_get_post_id() is being called and that function looks like a function from the Specular theme.

If you rename the above to file to something other than it’s current filename, so for example single-espresso_events-temp.php, what happens then?

Viewing 1 reply thread

The support post ‘Fatal Error when opening Event Single 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