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;








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.










share|improve this question






























    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.










    share|improve this question


























      0












      0








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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




















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?