• Resolved magnusm

    (@magnusm)


    Hi,

    I got a fatal error on my site on the checkout page. Instead of choosing payment method I get the following:

    “Fatal error: Call to a member function get_payment_method() on boolean in /home/jptrssia/public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php on line 707”

    Would love some quick support on this since it’s impossible to do payments and I want the fix with pricing for composite products. Everything else is updated to latest versions, i.e. 3.0.5 of woocommerce and so on.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello and thank you for contacting us.
    As a temporary fix until a new release of WooCommerce Multilingual is released, you can change the file: /wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php in the function: filter_payment_method_string() and replace:

    
      if( '_payment_method_title' === $meta_key ){
    

    With this code:

    
     if( $object_id && 'shop_order' === get_post_type( $object_id ) && '_payment_method_title' === $meta_key ){
    

    Please let me know if this works or not for you.

    The error should be resolved in our latest release of WooCommerce Multilingual 4.1.4

    Thread Starter magnusm

    (@magnusm)

    Issue resolved, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error get_payment_method() 4.1.3’ is closed to new replies.