Hello,
My woodmart theme has critical errors over and over again, we lost 3 days of order numbers and now it happened again, now we have to manually enter orders again.
error log:
[10-May-2023 12:29:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function is_woocommerce() in /home/h0lujdk/public_html/wp-content/themes/woodmart-child/functions.php:218
Stack trace:
#0 /home/h0lujdk/public_html/wp-includes/class-wp-hook.php(310): order_by_stock_status(Array)
#1 /home/h0lujdk/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array)
#2 /home/h0lujdk/public_html/wp-includes/class-wp-query.php(2940): apply_filters_ref_array(‘posts_clauses’, Array)
#3 /home/h0lujdk/public_html/wp-includes/class-wp-query.php(3787): WP_Query->get_posts()
#4 /home/h0lujdk/public_html/wp-includes/class-wp.php(663): WP_Query->query(Array)
#5 /home/h0lujdk/public_html/wp-includes/class-wp.php(783): WP->query_posts()
#6 /home/h0lujdk/public_html/wp-includes/functions.php(1334): WP->main(”)
#7 /home/h0lujdk/public_html/wp-blog-header.php(16): wp()
#8 /home/h0lujdk/public_html/sapp-wp-signon.php(15): require(‘/home/h0lujdk/p…’)
#9 {main}
thrown in /home/h0lujdk/public_html/wp-content/themes/woodmart-child/functions.php on line 218