• Resolved vinciodigital

    (@vinciodigital)


    Hi,

    When I enable the version 4.3.2 (on a new website) I get the following error.

    Could you help me to resolve that?

    Have a good day!

    Fatal error: Uncaught Error: Call to a member function get_default_language() on null in wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php:279
    Stack trace:
    #0 wp-content/plugins/woocommerce-multilingual/inc/class-wcml-upgrade.php(670): WCML_Install::insert_default_categories()
    #1 wp-content/plugins/woocommerce-multilingual/inc/class-wcml-upgrade.php(113): WCML_Upgrade->upgrade_4_2_11()
    #2 [internal function]: WCML_Upgrade->run(”)
    #3 wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
    #4 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #5 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 wp-settings.php(450): do_action(‘init’)
    #7 wp-config.php(121): require_once(‘…’)
    #8 wp-load.p in wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php on line 279

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vinciodigital

    (@vinciodigital)

    I tried with my customized template and with the last default template version, I get the same issue 🙁

    I had another version of WPML before this one, it seem it’s going wrong during the upgrade ‘WCML_Upgrade->upgrade_4_2_11()’.

    Thread Starter vinciodigital

    (@vinciodigital)

    As it is a new website, is it possible to completely remove the previous installation and start from a new install?

    Hello!
    Did you finish the WPML initial setup?
    Also, did you complete the WooCommerce initial setup?
    It is possible that the problem is happening because of that.
    You might also try to bypass the upgrade logic by setting the key in the option table “_wcml_version” to “4.3.1” as mentioned here: https://wpml.org/forums/topic/error-after-updating-plugins/#post-2424273

    Thread Starter vinciodigital

    (@vinciodigital)

    WooCommerce yes, it’s up and running well.

    For the WPML initial setup no, I just noticed this plugin was complementary to the WPML, I will fix that.

    “_wcml_version” was set to “4.2.10”, I have changed it to the next version “4.2.11”, and I don’t have any error now.

    Thanks!

    Have a good day!

    • This reply was modified 7 years, 10 months ago by vinciodigital.

    Glad that you sorted this out.
    I will report this case to our developers and that an additional check is needed before running that logic.

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

The topic ‘Fatal error: Uncaught Error: Call to a member function get_default_language() on’ is closed to new replies.