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

Solved

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

VeraCoxBrand
Tourist
5 0 2

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 🙂

Accepted Solution (1)

Moira
Shopify Staff (Retired)
2118 231 340

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

View solution in original post

Replies 3 (3)

Moira
Shopify Staff (Retired)
2118 231 340

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

VeraCoxBrand
Tourist
5 0 2

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!

Moira
Shopify Staff (Retired)
2118 231 340

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