Support

Home Forums Event Espresso Premium Editing in Elementor gets un error: Uncaught Error: Call to undefined function

Editing in Elementor gets un error: Uncaught Error: Call to undefined function

Posted: May 25, 2018 at 1:41 am

Viewing 2 reply threads


Studio Chevalking

May 25, 2018 at 1:41 am

This problem wasn’t before, after an update with elementor and EE this error appears.

It has to do with this line in EEW_Upcoming_Events.widget.php:
echo espresso_event_date_range($date_format, $time_format, $single_date_format, $single_time_format);

When this is active, it is not possible anymore to edit the page and when error logging is on I can see it’s this line what’s the problem. The only solution until now is to exclude this syntax will solve the problem.

Is there an other solution for this and is this familiair to EE?

This problem only appears at the back end in the Elementor editor, not on the front end.

Greets Wilfred


Tony

  • Support Staff

May 25, 2018 at 4:27 am

Hi Wilfred,

We are aware of this issue and have created a ticket for our developers to investigate, in short EE only loads its files/functions on the requests that use them, the function above is included in the template_tags.phpwhich was expected to be used on the frontend, so it doesn’t load on page builders.

I’ve added this thread to that ticket.

As a workaround for the time being you can use a snippet to include the file that holds the function referenced in the above error when using elementor, something like this:

https://gist.github.com/Pebblo/eb77e0c3ce13e52afb4482f52aa642cf

Add that to custom functions plugin on your site:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Studio Chevalking

May 25, 2018 at 5:29 am

Thanks for the help! I will look for it and use the temporary snippet!

Viewing 2 reply threads

The support post ‘Editing in Elementor gets un error: Uncaught Error: Call to undefined function’ 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