{"id":268,"date":"2016-12-16T21:08:01","date_gmt":"2016-12-16T21:08:01","guid":{"rendered":"https:\/\/alexrusin.com\/?p=268"},"modified":"2016-12-16T22:04:22","modified_gmt":"2016-12-16T22:04:22","slug":"magento-2-errors-and-solutions","status":"publish","type":"post","link":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/","title":{"rendered":"Magento 2 Errors and Solutions"},"content":{"rendered":"

“Cannot create a symlink for ” error<\/strong><\/p>\n

This error most likely will show up when you are running Magento 2 on Windows system (XAMPP, WAMP, etc).\u00a0 This error causes font icons to be replaced by non-resolvable symbols (problem in the admin area).\u00a0 Long story short, if Magento can\u2019t find a static asset file, it will automatically copy or symlink that file from that file\u2019s source module.\u00a0 In our case symlink does not work on Windows system. In order to solve this problem:<\/p>\n

    \n
  1. Open up app\/etc\/di.xml<\/code> and find the virtualType name=\"developerMaterialization\"<\/code> section. In that section you’ll find an item name=\"view_preprocessed\"<\/code> that needs to be modified or deleted. You can modify it by changing the contents from Magento\\Framework\\App\\View\\Asset\\MaterializationStrategy\\Symlink<\/code> to Magento\\Framework\\App\\View\\Asset\\MaterializationStrategy\\Copy<\/code><\/li>\n
  2. Delete the files under pub\/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess<\/code> file.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

    “Cannot create a symlink for ” error This error most likely will show up when you are running Magento 2 on Windows system (XAMPP, WAMP, etc).\u00a0 This error causes font icons to be replaced by non-resolvable symbols (problem in the admin area).\u00a0 Long story short, if Magento can\u2019t find a static asset file, it will…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-268","post","type-post","status-publish","format-standard","hentry","category-magento"],"yoast_head":"\nMagento 2 Errors and Solutions | Alex Rusin Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Errors and Solutions | Alex Rusin Blog\" \/>\n<meta property=\"og:description\" content=\"“Cannot create a symlink for ” error This error most likely will show up when you are running Magento 2 on Windows system (XAMPP, WAMP, etc).\u00a0 This error causes font icons to be replaced by non-resolvable symbols (problem in the admin area).\u00a0 Long story short, if Magento can\u2019t find a static asset file, it will...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\" \/>\n<meta property=\"og:site_name\" content=\"Alex Rusin Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-16T21:08:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-12-16T22:04:22+00:00\" \/>\n<meta name=\"author\" content=\"alexrusin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"alexrusin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\"},\"author\":{\"name\":\"alexrusin\",\"@id\":\"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a\"},\"headline\":\"Magento 2 Errors and Solutions\",\"datePublished\":\"2016-12-16T21:08:01+00:00\",\"dateModified\":\"2016-12-16T22:04:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\"},\"wordCount\":141,\"publisher\":{\"@id\":\"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a\"},\"articleSection\":[\"Magento\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\",\"url\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\",\"name\":\"Magento 2 Errors and Solutions | Alex Rusin Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.alexrusin.com\/#website\"},\"datePublished\":\"2016-12-16T21:08:01+00:00\",\"dateModified\":\"2016-12-16T22:04:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.alexrusin.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2 Errors and Solutions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.alexrusin.com\/#website\",\"url\":\"https:\/\/blog.alexrusin.com\/\",\"name\":\"Alex Rusin\",\"description\":\"Web Development Blog\",\"publisher\":{\"@id\":\"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.alexrusin.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a\",\"name\":\"alexrusin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.alexrusin.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c36ef231f9e0b11371891eb84360f4bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c36ef231f9e0b11371891eb84360f4bc?s=96&d=mm&r=g\",\"caption\":\"alexrusin\"},\"logo\":{\"@id\":\"https:\/\/blog.alexrusin.com\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Errors and Solutions | Alex Rusin Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Errors and Solutions | Alex Rusin Blog","og_description":"“Cannot create a symlink for ” error This error most likely will show up when you are running Magento 2 on Windows system (XAMPP, WAMP, etc).\u00a0 This error causes font icons to be replaced by non-resolvable symbols (problem in the admin area).\u00a0 Long story short, if Magento can\u2019t find a static asset file, it will...","og_url":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/","og_site_name":"Alex Rusin Blog","article_published_time":"2016-12-16T21:08:01+00:00","article_modified_time":"2016-12-16T22:04:22+00:00","author":"alexrusin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"alexrusin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/#article","isPartOf":{"@id":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/"},"author":{"name":"alexrusin","@id":"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a"},"headline":"Magento 2 Errors and Solutions","datePublished":"2016-12-16T21:08:01+00:00","dateModified":"2016-12-16T22:04:22+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/"},"wordCount":141,"publisher":{"@id":"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a"},"articleSection":["Magento"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/","url":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/","name":"Magento 2 Errors and Solutions | Alex Rusin Blog","isPartOf":{"@id":"https:\/\/blog.alexrusin.com\/#website"},"datePublished":"2016-12-16T21:08:01+00:00","dateModified":"2016-12-16T22:04:22+00:00","breadcrumb":{"@id":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.alexrusin.com\/magento-2-errors-and-solutions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.alexrusin.com\/"},{"@type":"ListItem","position":2,"name":"Magento 2 Errors and Solutions"}]},{"@type":"WebSite","@id":"https:\/\/blog.alexrusin.com\/#website","url":"https:\/\/blog.alexrusin.com\/","name":"Alex Rusin","description":"Web Development Blog","publisher":{"@id":"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.alexrusin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.alexrusin.com\/#\/schema\/person\/a9005ca622862109b2c514050fbaaf9a","name":"alexrusin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.alexrusin.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c36ef231f9e0b11371891eb84360f4bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c36ef231f9e0b11371891eb84360f4bc?s=96&d=mm&r=g","caption":"alexrusin"},"logo":{"@id":"https:\/\/blog.alexrusin.com\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":1,"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/posts\/268\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/posts\/268\/revisions\/269"}],"wp:attachment":[{"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/categories?post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alexrusin.com\/wp-json\/wp\/v2\/tags?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}