• Hey,
    So we have discovered a problem with the plugin, where in the directory ‘/woocommerce-legacy-rest-api/includes’ and the file ‘class-wc-legacy-rest-api-plugin.php’ where the function
    hpos_is_enabled() is declared as non-static but it causes an error as its used in 2 static functions (solved by declaring hpos_is_enabled as static) . Please look into it and solve it in the coming updates.
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Same. This is major and broke our entire site

    [15-May-2024 10:16:22 UTC] PHP Fatal error: Uncaught Error: Non-static method WC_Legacy_REST_API_Plugin::hpos_is_enabled() cannot be called statically in /home/zi1olwt1sf5w/public_html/wp-content/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php:77
    Stack trace: 0 /home/zi1olwt1sf5w/public_html/wp-content/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php(28): WC_Legacy_REST_API_Plugin::maybe_add_hpos_incompatibility_admin_notice() 1 /home/zi1olwt1sf5w/public_html/wp-includes/class-wp-hook.php(324): WC_Legacy_REST_API_Plugin::on_woocommerce_init() 2 /home/zi1olwt1sf5w/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 3 /home/zi1olwt1sf5w/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /home/zi1olwt1sf5w/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(812): do_action() 5 /home/zi1olwt1sf5w/public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init() 6 /home/zi1olwt1sf5w/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /home/zi1olwt1sf5w/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 8 /home/zi1olwt1sf5w/public_html/wp-settings.php(695): do_action() 9 /home/zi1olwt1sf5w/public_html/wp-config.php(107): require_once(‘/home/zi1olwt1s…’) 10 /home/zi1olwt1sf5w/public_html/wp-load.php(50): require_once(‘/home/zi1olwt1s…’) 11 /home/zi1olwt1sf5w/public_html/wp-blog-header.php(13): require_once(‘/home/zi1olwt1s…’) 12 /home/zi1olwt1sf5w/public_html/index.php(17): require(‘/home/zi1olwt1s…’) 13 {main}

    thrown in /home/zi1olwt1sf5w/public_html/wp-content/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php on line 77

    Same problem here.

    Same here!

    Same here…

    Mr_sordum

    (@paulcityhopper)

    Same here

    @rajgorjaydeep came to the same conclusion. Seems to be some kind of refactoring bug.

    To find it faster: function is located in file wp-content/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php on row 102

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error in plugin’ is closed to new replies.