WPIntell

Source evidence

Fatal error in plugin

WooCommerce Legacy REST API · support · 2024-05-15T10:15:00+00:00

complaintsentiment
highseverity
1.0relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

9 / 38 rows with source links

23.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
rajgorjaydeep unresolved
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. 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! This reply was modified 2 years ago by underthecover . Same here… 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

Comments

6 shown
norsegaud 2024-05-15T10:19:00+00:00

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

lisbeththygesenart 2024-05-15T10:34:00+00:00

Same problem here.

underthecover 2024-05-15T10:48:00+00:00

Same here! This reply was modified 2 years ago by underthecover .

Kees Lamper 2024-05-15T10:51:00+00:00

Same here…

Mr_sordum 2024-05-15T10:55:00+00:00

Same here

mfeilen 2024-05-15T11:00:00+00:00

@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