Support

Home Forums Event Espresso Premium Fatal error: Call to undefined function espresso_get_total_cost()

Fatal error: Call to undefined function espresso_get_total_cost()

Posted: March 7, 2013 at 11:00 pm


EdTechSA Office

March 7, 2013 at 11:00 pm

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.

cheers,
Matthew


EdTechSA Office

March 7, 2013 at 11:12 pm

I have also tried deactivating and re activating the plugin and I get…

The plugin generated 309 characters of unexpected output during activation


Josh

  • Support Staff

March 8, 2013 at 9:14 am

Hi there,

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.


EdTechSA Office

March 13, 2013 at 5:10 pm

Hi Josh,

Thank you. that pointed me in teh right direction and I worked it out from there.
Cheers,
Matthew

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.

Event Espresso