@rainfallnixfig problem is still in WooCommerce, after some more testing problem is indeed in ClassicTemplate.php where the parameter $content can receive a NULL value. But because of fact you have a cast check of string added the error is accuring.
When I remove string casting it works fine.