Fix Liquid rendering errors

Undefined variable

The name is misspelled, unavailable on this route or nested differently from the documented object. Check the exact line and use the Liquid object reference. Guard legitimately optional data with an if condition.

Unknown filter or tag

Use only the supported Liquid reference. Browser behavior belongs in theme/assets/theme.ts; do not replace a missing Liquid feature with a script tag.

Invalid schema JSON

Check commas, quotes and brackets between {% schema %} and {% endschema %}. A file accepts one complete schema block.

Invalid setting

Confirm its type, unique safe ID, label and default. Ranges require valid minimum, maximum and step. Options need unique text values and a matching default.

Block tree or lock error

Confirm every child type is allowed by its parent and stays within the declared maximum. Preserve installed static block IDs, types and all four locks.

Unsafe HTML

Remove the unsupported tag, inline event handler, private runtime attribute or unsafe URL. Use safe Liquid output and the public SDK for behavior.