• Resolved keram39

    (@keram39)


    Great plugin! However, it seems that the plugin stopped to work after the latest update of WooCommerce to 4.9.0

Viewing 9 replies - 1 through 9 (of 9 total)
  • I have the same problem. I get an “Interal Server Error” when i want to submit a quote. I narrowed the problem down to the emails that are sent. When you disable them the plug-in it works fine but you don’t receive a mail in your inbox.

    • This reply was modified 4 years, 2 months ago by ayrtonvo.

    Hi,

    I sent my Problem to Woocommerce Core for assistance,

    The Plugin is pulling up a Http 500 error at checkout after the 4.9 update.

    So when you press the finalise quote button where you type in the billing and delivery address it just skips to the top of the page and doesn’t process the order, almost like an error in the field except with no error message.

    I love your Plugin and have made it a crucial part of my business, id love to donate some money to you <3 because I feel bad for asking for a FIX considering its free.

    If you reassure me you’ll be around or I can hire you directly I will keep it, but if I cant I will have to take it off ??

    Look forward to a reply,
    Much Love William

    I’m having same problem, this is from the error_log

    [14-Jan-2021 14:10:32 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Emails::email_header(), 1 passed in /home/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php:269
    Stack trace:
    #0 /home/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->email_header(‘Quotation Reque…’)
    #1 /home/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /home/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home/public_html/wp-content/plugins/quotes-for-woocommerce/templates/emails/request-new-quote.php(13): do_action(‘woocommerce_ema…’, ‘Quotation Reque…’)
    #4 /home/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/labelsig/…’)
    #5 /home/public_html/wp-content/plugins/quotes-for-woocommerce/includes/emails/class-qwc-request-new-quote.php(176): wc_get in /home/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php on line 269

    There are two ways to fix this.

    Method 1) Change “public function email_header( $email_heading, $email )” in \public_html\wp-content\plugins\woocommerce\includes\class-wc-emails.php Doing the fix here is only temporary because once there is another woocommerce update this file may be updated and the change will be reverted.

    Change this at line 269:

    	public function email_header( $email_heading, $email ) {
    		wc_get_template(
    			'emails/email-header.php',
    			array(
    				'email_heading' => $email_heading,
    				'email'         => $email,
    			)
    		);
    	}
    

    To the old function before the woocommerce update:

    	public function email_header( $email_heading ) {
    		wc_get_template( 'emails/email-header.php', array( 'email_heading' => $email_heading ) );
    	}
    

    Method 2) This changes code only in the (Quotes for woocommerce) plugin, but there’s a annoying few steps because there’s something else that is broken, custom email templates are saved to a incorrect folder.

    Step 1: Go into WP-Admin – Woocommerce > Settings > Emails

    Step 2: Click on “New Quote Request Sent” to Manage

    Step 3: Go down to HTML and click on (Copy file to theme) –
    This should copy the file to
    \public_html\wp-content\themes\your-theme\quotes-for-wc\emails\new-request-sent-customer.php

    but it instead copies it to
    \public_html\wp-content\themes\your-theme\woocommerce\emails\new-request-sent-customer.php

    If this happens you have to manually move new-request-sent-customer.php to \public_html\wp-content\themes\your-theme\quotes-for-wc\emails\new-request-sent-customer.php

    Step 4: Open \public_html\wp-content\themes\your-theme\quotes-for-wc\emails\new-request-sent-customer.php and change following:

    Line 15:
    do_action( 'woocommerce_email_header', $email_heading );

    to

    do_action( 'woocommerce_email_header', $email_heading, $email );

    • This reply was modified 4 years, 2 months ago by Steve.

    @sziangos Your a Legend steve,

    But this above me.

    Would you be open to fixing my website if Pinal Shah the creator of this Plugin does not update soon?

    Be much appreciate, will throw you some money for your time.

    William

    I have created an account on WordPress just to thank @sziangos. Merci !
    Your trick works perfectly : I now get the notifications and the user gets his confirmation the request was put.

    We can now wait for the return of Pinal Shah stressless. : )

    Plugin Author pinal.shah

    (@pinalshah)

    Hi all,

    I apologize. Will be releasing an update with the fix soon.

    Thanks,
    Pinal

    @pinalshah we love you <3

    Plugin Author pinal.shah

    (@pinalshah)

    Hi all,

    An update has been released (v1.7.1) fixing this issue. Once again, please accept apologies for the issues faced.

    Thanks,
    Pinal

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WooCommerce 4.9.0’ is closed to new replies.