Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 🙂
Solved! Go to the solution
This is an accepted solution.
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!
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
This is an accepted solution.
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!
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
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,
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025