Welcome to the Liquify Community

Updated 6 months ago

Theme redirects to 404 on any pages

At a glance

A community member's team member is working on editing a template, and now it redirects to a 404 page when uploaded as a theme. This occurs on all pages. The community member has checked the build against the template, and the attributes and custom code seem okay. Another community member suggests that the issue might be a Liquid error detected by Shopify, and recommends pasting the code into the Shopify editor or checking the GitHub logs.

After some back-and-forth, the community members discover that the converted theme is missing the index.json file, which is causing a validation error. They work together to manually recreate the file, which helps resolve the issue. Ultimately, the root cause is found to be a "combo class" in the main-wrapper element, which was causing the failure.

Useful resources
My team member is working on editing a template we had and now it redirects to 404 when uploading as a theme. This occurs on all pages (ex. home, product pages) ...

Can someone point me to what's missing/wrong with it? I've attached the live link below. I've checked this build vs. a template and all attributes seem and custom code seem to be okay ...

Any leads? Thanks in advance!

Read-only: https://preview.webflow.com/preview/simple-dog?utm_medium=preview_link&utm_source=designer&utm_content=simple-dog&preview=e67688d45e30d1e3afda35be513a2c03&locale=en&workflow=preview
j
C
9 comments
That mostly happens with Shopify detects a liquid error on the page. I would recommend to paste the code in to the Shopify editor to check what’s wrong.
Or the GitHub logs in Shopify
Checking, thanks Jonas!
I would recommend to paste the code in to the Shopify editor to check what’s wrong.

Regarding this, which exact code should I paste?
@jonas.halbstark I got the error message:

Error: templates/index.json, Validation failed: wrapper: cannot exceed 1 HTML element, wrapper: must be a valid HTML wrapper

Any leads on what could this be?
It seems that the converted them doesn't have the index.json. Maybe we've deleted something that generates it?
wher do you check if the index.json exists? Do you work with github?
Hi Jonas,

I checked it here (see attached). I've manually recreated it and that seems to help.

And yes, I do work in Github
Attachment
CleanShot_2024-09-05_at_20.03.342x.png
Hi Jonas,

I was able to figure it out. There was a combo class in the main-wrapper element which caused it to fail.

Couldn't have figured this out without the tip about the logs. Thank you!
Ah okay. This is something for our bug list. Combo Calsses should be possible 🙂 Thanks @Clyde
Add a reply
Sign up and join the conversation on Discord