Support

Home Forums Event Espresso Premium Promotions Plug In Error From WordPress

Promotions Plug In Error From WordPress

Posted: October 21, 2024 at 9:44 am

Viewing 7 reply threads


clubgetaway

October 21, 2024 at 9:44 am

I am adding new promotions to the plug in and getting errors. Here is the error that was sent to me.

In this case, WordPress caught an error with one of your plugins, Event Espresso – Promotions (EE 4.9.10+).

First, visit your website (https://events.clubgetaway.com/) and check for any visible issues. Next, visit the page where the error was caught (https://events.clubgetaway.com/wp-admin/admin.php?page=espresso_promotions&action=edit&PRO_ID=2&edit_nonce=ba10368ca1&return=default) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

https://events.clubgetaway.com/wp-login.php?action=enter_recovery_mode&rm_token=W8mbN06d7HBADakEGTe4hA&rm_key=ULZ1PL3beEW1AJedhIuMJF

To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.6.2
Active theme: Neve (version 3.8.11)
Current plugin: Event Espresso – Promotions (EE 4.9.10+) (version 1.0.17.p)
PHP version 8.2.24

Error Details
=============
An error of type E_ERROR was caused in line 137 of the file /home/customer/www/events.clubgetaway.com/public_html/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/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/eea-promotions/core/db_classes/EE_Promotion.class.php:137
Stack trace:
#0 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/eea-promotions/admin/promotions/templates/promotion_details_form.template.php(82): EE_Promotion->amount()
#1 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(416): include(‘/home/customer/…’)
#2 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_Page.core.php(568): EEH_Template::display_template(‘/home/customer/…’, Array)
#3 /home/customer/www/events.clubgetaway.com/public_html/wp-admin/includes/template.php(1456): Promotions_Admin_Page->promotion_details_metabox(Object(WP_Post), Array)
#4 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_details_wrapper.template.php(35): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
#5 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(416): include(‘/home/customer/…’)
#6 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2831): EEH_Template::display_template(‘/home/customer/…’, Array, true)
#7 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2732): EE_Admin_Page->_display_admin_page(true)
#8 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_Page.core.php(525): EE_Admin_Page->display_admin_page_with_sidebar()
#9 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1161): Promotions_Admin_Page->_promotion_details()
#10 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(891): EE_Admin_Page->_route_admin_request()
#11 /home/customer/www/events.clubgetaway.com/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(258): EE_Admin_Page->route_admin_request()
#12 /home/customer/www/events.clubgetaway.com/public_html/wp-includes/class-wp-hook.php(324): EE_Admin_Page_Init->initialize_admin_page(”)
#13 /home/customer/www/events.clubgetaway.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#14 /home/customer/www/events.clubgetaway.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /home/customer/www/events.clubgetaway.com/public_html/wp-admin/admin.php(259): do_action(‘event-espresso_…’)
#16 {main}
thrown


Tony

  • Support Staff

October 22, 2024 at 4:36 am

Hi there,

The error you are getting relates to the price ‘type’ assigned to the price for the promotion.

If you go to Event Espresso -> Pricing -> Price Types (tab).

What do you see there?

It should look something like this:

https://monosnap.com/file/yEyDw3yigZqDZazlwcPRDglvukzTFs


clubgetaway

October 22, 2024 at 5:31 am

Looks like we deleted some of the things that are there not knowing what they were for. https://monosnap.com/file/9tuqInGVSBWKzsyonfCQyyzAtAQzYO

I tried to put them back but got this error.

https://monosnap.com/file/dyAgscTtOFmDzzZI965GtYI7lAWqEI


Tony

  • Support Staff

October 22, 2024 at 5:36 am

You’ll need to enable WP_DEBUG to see what Database error is being thrown.

I recommend adding this snippet to your sites wp-config.php file:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

That enables WP_DEBUG and stores the error in /wp-content/debug.log to view.

Once finished make sure you either remove that snippet again or set:

define( 'WP_DEBUG', true );

To be:

define( 'WP_DEBUG', false );

To disable it again.

If you are not comfortable using FTP/File Manager I can do the above for you if you send of temp login details using this form:

https://eventespresso.com/send-login-details/

Note I would need both WP-admin and FTP credentials to do this.


clubgetaway

October 22, 2024 at 5:47 am

This reply has been marked as private.


Tony

  • Support Staff

October 22, 2024 at 6:30 am

This reply has been marked as private.


clubgetaway

October 22, 2024 at 6:34 am

This reply has been marked as private.


Tony

  • Support Staff

October 23, 2024 at 5:01 am

This reply has been marked as private.
Viewing 7 reply threads

The support post ‘Promotions Plug In Error From WordPress’ 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