Magento 2 Deploying static content causes “Undefined variable: template” errorGetting an issue working with Grunt in Magento 2Changes to CSS and JavaScript applies only after deploying static contentMagento2: Mixin is undefined on deploying static contentStatic files aren't deploying in developer modeMagento 2.1.3 static content issueCannot create symlink in magentoMagento 2 setup:staitic-content:deploy doesn't update cssMagento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessed.lib-url-check is undefined Magento 2.3 static content deploy errormagento 2.2 static content deploy errors
Term “console” in game consoles
What is this green alien supposed to be on the American covers of the "Hitchhiker's Guide to the Galaxy"?
How to draw a winding on a toroid of a circular cross section?
Which GPUs to get for Mathematical Optimization (if any)?
Locked-up DOS computer beeped on keypress. What mechanism caused that?
How can one convert an expression to a string while keeping the quotation marks of strings that are part of the expression?
Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?
How did Jayne know when to shoot?
Desecrating Shabbos to ask a Gadol to daven for a patient?
Round command argument before using
Why is the Intel 8086 CPU called a 16-bit CPU?
Why can't I hear fret buzz through the amp?
How to belay quickly ascending top-rope climbers?
How would you say "Sorry, that was a mistake on my part"?
How do you send money when you're not sure it's not a scam?
Why did Fury respond that way?
Operation Unzalgo
What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?
What makes MOVEQ quicker than a normal MOVE in 68000 assembly?
Difference between c++14 and c++17 using: `*p++ = *p`
Everyone but three
Who determines when road center lines are solid or dashed?
Why did my "seldom" get corrected?
Why does a tetrahedral molecule like methane have a dipole moment of zero?
Magento 2 Deploying static content causes “Undefined variable: template” error
Getting an issue working with Grunt in Magento 2Changes to CSS and JavaScript applies only after deploying static contentMagento2: Mixin is undefined on deploying static contentStatic files aren't deploying in developer modeMagento 2.1.3 static content issueCannot create symlink in magentoMagento 2 setup:staitic-content:deploy doesn't update cssMagento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessed.lib-url-check is undefined Magento 2.3 static content deploy errormagento 2.2 static content deploy errors
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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.
magento2 static-content-deploy
add a comment |
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.
magento2 static-content-deploy
add a comment |
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.
magento2 static-content-deploy
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.
magento2 static-content-deploy
magento2 static-content-deploy
edited Jul 10 at 6:00
Vivek
2,0281 gold badge9 silver badges38 bronze badges
2,0281 gold badge9 silver badges38 bronze badges
asked Jul 9 at 21:38
Eric BrownEric Brown
1748 bronze badges
1748 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281448%2fmagento-2-deploying-static-content-causes-undefined-variable-template-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281448%2fmagento-2-deploying-static-content-causes-undefined-variable-template-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown