• Resolved actionmatt

    (@actionmatt)


    We keep getting error causing a Http 500 error on the backend of our website when updating your plugin. It happened a while back and then after a recent update to your plugin we thought you’d fixed it but its happened again once we update the plugin. The following seems to be the log:

    [22-Jun-2022 09:12:12 UTC] PHP Fatal error: Uncaught Error: Class ‘WC_Product’ not found in /home/longtown/public_html/wp-content/plugins/woo-gift-cards-lite/woocommerce_gift_cards_lite.php:232

    Any ideas or are you working on this (it seems to have been flagged a few months back on this support thread).

Viewing 1 replies (of 1 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for using our plugin,

    Add this piece of code on line 225 of home/longtown/public_html/wp-content/plugins/woo-gift-cards-lite/woocommerce_gift_cards_lite.php

    if ( ! class_exists( 'WC_Product', false ) ) {
    			require_once WC()->plugin_path() . '/includes/abstracts/abstract-wc-product.php';
    		}

    It may resolve your issue.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘woo-gift-cards-lite causing 500 error’ is closed to new replies.