Support

Home Forums Event Espresso Premium getting fatal error in promotions

getting fatal error in promotions

Posted: December 12, 2020 at 11:07 pm

Viewing 7 reply threads


ALArtStudio

December 12, 2020 at 11:07 pm

I get this error whenever I create a promotion. I deleted the one causing the error and it repeats itself again on any new one. There is no choice of Promotion type while creating the promotion. I checked the hosting provider and there seems to be no errors on their side.
Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Price.class.php:274 Stack trace: #0 /var/www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Price.class.php(287): EE_Price->is_percent() #1 /var/www/wp-content/plugins/eea-promotions/core/db_classes/EE_Promotion.class.php(151): EE_Price->pretty_price() #2 /var/www/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_List_Table.class.php(162): EE_Promotion->pretty_amount() #3 /var/www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_List_Table.core.php(731): Promotions_Admin_List_Table->column_amount(Object(EE_Promotion)) #4 /var/www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_List_Table.core.php(622): EE_Admin_List_Table->single_row_columns(Object(EE_Promotion)) #5 /var/www/wp-admin/includes/class-wp-list-table.php(1337): EE_Admin_List_Table->single_row(Object(EE_Promotion)) #6 /var/www/wp-admin/includes/class-wp-list-t in /var/www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Price.class.php on line 274
There has been a critical error on your website. Please check your site admin email inbox for instructions.


Tony

  • Support Staff

December 13, 2020 at 1:28 pm

Hi there,

Go to Event Espresso -> Pricing -> Price Types.

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

Do you still get the same error?


ALArtStudio

December 14, 2020 at 2:56 pm

Yes thank you, restore trashed “pricing type” was helpful.
Related question: Why is the promotion lit blue banner isn’t showing on top of the check out page? I double checked, the setting sounds correct


Tony

  • Support Staff

December 14, 2020 at 4:46 pm

The banner is displayed for ‘Non-coded’ promotions (promotions without a code) and those that have something in the ‘Banner text’ field.

So are you using a promotion without a code set and have you set the banner text?

It does not display on the checkout page but displays above the Ticket Selector for the event the promotion applies to.


ALArtStudio

December 15, 2020 at 10:20 pm

Awesome, Got it! looks like to leave the promotion code field blank is the key to see the banner (I just love that banner idea and design:) . Thank you for the quick respond.


Tony

  • Support Staff

December 16, 2020 at 5:18 am

Just to be clear, promotions that do now have a ‘code’ set on them will automatically apply to each of the events they are set to apply to and that’s why they show the banner on the ticket selector (as they automatically apply).

For ‘coded’ promotions we don’t show the banner as they can be used for ‘secret’ promotions (if you don’t have the code you can’t apply the promotion) so a banner highlights a promotion and admins then receive messages regarding the promotion.


ALArtStudio

December 19, 2020 at 10:41 pm

Understand, pretty clear instruction! I m trying to set up Early Bird dollar discount and % sibling discount, it all works out with these two promotion function.


Tony

  • Support Staff

December 21, 2020 at 6:56 am

Awesome, I’m glad it’s working for you.

Any further issues/questions just let us know.

Viewing 7 reply threads

The support post ‘getting fatal error in 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