• Resolved 409industries

    (@409industries)


    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;
    		}
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mahdi Yazdani

    (@mahdiyazdani)

    Hi @409industries

    Thanks for reporting this issue, I’ll investigate the issue and include any necessary fix within the next update.

    Thread Starter 409industries

    (@409industries)

    Mahdi-

    Thanks for looking into this, I’ll be sure to check out the latest version once released.

    -Aaron

    Plugin Author Mahdi Yazdani

    (@mahdiyazdani)

    Hi @409industries

    Please update the plugin to the latest version available. I hope this resolves the PHP error on your end. Please let me know if you have any questions.

    Thread Starter 409industries

    (@409industries)

    Just upgraded to the latest version. Publishing is working normally now.

    Thank you again for a great plugin and for the top notch support. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Publishing page w/ vacation message on causes critical error’ is closed to new replies.