I am trying to fix an issue on the cegsa.sa.edu.au site where the event registration emails are not being sent.
I have set up a dev version of the site at http://108.167.179.247/~sandbox/cegsa/ and have upgraded the wordpress version to the latest and to the latest version of event espresso.
unfortunately it hasn’t fixed anything. I am now getting this error.
Fatal error: Call to undefined function espresso_get_total_cost() in /home/sandbox/public_html/cegsa/wp-content/plugins/event-espresso/includes/functions/email.php on line 5
I have updated all of the event espresso plugins to the latest, without any change.
any ideas?
The site is a clone but is working correctly otherwise.
the espresso_get_total_cost() function can be found in event-espresso/gateways/process_payments.php. So there are two possibilities that I can think of why you’re seeing this error:
1) The above file is missing from your installation.
2) There is an older or modified copy of process_payments.php in /wp-content/uploads/espresso/gateways that is overriding the process_payments.php file in the core plugin. You can look in the /uploads/espresso/gateways directory and if there are older files there, those can be removed.
Thank you. that pointed me in teh right direction and I worked it out from there.
Cheers,
Matthew
Viewing 3 reply threads
The support post ‘Fatal error: Call to undefined function espresso_get_total_cost()’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.