Liquid Error: Liquid error: Error in tag 'section' - 'map' is not a valid section type - THALIATHEME

Topic summary

Liquid error “Error in tag ‘section’ - ‘map’ is not a valid section type” on the Contact page in the THALIA theme. Liquid is Shopify’s templating language for themes.

Cause: theme.liquid (and template.liquid) contained {% section ‘map’ %} while no map.liquid existed in the Sections folder, triggering the error.

Fix: remove the invalid section reference or comment it out (e.g., wrap with {% comment %} … {% endcomment %}). The user deleted the references in theme.liquid and template.liquid, and the page worked.

Best practices noted:

  • Duplicate the theme before editing to preserve a fallback.
  • Theme updates can override custom edits.
  • Consider Shopify’s Expert Marketplace for custom development.
  • Roll back .liquid files to a previous timestamp if needed.

Outcome: issue resolved; Contact page functioning again. Status: closed with no outstanding questions.

Summarized with AI on February 4. AI used: gpt-5.

Hi everyone!

Is there anyone that can help with the following error Liquid Error: Liquid error: Error in tag ‘section’ - ‘map’ is not a valid section type ?

Someone suggested me to delete maps liquid because toggling off"show maps" I had a blank page but now it is a disaster because I can’t remove this error from Contacts page.

Thank you in advance :slightly_smiling_face:

Hey @VeraCoxBrand ,

In theme.liquid you might have {% section ‘map’ %} but there is no map.liquid file under sections in theme.

You have to delete the line {% section ‘map’ %} or comment out like this:

{% comment %}

{% section ‘map’ %}

{% endcomment %}

Important Coding Reminders:

  • If you make changes to the original code and save the changes, we always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.

  • If you make changes to the original code in a theme and update your theme to a newer version in the future it will override past changes.

  • If you need custom changes but would prefer the help of a developer we recommend Shopify’s own Expert Marketplace.

  • If you’ve changed theme files and need to revert them, you can roll back .liquid files individually to a time and date before you made the changes.

Let me know how you get on!

1 Like

Hi Moira!

Thank you for your useful solution.

I have deleted the comment mentioned above from theme.liquid and from template.liquid.

It worked.

Have a nice one!

Great to hear @VeraCoxBrand ! Don’t hesitate to reach back out if you require any further assistance as you continue to work on your store.

All the best,