Publishing page w/ vacation message on causes critical error
-
Hello!
We’ve been using this plugin for a while and it works great for us. Recently, i’ve noticed that when we’re publishing WordPress pages with the Woo Store Notice enabled is its causing the dreaded “critical error on your website” message. The strange thing is that even though this shows, the updates to the pages we’re editing still take effect.
There has been a critical error on your website. Please check your site admin email inbox for instructions.
This is on Version 1.3.8 with WP v5.5.1
Fatal error: Uncaught Error: Call to undefined function wc_print_notice() in /home/mywebsitename/public_html/wp-content/plugins/woo-store-vacation/woo-store-vacation.php:810 Stack trace: #0 /home/mywebsitename/public_html/wp-includes/class-wp-hook.php(287): Woo_Store_Vacation->vacation_notice('') #1 /home/mywebsitename/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #2 /home/mywebsitename/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/mywebsitename/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php(646): do_action('woocommerce_bef...') #4 /home/mywebsitename/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php(100): WC_Shortcode_Products->product_loop() #5 /home/mywebsitename/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(283): WC_Shortcode_Products->get_content() #6 /home/mywebsitename/public_html/wp-includes/shortcodes.php(343): in /home/mywebsitename/public_html/wp-content/plugins/woo-store-vacation/woo-store-vacation.php on line 810
For reference Line 810 starts with:
wc_print_notice( $message, apply_filters( 'woo_store_vacation_notice_type', 'notice' ) ); echo '</div>'; endif; }
- The topic ‘Publishing page w/ vacation message on causes critical error’ is closed to new replies.