• Resolved weblikero

    (@weblikero)


    Hello,

    We are experiencing a fatal error with the “Decorator – WooCommerce Email Customizer” plugin on my WordPress site (https://dentalfarma.ro/). WordPress has detected the error and notified me via email.

    Here are the details of the error:

    • Error Type: E_ERROR
    • File: /home/dentalfa/public_html/wp-content/plugins/decorator-woocommerce-email-customizer/includes/classes/rp-decorator-customizer.class.php
    • Line: 1248
    • Error Message: Uncaught ArgumentCountError: Too few arguments to function RP_Decorator_Customizer::wt_email_header_before(), 1 passed in /home/dentalfa/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected.

    Additional Information:

    • WordPress Version: 6.6.2
    • Active Theme: YOOtheme (version 4.4.12)
    • Current Plugin Version: Decorator – WooCommerce Email Customizer (version 1.3.0)
    • PHP Version: 8.2.25

    I have checked my site and the page where the error was reported, but I could not identify any obvious issues. I would appreciate any assistance in resolving this matter.

    Thank you!

    ———————————————

    Detalii eroare
    ==============
    A apărut o eroare de tipul E_ERROR pe linia 1248 a fișierului /home/dentalfa/public_html/wp-content/plugins/decorator-woocommerce-email-customizer/includes/classes/rp-decorator-customizer.class.php. Mesaj eroare: Uncaught ArgumentCountError: Too few arguments to function RP_Decorator_Customizer::wt_email_header_before(), 1 passed in /home/dentalfa/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/dentalfa/public_html/wp-content/plugins/decorator-woocommerce-email-customizer/includes/classes/rp-decorator-customizer.class.php:1248
    Stack trace:
    #0 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(324): RP_Decorator_Customizer->wt_email_header_before('Comand\xC4\x83 finali...')
    #1 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #2 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/templates/emails/finalizat.php(13): do_action('woocommerce_ema...', 'Comand\xC4\x83 finali...')
    #4 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/dentalfa/...')
    #5 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/emails/woocos-email.php(174): wc_get_template('emails/finaliza...', Array, 'woocommerce', '/home/dentalfa/...')
    #6 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/emails/woocos-email.php(100): WOOCOS_Email->woocos_get_content_html(Array, Object(stdClass))
    #7 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(324): WOOCOS_Email->woocos_trigger(28795, Object(stdClass))
    #8 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #9 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/email-manager.php(64): do_action('woocos_email_no...', 28795, Object(stdClass))
    #11 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(324): WOOCOS_Email_Manager->woocos_trigger_email_action(28795, Object(stdClass), 'finalizat', false)
    #12 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #13 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #14 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/order-status-generator.php(97): do_action('woocommerce_ord...', 28795, Object(stdClass), 'finalizat', false)
    #15 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(326): woocos_add_custom_order_status_actions(28795, 'completed', 'finalizat')
    #16 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #17 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #18 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(421): do_action('woocommerce_ord...', 28795, 'completed', 'finalizat', Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #19 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition()
    #20 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(768): WC_Order->save()
    #21 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(326): WC_Meta_Box_Order_Data::save(28795)
    #22 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #23 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #24 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(263): do_action('woocommerce_pro...', 28795, Object(WP_Post))
    #25 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes(28795, Object(WP_Post))
    #26 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #27 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #28 /home/dentalfa/public_html/wp-includes/post.php(4891): do_action('save_post', 28795, Object(WP_Post), true)
    #29 /home/dentalfa/public_html/wp-includes/post.php(4993): wp_insert_post(Array, false, true)
    #30 /home/dentalfa/public_html/wp-admin/includes/post.php(453): wp_update_post(Array)
    #31 /home/dentalfa/public_html/wp-admin/post.php(227): edit_post()
    #32 {main}
      thrown

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @weblikero ,

    Greetings from WebToffee Support.

    The error you’re encountering is likely caused by a third-party plugin introducing custom email templates using the do_action() hook for 'woocommerce_email_header' without passing the required arguments, leading to the issue described.

    We want to assure you that this issue has been identified, and a fix will be included in the next plugin update.

    We appreciate your patience and understanding as we work to resolve this matter

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @weblikero,

    Thanks for waiting. We have reviewed the error log and identified that it is the conflict with the Custom Order Statuses for WooCommerce plugin you use. It is seen that the plugin has been discontinued as of March 7, 2024, due to security issues. Since it is deprecated and no longer supported, we suggest adjusting the plugin code as a workaround.

    To resolve the issue with the plugin’s email calls, you can modify the lines:

    <?php do_action( 'woocommerce_email_header', $email_heading ); ?>
    <?php do_action( 'woocommerce_email_footer' ); ?>

    to:

    <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>  
    <?php do_action( 'woocommerce_email_footer', $email ); ?>

    Hope this helps.

    Thread Starter weblikero

    (@weblikero)

    Hello,

    We have implemented the solution you previously recommended. However, the problem remains unresolved, as we are still receiving error notifications via email.

    Detalii eroare
    ==============
    A apărut o eroare de tipul E_ERROR pe linia 1248 a fișierului /home/dentalfa/public_html/wp-content/plugins/decorator-woocommerce-email-customizer/includes/classes/rp-decorator-customizer.class.php. Mesaj eroare: Uncaught ArgumentCountError: Too few arguments to function RP_Decorator_Customizer::wt_email_header_before(), 1 passed in /home/dentalfa/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/dentalfa/public_html/wp-content/plugins/decorator-woocommerce-email-customizer/includes/classes/rp-decorator-customizer.class.php:1248
    Stack trace:
    #0 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(324): RP_Decorator_Customizer->wt_email_header_before('Comand\xC4\x83 finali...')
    #1 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #2 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/templates/emails/finalizat.php(13): do_action('woocommerce_ema...', 'Comand\xC4\x83 finali...')
    #4 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/dentalfa/...')
    #5 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/emails/woocos-email.php(174): wc_get_template('emails/finaliza...', Array, 'woocommerce', '/home/dentalfa/...')
    #6 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/emails/woocos-email.php(100): WOOCOS_Email->woocos_get_content_html(Array, Object(stdClass))
    #7 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(324): WOOCOS_Email->woocos_trigger(29667, Object(stdClass))
    #8 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #9 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/email-manager.php(64): do_action('woocos_email_no...', 29667, Object(stdClass))
    #11 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(324): WOOCOS_Email_Manager->woocos_trigger_email_action(29667, Object(stdClass), 'finalizat', false)
    #12 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #13 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #14 /home/dentalfa/public_html/wp-content/plugins/custom-order-statuses-for-woocommerce/order-status-generator.php(97): do_action('woocommerce_ord...', 29667, Object(stdClass), 'finalizat', false)
    #15 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(326): woocos_add_custom_order_status_actions(29667, 'completed', 'finalizat')
    #16 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #17 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #18 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(421): do_action('woocommerce_ord...', 29667, 'completed', 'finalizat', Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #19 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition()
    #20 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(768): WC_Order->save()
    #21 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(326): WC_Meta_Box_Order_Data::save(29667)
    #22 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #23 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #24 /home/dentalfa/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(263): do_action('woocommerce_pro...', 29667, Object(WP_Post))
    #25 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes(29667, Object(WP_Post))
    #26 /home/dentalfa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #27 /home/dentalfa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #28 /home/dentalfa/public_html/wp-includes/post.php(5060): do_action('save_post', 29667, Object(WP_Post), true)
    #29 /home/dentalfa/public_html/wp-includes/post.php(5162): wp_insert_post(Array, false, true)
    #30 /home/dentalfa/public_html/wp-admin/includes/post.php(453): wp_update_post(Array)
    #31 /home/dentalfa/public_html/wp-admin/post.php(227): edit_post()
    #32 {main}
      thrown
    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @weblikero,

    Thank you for getting back to us and providing detailed information about the error.

    To further investigate and assist you better, could you kindly share your WooCommerce System Status Report? You can access this report by navigating to WooCommerce > Status > Get system status report in your WordPress dashboard.

    Once you have the report, please share it with us via this support link.

    Looking forward to your response.

    Thread Starter weblikero

    (@weblikero)

    Thanks for the fast reply. System status report was sent.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error with Decorator – WooCommerce Email Customizer Plugin’ is closed to new replies.