Support » Plugin: License Manager for WooCommerce » Sand email error

  • Resolved itsleszek

    (@itsleszek)


    Hello,
    while creating an email, he gets the error “Internal server error” /
    The log looks like this:

    wpdesk.CRITICAL: Uncaught ArgumentCountError: Too few arguments to function LicenseManagerForWooCommerce\Integrations\WooCommerce\Email::afterOrderTable(), 
    3 passed in /wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Email.php:32 
    Stack trace: #0 /wp-includes/class-wp-hook.php(287): LicenseManagerForWooCommerce\Integrations\WooCommerce\Email->afterOrderTable(Object(WC_Order), false, false) 
    #1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) 
    #2 /wp-includes/plugin.php(484): WP_Hook->do_action(Array) 
    #3 /wp-content/plugins/flexible-invoices-woocommerce/src/WooCommerce/Email/templates/emails/proforma.php(49): do_action('woocommerce_ema...', Object(WC_Order), false, false) 
    #4 /wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/wp-content/plu...') 
    #5 /wp-content/plugins/flexible-invoices-woocommerce/vendor_prefixed/wpdesk/flexible-invoices-core/src/Invoices/Email/BaseEmail.php( w /wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Email.php w linii 32  {"source":"fatal-errors"} []
    [26-Feb-2021 10:57:51 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function LicenseManagerForWooCommerce\Integrations\WooCommerce\Email::afterOrderTable(), 3 passed in /wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Email.php:32
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(287): LicenseManagerForWooCommerce\Integrations\WooCommerce\Email->afterOrderTable(Object(WC_Order), false, false)
    #1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #2 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /wp-content/plugins/flexible-invoices-woocommerce/src/WooCommerce/Email/templates/emails/proforma.php(49): do_action('woocommerce_ema...', Object(WC_Order), false, false)
    #4 /wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/wp-content/plu...')
    #5 /wp-content/plugins/flexible-invoices-woocommerce/vendor_prefixed/wpdesk/flexible-invoices-core/src/Invoices/Email/BaseEmail.php( in /wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Email.php on line 32
    [2021-02-26 10:57:52] wpdesk.CRITICAL: Uncaught ArgumentCountError: Too few arguments to function LicenseManagerForWooCommerce\Integrations\WooCommerce\Email::afterOrderTable(), 3 passed in /wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Email.php:32 Stack trace: #0 /wp-includes/class-wp-hook.php(287): LicenseManagerForWooCommerce\Integrations\WooCommerce\Email->afterOrderTable(Object(WC_Order), false, false) #1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /wp-content/plugins/flexible-invoices-woocommerce/src/WooCommerce/Email/templates/emails/proforma.php(49): do_action('woocommerce_ema...', Object(WC_Order), false, false) #4 /wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/wp-content/plu...') #5 /wp-content/plugins/flexible-invoices-woocommerce/vendor_prefixed/wpdesk/flexible-invoices-core/src/Invoices/Email/BaseEmail.php( w /wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Email.php w linii 32  {"source":"fatal-errors"} []

    I use the WPDesk plugin to handle the factor. Something is biting between the plugs.
    Request for help.

    • This topic was modified 8 months ago by itsleszek.
Viewing 2 replies - 1 through 2 (of 2 total)
  • @itsleszek

    It seems to be me like the flexible-invoices-woocommerce plugin is the culprit. It doesn’t forward all necessary parameters in the following location:

    /wp-content/plugins/flexible-invoices-woocommerce/src/WooCommerce/Email/templates/emails/proforma.php(49)

    Can you tell me which action is being called there?

    Resolved due to inactivity

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.