Liquid error: Could not find asset snippets/.liquid

Tourist
9 0 1

On my homepage right after the last content box and just above the footer, there is a line of repeating text that states, "Liquid error: Could not find asset snippets/.liquid"

I am still new to the whole .liquid coding and this problem just appeared the other day.  I have no idea how to resolve this and Shopify cannot give me any advice since it's a custom theme.  Can anybody give me some general direction?

 

 

0 Likes
Astronaut
1890 1 393

You might have some code that looks like this:

{% include name_of_snippet %}

The emphasis is that there are no quotation marks.  You must enclose the filename of the snippet in quotation marks.

{% include 'name_of_snippet' %}

If this doesn't help, you may want to provide a copy of your code or provide your storefront password.

0 Likes
Tourist
9 0 1

Copy of the code is below:

 

<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
  
  <link href='http://fonts.googleapis.com/css?family=Questrial|Glegoo|Droid+Sans|Lato:300,400|Arvo|Playfair+Displa...; rel='stylesheet' type='text/css'>    
  
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width" />
  
  <!-- Basic Page Needs
================================================== -->
  
  <title>
    {{ page_title }}{% if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} &ndash; Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
  </title>
  {% if page_description %}
  <meta name="description" content="{{ page_description | escape }}" />
  {% endif %}
  <link rel="canonical" href="{{ canonical_url }}" />
  
  
  <!-- CSS
================================================== -->
  
  {{ 'stylesheet.css' | asset_url | stylesheet_tag }}
  {{ 'font-awesome.css' | asset_url | stylesheet_tag }}
  {{ 'flexslider.css' | asset_url | stylesheet_tag }}
  {{ 'queries.css' | asset_url | stylesheet_tag }}
  {{ 'jquery.fancybox.css' | asset_url | stylesheet_tag }}
  {{ 'jquery.fs.selecter.css' | asset_url | stylesheet_tag }}
  
  
  <!--[if IE 7]>
{{ 'font-awesome-ie7.css' | asset_url | stylesheet_tag }}
<![endif]-->
  
  <!-- JS
================================================== -->
  
  
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script type="text/javascript" src="https://www.contentplum.com/js/feeds/code.js"></script>;
  <script type="text/javascript" src="path/to/instafeed.min.js"></script>

  


  
  
  {{ 'theme.js' | asset_url | script_tag }} 
  {{ 'handlebars.js' | asset_url | script_tag }}
  {{ 'api.js' | asset_url | script_tag }}   
  {{ 'option_selection.js' | shopify_asset_url | script_tag }}
  {{ 'jquery.flexslider.js' | asset_url | script_tag }}
  {{ 'jquery.fs.selecter.js' | asset_url | script_tag }}
  {{ 'jquery.fancybox.pack.js' | asset_url | script_tag }}
  {{ 'jquery.mousewheel-3.0.6.pack.js' | asset_url | script_tag }}
  {{ 'jquery.easing.1.3.js' | asset_url | script_tag }}
  {{ 'jquery.placeholder.js' | asset_url | script_tag }}
  {% if template == 'product' %}
  {{ 'jquery.zoom.js' | asset_url | script_tag }}
  {% endif %}
  
  <!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>;
<![endif]-->
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  <!-- Favicons
================================================== -->
  
  <link rel="shortcut icon" href="{{ 'favicon.png' | asset_url }}">
  
  {% if template contains 'customers' %}
  {{ "shopify_common.js" | shopify_asset_url | script_tag }}
  {{ "customer_area.js"  | shopify_asset_url | script_tag }}
  {% endif %}
  
  {{ content_for_header }}
  
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>;
    <script>
    $(function() {
    $( "#tabs" ).tabs();
    });
    </script>
  
</head>

<body class="gridlock">
  
  
  <div class="page-wrap">
    
    
    <header class="large">    
      
      <nav id="nav" role="navigation">      
        <div class="row"> 
          
          <div id="searchbox" class="desktop-3 mobile-3">
            
            <form action="/search" method="get">
              <input type="text" name="q" id="q" placeholder="search..." />
            </form>            
          </div>
          
          
          
          <div id="logo" class="desktop-3 mobile-3">       
            {% if settings.use_logo_image %}
            <a href="/"><img src="{{ 'logo.png' | asset_url }}" alt="{{ shop.name }}" style="border: 0;"/></a>
            {% else %}
            <a href="/">{{ shop.name }}</a>
            {% endif %}           
          </div>         
          <div id="nav-wrap">          
            <ul id="nav" class="desktop-9 mobile-3">
              {% for link in linklists.main-menu.links %}
              <li {% capture child_list_handle %}{{ link.title | handleize }}{% endcapture %}{% if linklists[child_list_handle] and linklists[child_list_handle].links.size > 0 %}class="got-dropdown"{% endif %}>
                {{ link.title | link_to: link.url }}
                {% capture child_list_handle %}{{ link.title | handleize }}{% endcapture %}
                {% if linklists[child_list_handle] and linklists[child_list_handle].links.size > 0 %}
                <ul class="submenu">
                  {% for l in linklists[child_list_handle].links %}
                  <li class="submenu-links"><a href="{{ l.url }}">{{ l.title }}</a></li>
                  {% endfor %}
                </ul>
                {% endif %}
              </li>
              {% endfor %}
              <li class="seeks"><a href="#"><i class="icon-search"></i></a></li>
              {% if shop.customer_accounts_enabled %}
              <li class="cust">
                {% if customer  %}
                <a href="/account"><i class="icon-user"></i></a>
                {% else %}
                <a href="/account/login"><i class="icon-user"></i></a>
                {% endif %}
              </li>
              {% endif %}
              <li class="cart-overview"><a href="/cart"><i class="icon-shopping-cart"></i><span id="item_count">{{ cart.item_count }}</span></a>
                <div id="crt">
                  {% include 'shopping-cart' %}
                  {% if cart.item_count != 0 %}
                  <a class="checkout-link" href="/cart">checkout</a>
                  {% endif %}
                </div>
              </li>          
            </ul>
          </div>
        </div>
      </nav>
      
      <script>
    $(function(){
      $('ul#nav').slicknav();
    });  
  </script>
          <ul id="mobile-cart">    
            {% if shop.customer_accounts_enabled %}
            <li>
              {% if customer  %}
              <a href="/account"><i class="icon-user"></i></a>
              {% else %}
              <a href="/account/login"><i class="icon-user"></i></a>
              {% endif %}
            </li>
            {% endif %}
            <li>
              <a href="/cart"><i class="icon-shopping-cart"></i>{% if cart.item_count != 0 %} <span class="smallcash">{{ cart.total_price | money }}</span>{% endif %}</a>
            </li>
          </ul>      
    </header>
    
    <div class="clear"></div>
    
    
    {% if template == 'index' %}    
    {{ content_for_layout }}
    {% else %}    
    <div id="content" class="row">    
      {% if template != 'index' %}
      {% if settings.breadcrumb %}
      {% include 'breadcrumb' %}    
      {% endif %}    
      {% endif %}
      {{ content_for_layout }}  
    </div>
    {% endif %}
    
    
    
  </div>  <!-- End page wrap for sticky footer -->
  
  <div id="footer-wrapper2">    
    <div id="footer" class="row">        
      
      <div class="desktop-4 tablet-third mobile-full" padding-right:50px; padding-bottom:10px;><h4>Follow Us on Instagram:</h4><!-- INSTANSIVE WIDGET --><script src="http://instansive.com/widget/js/instansive.js"></script><iframe src="http://instansive.com/widgets/h3f7598587cde6ba403741d0b86b58b7.html"; scrolling="no" allowtransparency="true" class="instansive-widget" style="width: 100%; border: 0; overflow: hidden;"></iframe></div>
        <div class="desktop-4 tablet-third mobile-full" padding-right:50px; padding-bottom:10px;><h4>Latest Tweets:</h4><a class="twitter-timeline" href="https://twitter.com/WurtonLighting"; data-widget-id="494159748300685313" width="auto" height="230px">Tweets by @WurtonLighting</a><script>// <![CDATA[
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
// ]]></script></div>
        <div class="desktop-4 tablet-third mobile-full" padding-right:50px; padding-bottom:10px;>
          <h4>Like Us on Facebook:</h4>
          <div id="fb-root"></div>
              <script>(function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id)) return;
                js = d.createElement(s); js.id = id;
                js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
                fjs.parentNode.insertBefore(js, fjs);
              }(document, 'script', 'facebook-jssdk'));</script>
        <div class="fb-like-box" data-href="https://www.facebook.com/Wurtonlighting"; data-width="auto" data-height="230" data-colorscheme="dark" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"></div></div>
      </div> 
    
    
  
  <div id="footer-wrapper">    
    <div id="footer" class="row">        
      
      <ul class="desktop-3 mobile-3">
        <h4>{{ settings.footer-1-title }}</h4>
        {% for link in linklists.[settings.footer-1].links %}
        <li>{{ link.title | link_to: link.url }}</li>
        {% endfor %}
      </ul>
      <ul class="desktop-3 mobile-3">
        <h4>{{ settings.footer-2-title }}</h4>
        {% for link in linklists.[settings.footer-2].links %}
        <li>{{ link.title | link_to: link.url }}</li>
        {% endfor %}
      </ul>
      <ul class="desktop-3 mobile-3">
        <h4>{{ settings.footer-3-title }}</h4>
        {% for link in linklists.[settings.footer-3].links %}
        <li>{{ link.title | link_to: link.url }}</li>
        {% endfor %}
      </ul>
      <ul id="footer-right" class="desktop-3 mobile-3">
        <h4>{{ settings.footer-4-title }}</h4>
        <li><a id="inline" href="#subscribe_popup" class="open_popup"><i class="icon-envelope"></i></a></li>
        {% if settings.show_facebook %}<li><a href="{{ settings.facebook_url }}" target="_blank"><i class="icon-facebook"></i></a></li>{% endif %}
        {% if settings.show_twitter %}<li><a href="http://www.twitter.com/{{ settings.twittername }}" target="_blank"><i class="icon-twitter"></i></a></li>{% endif %}
        {% if settings.show_pinterest %}<li><a href="{{ settings.pinterest_url }}" target="_blank"><i class="icon-pinterest"></i></a></li>{% endif %}
        {% if settings.show_tumblr %}<li><a href="{{ settings.tumblr_url }}" target="_blank"><i class="icon-tumblr"></i></a></li>{% endif %}
        {% if settings.show_youtube %}<li><a href="{{ settings.youtube_url }}" target="_blank"><i class="icon-youtube"></i></a></li>{% endif %}
        {% if settings.show_googleplus %}<li><a href="{{ settings.googleplus_url }}" target="_blank"><i class="icon-google-plus"></i></a></li>{% endif %}
        {% if settings.show_instagram %}<li><a href="{{ settings.instagram_url }}" target="_blank"><i class="icon-instagram"></i></a></li>{% endif %}
        {% if settings.show_rss %}<li><a href="{{ shop.url }}/blogs/news.atom" target="_blank"><i class="icon-rss"></i></a></li>{% endif %}
      </ul>    
    </div> 
    
    

  {% if settings.credit %}
  <div class="credit desktop-12">
    <p>{{ powered_by_link }} • <a href="http://www.shopifythemes.net"; target="_blank">Shopify Theme</a> by Underground Media</p>
  </div>
  {% endif %}    

 
  </div>
  

  {% include 'mailing' %}
  
  {% raw %}
  <script id="cartTemplate" type="text/x-handlebars-template">
 
  {{#each items}}
    <div id="cart-item">
      <div class="quick-cart-image">
        <a href="{{ this.url }}" title="{{ this.title }}">
          <img src="{{ this.image }}"  alt="{{ this.title }}" />
  </a>
  </div>
      <div class="quick-cart-details">
        <p>
          <a href="{{ this.url }}">{{ this.title }}</a>
  </p>
        <p>{{ this.price }}</p>          
        <p>
          <a class="remove_item" href="#" data-id="{{ this.id }}">Remove</a>
  </p>
  </div>
  </div>
  {{/each}}   
  <a class="checkout-link" href="/cart">checkout</a>

  </script>
  
  {% endraw %}  
  
  
  <a href="#" class="scrollup"><i class="icon-chevron-up icon-2x"></i></a>
  
  
  <!-- Begin Recently Viewed Products -->
  <script type="text/javascript" charset="utf-8">
    //<![CDATA[
    
    // Including jQuery conditionnally.
    if (typeof jQuery === 'undefined') {
      document.write({{ "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | script_tag | json }});
      document.write('<script type="text/javascript">jQuery.noConflict();<\/script>');
    }
    
    // Including api.jquery.js conditionnally.
    if (typeof Shopify.resizeImage === 'undefined') {
      document.write({{ "api.jquery.js" | shopify_asset_url | script_tag | json }});
    }
    
    //]]>
  </script>
  
  {{ 'http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js'; | script_tag }}
  {{ 'jquery.products.min.js' | asset_url | script_tag }}
  
  {% if template contains 'product' %}
  
  <script type="text/javascript" charset="utf-8">
    //<![CDATA[
    
    Shopify.Products.recordRecentlyViewed();
    
    //]]>
    
    $('input, textarea').placeholder();
    
  </script>
  {% endif %}  
  
</body>
</html>

0 Likes
Tourist
9 0 1

Hi Alex,

I think it has something to do with the following in the index.liquid file.

 

{% if settings.block1 != 'None' %}

{% include settings.block1 %}

{% endif %}

{% if settings.block2 != 'None' %}

{% include settings.block2 %}

{% endif %}

{% if settings.block3 != 'None' %}

{% include settings.block3 %}

{% endif %}

{% if settings.block4 != 'None' %}

{% include settings.block4 %}

{% endif %}

{% if settings.block5 != 'None' %}

{% include settings.block5 %}

{% endif %}

 

The error disappeared when I took out 4 of the 5 blocks so that it reads:

{% if settings.block1 != 'None' %}

{% include settings.block1 %}

{% endif %}

 

However, I'm not sure if this is the correct way to resolve it.

Password to view the site is:

driane

0 Likes
Astronaut
1890 1 393

The problem might be in index.liquid.  Can you paste that code?

Edit: Just saw your last post. I'll take a look at it.

Edit 2: You may have some blank fields in your Theme Settings.  You should have a text field for "block1" ... "block5".  For the blocks that you are not using, type in "None".

0 Likes
Tourist
9 0 1

I am not sure what 'text field' needs to go in:

{% if settings.block1 != 'None' %}
{% include settings.block1 %}
{% endif %}

 

So I just deleted blocks 2 through 5 as I mentioned in my previous post and it seems to work.

Is this okay?  Or am I shooting myself in the foot.

0 Likes
Astronaut
1890 1 393

Personally, I would not delete those blocks unless you are absolutely sure you will not be using them in the future.  Instead, I would go into the Theme Settings ("customize theme") and edit the appropriate options.

One of the features of your theme is "Homepage: Optional Page Content - up to 5 pages ( Simply create a content page in your admin and choose it in theme settings )".  Look for this feature in the Theme Settings.  You should find that there are five text fields related to Homepage Page Content, one for each of the five pages.  I believe some of these text fields are blank.  Type in "None" into the blank text fields.  Unfortunately I can't help much further since I don't have access to this theme.

0 Likes
Tourist
17 0 1

Hi guys,

I am somewhat of a Shopify rookie. I am experiencing the same error - "Liquid error: Could not find asset snippets/.liquid Liquid error: Could not find asset snippets/.liquid Liquid error: Could not find asset snippets/.liquid".

Store: digsapparel-2.myshopify.com

Pass: Truenorth32

Do the 3 errors refer to the fact that in the Theme Settings > Homepage Options I am only using 2 Content Blocks? The other 3 are blank. I see in my code as well, Daniel, that at the end of my index.liquid file it reads:

{% if settings.block1 != 'None' %}
{% include settings.block1 %}
{% endif %}
{% if settings.block2 != 'None' %}
{% include settings.block2 %}
{% endif %}
{% if settings.block3 != 'None' %}
{% include settings.block3 %}
{% endif %}
{% if settings.block4 != 'None' %}
{% include settings.block4 %}
{% endif %}
{% if settings.block5 != 'None' %}
{% include settings.block5 %}
{% endif %}

The error goes away after I delete blocks 3,4 and 5 here, but not sure if thats the way to go?

I am using the Apollo Theme by Underground Media if it helps. Thanks in advance!

0 Likes
Shopify Expert
9807 91 1558

The code...

{% if settings.block3 != 'None' %}

...is checking to see if the value for settings.block3 equals a string of "None". If you're saying that your setting for block3 is actually a blank field then it will try and add that include file (since blank does not equal "None"). Since your field is empty, it will try and include a snippet with an empty name - which makes sense based on the error.

Change the setting value to literally be the word None and see what happens.

 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Tourist
17 0 1

Meaning like so (attached)?

This is what it has been set on. I went ahead and left the original code in index.liquid ({% if settings.block3 != 'None' %}{% include settings.block3 %}...) and setting in my Homepage Options.

The error is still there - unless I am missing something?

 

Thanks Jason!

0 Likes