critical error with shortcode

Using the shortcode [coupon_countdown code=”my-code”] or one with an attribute causes a critical error when updating the page. Error details refer to the following:
An error of type E_ERROR was caused in line 388 of the file /var/www/vhosts/mydomain.com/subdomain.mydomain.com/wp-content/plugins/woocommerce-coupons-countdown/lib/views/class-woocommerce-coupons-countdown-shortcodes.php. Error message: Uncaught Error: Call to a member function get_cart() on null in /var/www/vhosts/mydomain.com/subdomain.mydomain.com/wp-content/plugins/woocommerce-coupons-countdown/lib/views/class-woocommerce-coupons-countdown-shortcodes.php:388
Please advise.


Comments

One response to “critical error with shortcode”

  1. Hi Pia,

    Welcome to our support forum and sorry to hear that you have issues with the plugin.
    Can you please provide some more details on your setup? What is the version of WordPress, WooCommerce that you are currently using and what are the countdown settings you have specified for this coupon?
    Also, I think it would be better if you could share a full copy of your debug.log with us. You can either share it through a file sharing service like Dropbox, or you can send it directly to george at itthinx dot com.

    Kind regards,
    George

Share