• silentauben

    (@silentauben)


    since installing the last update, my test website stopped working with this error, the frontsite and the backoffice.

    Fatal error: Class ‘WC_Product’ not found in D:\wamp\www\spa-massage-bretagne\www\wp-content\plugins\yith-woocommerce-gift-cards\lib\class.ywgc-product-gift-card.php on line 16

    Checking why and if i found will notice you.

    https://www.ads-software.com/plugins/yith-woocommerce-gift-cards/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter silentauben

    (@silentauben)

    line 97

    require_once ( YITH_YWGC_DIR . 'functions.php' );

    your require is outside the init and it doesn’t like that.
    just had to put it in

    function yith_ywgc_init () {

    and now working again.

    Thread Starter silentauben

    (@silentauben)

    Got the same error with the last update and same way to correct.
    Am i the only one to face this bug?

    Plugin Author YITHEMES

    (@yithemes)

    Please update the plugin and tell us if the problem still persists.

    Best regards

    Thread Starter silentauben

    (@silentauben)

    i am already on the last version, the 1.0.5, and i don’t see new version.
    moving the line 97 in init.php to the function function yith_ywgc_init (){} makes the job (dev only, the website is not on prod)

    Plugin Author YITHEMES

    (@yithemes)

    is a weird problem that we do not see on our test installations.
    Have you tried turning off all other plugins?

    I’m not a programmer and not quite understanding how to fix this problem. But I just installed it and I’m having the same problem. page not found.

    Thanks for any help.
    Nora

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    please try with the last release of the plugin and let me know if the update fix your problem.

    Best regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Class 'WC_Product' not found’ is closed to new replies.