Support

Home Forums Event Espresso Premium Fatal error with promotions

Fatal error with promotions

Posted: January 21, 2021 at 5:58 am


Anthony Irtelli

January 21, 2021 at 5:58 am

Hi

I get the following fatal error when trying to add promotions.

Current theme: BHT Training (version 0.1) Current plugin: Event Espresso - Promotions (EE 4.9.10+) (version 1.0.15.p) PHP version 7.3.25

Error Details
=============
An error of type E_ERROR was caused in line 133 of the file /home/thetoolb/bht-training.org.uk/wp-content/plugins/eea-promotions/core/db_classes/EE_Promotion.class.php. Error message: Uncaught Error: Call to a member function is_discount() on null in /home/thetoolb/bht-training.org.uk/wp-content/plugins/eea-promotions/core/db_classes/EE_Promotion.class.php:133
Stack trace:
#0 /home/thetoolb/bht-training.org.uk/wp-content/plugins/eea-promotions/admin/promotions/templates/promotion_details_form.template.php(56): EE_Promotion->amount()
#1 /home/thetoolb/bht-training.org.uk/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(389): include('/home/thetoolb/...')
#2 /home/thetoolb/bht-training.org.uk/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_Page.core.php(474): EEH_Template::display_template('/home/thetoolb/...', Array)
#3 /home/thetoolb/bht-training.org.uk/wp-admin/includes/template.php(1389): Promotions_Admin_Page->promotion_details_metabox(NULL, Array)
#4 /home/thetoolb/bht-training.org.uk/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_details_wrapper.template.php(31): do_meta_boxes(Object(WP_Screen), 'normal', NULL)

I have looked through previous posts and have completely deleted all old prices and just have the standard prices.

Do you know how I can fix this error.

Many thanks

Mark


Tony

  • Support Staff

January 21, 2021 at 6:02 am

Hi Mark,

I have looked through previous posts and have completely deleted all old prices and just have the standard prices.

What about ‘Price Types’?

The error you getting happens when people remove the price types from Event Espresso, so go to:

Event Espresso -> Pricing -> Price Types.

Do you have any price types in the trash there? If so, restore them.


Anthony Irtelli

January 25, 2021 at 5:54 am

Thanks, that did the trick.


Tony

  • Support Staff

January 25, 2021 at 6:51 am

You’re most welcome.

Any further problems just let us know.

The support post ‘Fatal error with promotions’ 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