Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dynamiccorvettes

    (@dynamiccorvettes)

    @gjz001 I’m not sure if it will work for you but it’s worth a shot.
    @shahzeenfarooq of course

    changed lines 677-679 in
    /home/dynami16/dynamiccorvettes.com/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php

    old

    public function invalidate_cache(): bool {
    return WC_Cache_Helper::invalidate_cache_group( self::CACHE_GROUP );
    }

    new
    public function invalidate_cache(): bool {
    $result = WC_Cache_Helper::invalidate_cache_group( self::CACHE_GROUP );
    return $result === true;
    }

    It’s kind of a brute force method as it was expecting a Boolean and not a string. so i just forced it to return a boolean.

    It may not be the prettiest fix, but it works.

    Thread Starter dynamiccorvettes

    (@dynamiccorvettes)

    hey there, sorry for the late reply. I actually have done most of that prior to posting here. I was getting stuck and thats what led me to post here.

    I ended up getting it taken care of.

    The issue ended up being a line in the FileController.php

    Its a temporary fix but we’re up and stable now.

Viewing 2 replies - 1 through 2 (of 2 total)