Why is an error message appearing in my store's footer?

Hi,

Does anyone know why this error message is occurring in the footer of my store?

Shows up on all the pages.

(window.shopUrl = ‘https://.myshopify.com’; window.routes = { cart_add_url: ‘/cart/add’, cart_change_url: ‘/cart/change’, cart_update_url: ‘/cart/update’, cart_url: ‘/cart’, predictive_search_url: ‘/search/suggest’, }; window.cartStrings = { error: Ett fel uppstod när du uppdaterade din varukorg. Försök igen., quantityError: Du kan endast lägga till [quantity] av denna artikel i din varukorg., }; window.variantStrings = { addToCart: Lägg i varukorgen, soldOut: Slutsåld, unavailable: Ej tillgänglig, unavailable_with_option: [value] – inte tillgängligt, }; window.quickOrderListStrings = { itemsAdded: [quantity] artiklar lades till, itemAdded: [quantity] artikel lades till, itemsRemoved: [quantity] artiklar togs bort, itemRemoved: [quantity] artikel togs bort, viewCart: Visa varukorg, each: [money]/st., }; window.accessibilityStrings = { imageAvailable: Bilden [index] är nu tillgänglig i gallerivisning, shareSuccess: Länken kopierades till urklipp, pauseSlideshow: Pausa bildspelet, playSlideshow: Spela bildspel, recipientFormExpanded: Mottagarformulär för presentkort öppnat, recipientFormCollapsed: Mottagarformulär för presentkort stängt, }; } )

Hi, @sxmmar !

Welcome to Shopify Community.

Thank you for sharing your question with our network. It appears as though there may be misplaced or missing closing tag that is causing this code to appear in your store as text across the website, as opposed to what it was coded for.

The quickest way to undo this change would be to revert any code changes you have made by switching back to an older version when this issue was not present. You can find this by going to:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, click the button to open the actions menu, and then click Edit code.
  3. Under the Templates header, click one of the .liquid files that you have edited recently. In your case it is most likely the theme.liquid or a theme-wide file.
  4. Click Current version under the .liquid file name.
  5. Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.
  6. Click Preview store to verify that the error was fixed.

At that point, you can properly add the custom code again with correct open and end tags. Additionally, feel free to share your store URL with our community here for their suggestions on the displaced tag/s.

Warm regards,