“Failed to Load Page”

Keeveng
New Member
1 0 0

EAC162A4-A761-4E88-BD7C-F13987C557A2.png

 Every time I go to edit my theme —-> then go to edit a specific product within my theme I get this error. It only started happening today, I’m pretty sure this is due to last night I made a lot of modifications and might have messed up the code but I have no idea how to fix it or even how to troubleshoot this code. Any help would be appreciated

0 Likes
Moira
Shopify Staff
Shopify Staff
224 39 38

Hey, @Keeveng!

This is Moira from the Social Care team at Shopify. Thanks for posting!

I understand you have made some theme modifications that have caused a liquid error on your storefront. You've definitely posted in the right place! I'm more than happy to look into this for you. 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.

In case you have errors in your Liquid code, the first thing to do is to read the error documentation carefully to determine which file and on which line the error occurred. If you look at the “Failed to Load Page” message in the image above, you are unable to detect where the error occurred. In other words, some errors are not very expressive. In these cases, it is up to you to remember the files you modified when you were making your changes. If you feel lost, make sure to take a screenshot of the information provided on the "view documentation" page. Then post it here in the Shopify community where experts, are always ready to help you.

If you can identify the file or line where the error occurred, we can move on to the next steps:

  • 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.

21-08-2guu0-iosej

  • Click Older versions next to the file name

21-08-43dst-kdq11

  • 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-08-yiuqp-sgelz

  • 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 the green save button!

Note: Although the method applied here is effective in undoing your changes, the best way to protect yourself is to always back up your theme before making any changes. 

Tip: As you continue to customize your theme, it’s a good idea to make design and content choices that help to keep your online store accessible. I suggest taking a look at this guide for tips on providing an inclusive experience for your customers.

If you have any questions please feel free to thread those below.

Cheers!

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