Support

Home Forums Event Espresso Premium Fatal Error

Fatal Error

Posted: July 5, 2023 at 6:45 am

Viewing 5 reply threads


BPP

July 5, 2023 at 6:45 am

Hello our Espresso is broken, see Error:

Deprecated: Optional parameter $TXN_total declared before required parameter $transaction is implicitly treated as a required parameter in …plugins/eea-promotions/EED_Promotions.module.php on line 335

Deprecated: Optional parameter $validation_error_message declared before required parameter $compare_to is implicitly treated as a required parameter in …wp-content/plugins/event-espresso-core-reg/core/libraries/form_sections/strategies/validation/EE_Equal_To_Validation_Strategy.strategy.php on line 24

Fatal error: Uncaught ArgumentCountError: 5 arguments are required, 3 given in …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php:1426 Stack trace: #0 …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php(1426): sprintf(‘Die Bearbeitung…’, ‘<br/>’, ‘<br/>’) #1 …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php(1379): EED_Single_Page_Checkout->translate_js_strings() #2 …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php(493): EED_Single_Page_Checkout->add_styles_and_scripts(Object(EED_Single_Page_Checkout)) #3 …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php(383): EED_Single_Page_Checkout->_initialize() #4 …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php(427): EED_Single_Page_Checkout->run(Object(WP_Query)) #5 …wp-content/plugins/event-espresso-core-reg/core/domain/entities/shortcodes/EspressoCheckout.php(57): EED_Single_Page_Checkout::init(Object(WP_Query)) #6 …wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/ShortcodesManager.php(242): EventEspresso\core\domain\entities\shortcodes\EspressoCheckout->initializeShortcode() #7 …wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/ShortcodesManager.php(205): EventEspresso\core\services\shortcodes\ShortcodesManager->parseContentForShortcodes(‘[ESPRESSO_CHECK…’, Object(WP_Post)) #8 …wp-includes/class-wp-hook.php(308): EventEspresso\core\services\shortcodes\ShortcodesManager->templateRedirect(”) #9 …wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #10 …wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 …wp-includes/template-loader.php(13): do_action(‘template_redire…’) #12 …wp-blog-header.php(19): require_once(‘…’) #13 ….index.php(17): require(‘…’) #14 {main} thrown in …wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/EED_Single_Page_Checkout.module.php on line 1426

Seems to be quite drastic?

Kind Regards


Tony

  • Support Staff

July 5, 2023 at 7:17 am

Hi there,

It looks like this is from the translation file in use on the site.

Do you have FTP/File Manager access?

Your site is using a custom PO/MO fileset, within your sites PO file the translation for this:

Please wait while we process your registration.%sDo not refresh the page or navigate away while this is happening.%sThank you for your patience.

Has been set to:

Die Bearbeitung Ihrer Registrierung wird übertragen.%sDiese Seite nicht aktualisieren, während dies geschieht.%sVielen Dank für Ihre Geduld.
Le traitement de votre inscription sera transféré.%sNe rafraîchissez pas cette page pendant ce temps.%sMerci de votre patience.

The %s‘s are placeholders for code passed into sprintf(), this code:

EE_Registry::$i18n_js_strings['process_registration'] = sprintf(
    esc_html__(
        'Please wait while we process your registration.%sDo not refresh the page or navigate away while this is happening.%sThank you for your patience.',
        'event_espresso'
    ),
    '<br/>',
    '<br/>'
);

The 2 br’s at what are being passed to the %s placeholders, as you have 4 of those in your string PHP8 is throwing a fatal. You could switch out your translation to use %1$s in place of those %s which tells Sprintf() which variable to pass for each placeholder (in this case they are the same and both <br/>)


BPP

July 5, 2023 at 9:22 am

Yes i have FTP access. Where are the Language files located.
I also have a PO/MO editieor.


Tony

  • Support Staff

July 5, 2023 at 9:27 am

Sorry, I meant to include that in my reply…

/wp-content/uploads/espresso/languages/


BPP

July 10, 2023 at 8:12 am

Thank you! Problem solved.


Tony

  • Support Staff

July 10, 2023 at 3:20 pm

You’re most welcome, I’m glad its fixed 🙂

Any further issues just let us know.

Viewing 5 reply threads

The support post ‘Fatal Error’ 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