I'm seeing a "Liquid error: Expected handle to be a String but got ProductDrop" error as soon as I install Locksmith

This error happens on the "Minimal" theme, and occurs because of the reuse of a variable name. 

First off, we can fix this on our end, so please get ahold of us if you would like us to make the edit! That being said, here are the steps to fix it if you need an immediate update.

Start by opening the sections/featured-collection.liquid file in the theme editor and making the following replacements:

Line 1

Before:

{% assign featured = section.settings.featured_collection %}

After:

{% assign featured_collection = section.settings.featured_collection %}

Line 28

Before:

{% for product in collections[featured].products limit: total_products %}

After:

{% for product in collections[featured_collection].products limit: total_products %}

Line 30

Before:

{%- include 'locksmith-variables', locksmith_scope: 'subject', locksmith_subject: product, locksmith_subject_parent: collections[featured] %} ...

After:

{%- include 'locksmith-variables', locksmith_scope: 'subject', locksmith_subject: product, locksmith_subject_parent: collections[featured_collection] %} ...


So, as you can see, you'll just be replacing "featured", with "featured_collection" in a couple places. This will clear up the ambiguity on what the "featured" holds. 

Note: If your theme has been custom edited, the above line number may not be exact.

As always, do contact us if you aren't feeling up to this!  We are happy to do this for you. You can get in touch with the message button in the lower right corner.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.