• Resolved Diiamo

    (@luislu)


    Hi,
    After the customer creates a new account with the name and password, it will show the below error. The account is created successfully, I can see the registered user info on admin. If use a google account to login in, it works well and doesn’t show the below error.

    Fatal error: Uncaught Error: Call to a member function get_user_id() on bool in /www/wwwroot/diiamo.net/wp-content/plugins/translatepress-multilingual/includes/class-woocommerce-emails.php:135 Stack trace: #0 /www/wwwroot/diiamo.net/wp-includes/class-wp-hook.php(307): TRP_Woocommerce_Emails->trp_woo_setup_locale() #1 /www/wwwroot/diiamo.net/wp-includes/plugin.php(191): WP_Hook->apply_filters() #2 /www/wwwroot/diiamo.net/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(330): apply_filters() #3 /www/wwwroot/diiamo.net/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-new-account.php(104): WC_Email->setup_locale() #4 /www/wwwroot/diiamo.net/wp-content/plugins/woocommerce/includes/class-wc-emails.php(392): WC_Email_Customer_New_Account->trigger() #5 /www/wwwroot/diiamo.net/wp-includes/class-wp-hook.php(307): WC_Emails->customer_new_account() #6 /www/wwwroot/diiamo.net/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /www/wwwroot/diiamo.net/wp-includes/plugin.php(524): WP_Ho in /www/wwwroot/diiamo.net/wp-content/plugins/translatepress-multilingual/includes/class-woocommerce-emails.php on line 135

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • This seems to be quite a major issue.
    I’ve fixed this personally by commenting out 2 lines of the code, I’m not sure if this is the exact solution yet, but it has resolved the critical error issue at least.

    In this file:
    /public_html/wp-content/plugins/translatepress-multilingual/includes/class-woocommerce-emails.php
    I commented/removed the 2 following lines:
    Line ~13:
    add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'save_language_on_checkout' ), 10, 2 );

    Line ~42
    add_filter( 'woocommerce_allow_switching_email_locale', array( $this, 'trp_woo_setup_locale' ), 10, 2 );

    Hi, Great!!

    I have some problem and fix it to remove the line 13 and 42, thanks.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Our dev team was notified. My colleagues will try to handle this as soon as possible. A fix will probably will be included in the next version of the plugin.

    Best Regards,

    Thread Starter Diiamo

    (@luislu)

    @alexcozmoslabs Great to know that, thanks.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,
    ?
    ?Our dev team just fixed the issue and release a new update for the plugin. Please, make sure you update at 2.3.6 version.
    ?
    ?
    ?Kind Regards,

    Thread Starter Diiamo

    (@luislu)

    Hi,

    Thanks, for keeping me posted, already update and the issue is solved!
    Good day.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Uncaught Error: Call to a member function get_user_id()’ is closed to new replies.