I just did a static content deploy and cache flush on my Magento 2 site, and when I did, the entire site crashed with the following error:
Notice: Undefined variable: template in /vendor/magento/framework/View/Page/Config/Renderer.php on line 389"
The site was working before the static content deploy and only 1 file was added in the theme. When I dug deeper, I also found this error:
A symlink for "vendor/magento/theme-frontend-blank/web/css/source/_reset.less" can't be created and placed to "pub/static/frontend/Vendor/theme/en_US/css/source/_reset.less". Warning!symlink(): No such file or directory
It's also strange because the
_reset.less file does exist in that location that it says it does not exist in. I thought it might be a permission issue, so I set the vendor folder, and everything in it, to 777 (I'm on a local dev environment, and this is only for testing purposes), but it still came up with the same errors. I'm not sure why it can't find a file that exists where it says it doesn't exist when it has full permission to do everything, so I'm at a bit of a loss.
Any help would be appreciated.