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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form