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

I've never had that issue before, and the only thing I did was add 1 Javascript file to the theme since last deploying static content.

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.

  • Did you get any solution? I am also facing similar kind of error. – Kowsigan Atsayam Sep 23 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.