Support

Home Forums Event Espresso Premium Deprecated: Required parameter $transaction follows optional parameter $TXN_tota

Deprecated: Required parameter $transaction follows optional parameter $TXN_tota

Posted: November 20, 2023 at 10:10 am

Viewing 2 reply threads


calthoracic

November 20, 2023 at 10:10 am

Hello,
I’m getting the following error when accessing the main web site (not published). I’ve migrated it to Kinsta and I’m troubleshooting… [PHP 8.0.30 WordPress 6.4.1 Betheme 27.2.9.4 Child theme DB Server 10.11.5-MariaDB, all EE plugins have latest versions]. I have debug mode enabled. There is a menu item which navigates to an event registration (https://calthoracic2.kinsta.cloud/?post_type=espresso_events&p=5608). fyi when I remove this menu item, the debug msg is not displayed.

debug msg:
Deprecated: Required parameter $transaction follows optional parameter $TXN_total in /www/calthoracic2_926/public/wp-content/plugins/eea-promotions/EED_Promotions.module.php on line 335

here’s the line.
public static function transactions_list_table_total($TXN_total = ”, EE_Transaction $transaction)

From what I briefly read, it looks like php 8 doesn’t like the $TXN_total = ”? I can update the line to remove the “= ”” but I’m wondering if there’s more functions created this way? Or am I missing the issue completely?

please advise or lmk what other details you need.

thanks, Walt


Rio

  • Support Staff

November 20, 2023 at 8:05 pm

We have upcoming update wherein all depreciated code for php 8 will be fixed. your EE should work fine even with that message, but if you see something strange please let us know.

thanks


calthoracic

November 22, 2023 at 4:28 pm

Rio, thanks for your reply…


Rio

  • Support Staff

November 22, 2023 at 6:03 pm

We’re grateful for helping EE to improve. If you see any bug or problem, feel free to reach us again.

have a wonderful day!

Viewing 2 reply threads

The support post ‘Deprecated: Required parameter $transaction follows optional parameter $TXN_tota’ 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