Support » Plugin: YayMail - WooCommerce Email Customizer » error after payment: too few arguments to function

  • Resolved schotte

    (@schotte)


    Hi,

    I installed the plugin but it doesn’t work for me. I have deactivated nearly all other plugins now but I still get the same error (see below).

    I’m doing a testpayment through stripe, accept it, get returned but instead of an order confirmation I get an error.

    Software
    Wordpress 5.6.2
    WooCommerce 5.0.0
    WooCommerce Stripe Gateway 4.9.0
    YayMail 1.9.4
    Theme: Atomion (by the creators of the GermanMarket-Plugin) and also tested with Storefront

    Any advice?
    thanks
    Albert

    error:
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function Pelago\Emogrifier::handleXpathQueryWarnings(), 4 passed and exactly 5 expected in /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/Emogrifier.php:1783 Stack trace: #0 [internal function]: Pelago\Emogrifier->handleXpathQueryWarnings(2, 'DOMXPath::query...', '/var/home/graph...', 494) #1 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/Emogrifier.php(494): DOMXPath->query('//*[contains(co...') #2 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/Emogrifier.php(366): Pelago\Emogrifier->process() #3 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(570): Pelago\Emogrifier->emogrify() #4 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(650): WC_Email->style_inline('<html>\n\t\t\t<head...') #5 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/emails/class-wc-email-new-order.php(110): WC_Email->send('office@graphiks...', '[COVID-TESTS by...', '<html>\n\t\t\t<head...', 'Content-Type: t...', Array) #6 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp-hook.php(287): WC_Email_New_Order->trigger(439, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #7 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #8 /var/home/graphikschmiede_at/covid-tests/wp-includes/plugin.php(551): WP_Hook->do_action(Array) #9 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array('woocommerce_ord...', Array) #10 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp-hook.php(287): WC_Emails::send_transactional_email(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #11 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #12 /var/home/graphikschmiede_at/covid-tests/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #13 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/class-wc-order.php(372): do_action('woocommerce_ord...', 439, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #14 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/class-wc-order.php(221): WC_Order->status_transition() #15 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/includes/class-wc-order.php(333): WC_Order->save() #16 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php(443): WC_Order->update_status('on-hold', 'Stripe erwartet...') #17 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-order-handler.php(182): WC_Stripe_Payment_Gateway->process_response(Object(stdClass), Object(Automattic\WooCommerce\Admin\Overrides\Order)) #18 /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-order-handler.php(211): WC_Stripe_Order_Handler->process_redirect_payment('439') #19 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp-hook.php(287): WC_Stripe_Order_Handler->maybe_process_redirect_order(Object(WP)) #20 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #21 /var/home/graphikschmiede_at/covid-tests/wp-includes/plugin.php(551): WP_Hook->do_action(Array) #22 /var/home/graphikschmiede_at/covid-tests/wp-includes/class-wp.php(758): do_action_ref_array('wp', Array) #23 /var/home/graphikschmiede_at/covid-tests/wp-includes/functions.php(1291): WP->main('') #24 /var/home/graphikschmiede_at/covid-tests/wp-blog-header.php(16): wp() #25 /var/home/graphikschmiede_at/covid-tests/index.php(17): require('/var/home/graph...') #26 {main} thrown in /var/home/graphikschmiede_at/covid-tests/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/Emogrifier.php on line 1783

    • This topic was modified 9 months, 1 week ago by schotte.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter schotte

    (@schotte)

    Hi again,

    after trying and trying, it finally works. But I don’t know why …

    I tried other plugins for email customizations. One resulted in exactly the same error. Others worked but I didn’t like them. After a lot of activating and deactivating those plugins one of those producing the above error nearly worked. There still were errors in the browser but the was an order confirmation on screen and by email.

    After deactivating the other plugin and reactivating yay everything worked fine. Hope reactivating some other necessary plugins won’t break it again …

    Thread Starter schotte

    (@schotte)

    Hi,

    I finally copied the complete installation to the production system (Database + complete WordPress-Installation) and the error is back again.

    I tried it for over an hour now but it simply does not work. Again the same error message. Too few arguments for Emogrifier.

    Help desperately wanted …

    Plugin Author YayCommerce

    (@yaycommerce)

    Hi @schotte,

    We need more info to help resolve this, please email us.
    Thank you.

    Havyn Bo

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error after payment: too few arguments to function’ is closed to new replies.