How to resolve a liquid error during customer login?

Hello,

I’ve been receiving some customer issues with the following liquid error when trying to login:

Liquid Error: Could not find asset /snippets/_default-template.liquid

I went in to the theme code and as expected, there is no such liquid file in the snippets folder. I don’t believe the login page was customized when my theme was made. Is there a way to circumvent this asset and allow my users to log in? There is no custom functionality on the accounts page.

Thanks!

Hi @ichoai ,

Please send your site and if your site is password protected, please send me the password. I will check it.

https://stribe.dental

Hi @ichoai ,

I tested and it works fine, can you send me screenshot of error message.

It appears to only happen to customers that have previously made a purchase… very odd

Hi @ichoai ,

Does it happen when the customer goes to the home page, or the login page?

It happens after they enter their login credentials and click login

Hi @ichoai ,

Please send me the code of customers/account.liquid file, I will check it.

{%- assign headerSnippetPath = "header-pageabout" -%}{%- assign wfPage = "628a906caab2df3691c86068" -%}{%- assign bodyClasses = "" -%}
  

    {%- section 'black-navbar' -%}
    

      
Account

      {%- if customer -%}
        {%- if customer -%}

          Log out
        
{%- endif -%}
        
          
Order history

          {%- unless customer.orders.size != 0 -%}You haven't placed any orders yet.
{%- endunless -%}
          {%- if customer.orders.size != 0 -%}{%- for order in customer.orders -%}
            {{ order.name }}
            
{{ order.created_at | date: "%a, %b %d, %y" }}

            {{ order.total_price | money }}

            {{ order.fulfillment_status_label }}

          
{%- endfor -%}{%- endif -%}
        

        
          
Account details

          
            
{{ customer.email }}

          

          
            
{{ customer.default_address | format_address }}

          

          
            {%- if customer -%}

              Edit Address
            
{%- endif -%}
          

        

      
{%- endif -%}
      {%- unless customer -%}You are not logged in log in
      
{%- endunless -%}
    

    {%- render 'black-footer' -%}
  

  
  
  

{{ 'udesly-shopify.min.js' | asset_url | script_tag }}

Hi @ichoai ,

Please go to backup-layout.liquid file and change all code:

Hope it helps!

1 Like