• Resolved ooshenooo

    (@ooshenooo)


    Hey, if someone is trying to send a Quote, he’ll get this error, caused by germanized:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_GZD_Emails::add_bcc_email_headers(), 3 passed in /var/www/k10569-1/apps/cwik/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /var/www/k10569-1/apps/cwik/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-emails.php:153 Stack trace: #0 /var/www/k10569-1/apps/cwik/wp-includes/class-wp-hook.php(287): WC_GZD_Emails->add_bcc_email_headers(‘Reply-to: seva….’, ‘ywraq_email’, NULL) #1 /var/www/k10569-1/apps/cwik/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘Reply-to: seva….’, Array) #2 /var/www/k10569-1/apps/cwik/wp-content/plugins/yith-woocommerce-request-a-quote/includes/emails/class.yith-ywraq-send-email-request-quote.php(106): apply_filters(‘woocommerce_ema…’, ‘Reply-to: seva….’, ‘ywraq_email’, NULL) #3 /var/www/k10569-1/apps/cwik/wp-content/plugins/yith-woocommerce-request-a-quote/includes/emails/class.yith-ywraq-send-email-request-quote.php(81): YITH_YWRAQ_Send_Email_Request_Quote->get_headers() #4 /var in /var/www/k10569-1/apps/cwik/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-emails.php on line 153
    Es gab einen kritischen Fehler auf deiner Website.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi there,

    the error is actually not caused by Germanized (as we are using the official and newest Woo API) but your “Quote” Plugin which seems to call the woocommerce_email_attachments filter by using fewer arguments (3) than Woo (4) does in it’s core. Please see:
    https://github.com/woocommerce/woocommerce/blob/7659b984dcbcce6eb374205f3d4a92380d04f7a9/includes/emails/class-wc-email.php#L430

    And please report to the Quote Plugin developers by using the reference from above.

    Cheers

    Thread Starter ooshenooo

    (@ooshenooo)

    Ah well, thanks for that quick response.

    I just wondered. If I disable the germanized plugin, it works.

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    yes, of course – that will not trigger the problem as no other plugin might be using that specific WooCommerce hook (which Germanized uses as described above) to add some functionality. I’ll guess if you deactivate the Quote plugin, the problem is gone too. That’s why deactivating a plugin is not a valid argument here ??

    Cheers

    I have the same Problem but not the Quote Plugin.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_GZD_Emails::add_bcc_email_headers(), 3 passed in /var/www/html/shop_org/wp-includes/class-wp-hook.php on line 286 and exactly 4 expected in /var/www/html/shop_org/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-emails.php:153 Stack trace: #0 /var/www/html/shop_org/wp-includes/class-wp-hook.php(286): WC_GZD_Emails->add_bcc_email_headers(”, ‘backorder’, Array) #1 /var/www/html/shop_org/wp-includes/plugin.php(203): WP_Hook->apply_filters(”, Array) #2 /var/www/html/shop_org/wp-content/plugins/woocommerce/includes/class-wc-emails.php(681): apply_filters(‘woocommerce_ema…’, ”, ‘backorder’, Array) #3 /var/www/html/shop_org/wp-includes/class-wp-hook.php(286): WC_Emails->backorder(Array) #4 /var/www/html/shop_org/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #5 /var/www/html/shop in /var/www/html/shop_org/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-emails.php on line 153
    `

    Plugin Author vendidero

    (@vendidero)

    Hi @mindbreak,

    seems like you are using another plugin/theme which does use the same filter (in a wrong way). Please try deactivating one extension after another to check that and make sure you are using at least WooCommerce version 3.9.

    Cheers

    Thread Starter ooshenooo

    (@ooshenooo)

    Hey, Yith just fixed the issue in the new Patch 1.6.0.

    Hi @vendidero,

    thanks. I was on WordPress 4.9.x. I updated all. Now it works.
    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Germanized Fatal error’ is closed to new replies.