Fatal Error
-
Hi there
I am getting a fatal error with your plugin, see code below.
2024-09-27T03:05:13+00:00 Critical Uncaught Error: Call to a member function get_cart() on null in /home/example/public_html/wp-content/plugins/side-cart-woocommerce/includes/class-xoo-wsc-cart.php:203
Additional context
{
"error": {
"type": 1,
"file": "/home/example/public_html/wp-content/plugins/side-cart-woocommerce/includes/class-xoo-wsc-cart.php",
"line": 203
},
"backtrace": [
"",
"#0 /home/example/public_html/wp-content/plugins/side-cart-woocommerce/templates/xoo-wsc-container.php(29): Xoo_Wsc_Cart->get_cart_count()",
"#1 /home/example/public_html/wp-content/plugins/side-cart-woocommerce/includes/xoo-framework/class-xoo-helper.php(57): include('/home/example/…')",
"#2 /home/example/public_html/wp-content/plugins/side-cart-woocommerce/templates/xoo-wsc-markup.php(25): Xoo_Helper->get_template('xoo-wsc-contain…')",
"#3 /home/example/public_html/wp-content/plugins/side-cart-woocommerce/includes/xoo-framework/class-xoo-helper.php(57): include('/home/example/…')",
"#4 /home/example/public_html/wp-content/plugins/side-cart-woocommerce/includes/class-xoo-wsc-frontend.php(145): Xoo_Helper->get_template('xoo-wsc-markup….')",
"#5 /home/example/public_html/wp-includes/class-wp-hook.php(324): Xoo_Wsc_Frontend->cart_markup('')",
"#6 /home/example/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
"#7 /home/example/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
"#8 /home/example/public_html/wp-includes/general-template.php(3081): do_action('wp_footer')",
"#9 /home/example/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php(655): wp_footer()",
"#10 /home/example/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php(603): WP_REST_Widget_Types_Controller->render_legacy_widget_preview_iframe('search', Array)",
"#11 /home/example/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Widget_Types_Controller->render(Object(WP_REST_Request))",
"#12 /home/example/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/widget-t…', Array, NULL)",
"#13 /home/example/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))",
"#14 /home/example/public_html/wp-includes/rest-api.php(420): WP_REST_Server->serve_request('/wp/v2/widget-t…')",
"#15 /home/example/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))",
"#16 /home/example/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
"#17 /home/example/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)",
"#18 /home/example/public_html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)",
"#19 /home/example/public_html/wp-includes/class-wp.php(813): WP->parse_request('')",
"#20 /home/example/public_html/wp-includes/functions.php(1336): WP->main('')",
"#21 /home/example/public_html/wp-blog-header.php(16): wp()",
"#22 /home/example/public_html/index.php(17): require('/home/example/…')",
"#23 {main}",
"thrown"
]
}Possible fix?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.