Data not passed to templates anymore

I had succesfully setup the WooCommerce single-product and product-archive pages using the solutions here. Part of it was to use <?php echo App\template('archive-product'); in the php files to include blade files. This was working fine, until recently I checked again and found that I was receiving an undefined variables error.

It seems like suddenly, controller is not passing variables from app.php to these views anymore. I do realize that data is not passed to php files, but I do wonder how this was working before.

Oddly enough, I use the same method for WooCommerce’s myaccount templates, and there it is receiving the data from app.php successfully.

Any ideas on what could break this functionality?