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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.