What's your biggest current challenge? Have your say in Community Polls along the right column.

How can I fix a Liquid error in my collection on Shopify?

How can I fix a Liquid error in my collection on Shopify?

AlexSuli
Visitor
1 0 0

Hi. I'm getting this error in one of my collections and it is not displaying my products:

"Liquid error (sections/collection-template.liquid line 157): internal"

Can anyone help me solve it? Thanks! Alex.

Reply 1 (1)

Moira
Shopify Staff (Retired)
2118 231 337

Hey @AlexSuli,

 

Welcome to the Shopify Community!

 

Have you made any recent adjustments to your collections code? The error suggests that there is an error on line 157 of your collection-template.liquid.

 

Shopify knows that errors are just human nature, so we have provided a way to undo changes made to a code file in your theme over time. Rather than trying to re-implement your missing code, my first suggestion is to try rolling back your .liquid files individually to a time and date before you made the changes.

 

  • From your Shopify admin, go to Online Store > Themes.

  • Find the theme you want to edit, and then click Actions > Edit code.

  • Click on one of the files under the relevant folder in which you want to undo changes.

  • Click Older versions next to the file name

21-10-4f7cd-5bw8x

  • Click the drop-down menu to select an older version. Clicking a date stamp will roll the code back to that saved version. If you remember when you made the changes, you can return to the state of the file before your changes.

21-10-3umra-1c9af

  • If you remember when you made the changes, you can return to the state of the file before your changes. Finally, don't forget to hit that green save button!

 

TIP: We always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.

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