Locales JSON checks preventing theme updates

Hey @Liam-Shopify Sorry to @ you on here but we have no other way to communicate now.

Did Shopify recently add some form of checking to the locales JSON files during updates?
We have seen a lot of merchants over the past few weeks unable to update themes due to some invalid JSON in older theme versions, even when this is rectified manually the update still fails with JSON errors.

Big problem as merchants can not update some themes right now.

Liam is currently OOO, and please don’t tag Shopify staff members that haven’t already engaged in a topic, this is outlined in the Code of Conduct.

Sorry Luke, I wasn’t aware of that but we have some pretty desperate merchants looking for answers right now so trying to get on top of this one.

Hi @Richard_Bairstow, can you tell us more about what errors you are seeing? If you can share the theme ID of an affected theme in a shop, that would be helpful as well.

Hi @Paige-Shopify

Sure theme ID: 125275930688
Store: storytellerstitchery

Can’t update the live theme as they are seeing the following error:

An error occured when copying the edits to the new updated theme.

  • invalid escape character in string: ‘\).",’ at line 163 column 175

We know this is in a locales JSON file and have fixed it yet the update still will not work.

To add to this the merchant does have a ticket for this with support that has yet to yield any results: 65671775

Hi @Richard_Bairstow ,

Thanks for flagging this, and sorry for the delayed response.

I’ve looked into this and discovered a regression in JSON parsing for themes. Escape sequences that were previously accepted in JSON files are now failing validation and blocking updates. I’ve raised this with the relevant team and will update here when there’s movement on a fix.

Thanks @Paige-Shopify thats good to hear, we have quite a lot of merchants now that have been having problems so at least we can update them with something for now.