How can I fix a syntax error in my theme code?

Solved

How can I fix a syntax error in my theme code?

Zatura
Tourist
15 0 5

Hello experts,

 

This weird error message is showing up in my theme code. I'm not a technical person. Please help me sort this out.

 

This error is showing at the end of the code. It is also showing when I try to format the liquid code. Please help me!

Zatura_0-1704221745426.png

 

Zatura_1-1704221754284.png

 

Accepted Solution (1)

PaulNewton
Shopify Partner
6722 610 1433

This is an accepted solution.

Generally means there's some bad HTML somewhere else in the file such as an unclosed HTML tag, etc

If you've customized that file try the rollback for previous versions

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-b... 

 

If you have theme backups try those.

 

If you need this debugged and fixed then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Good Luck

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Replies 2 (2)

SomeUsernameHe
Shopify Partner
495 55 101

Delete the white spaces after </html> if not, it might be in the razor-pay-magiccheckout snippet

 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee

PaulNewton
Shopify Partner
6722 610 1433

This is an accepted solution.

Generally means there's some bad HTML somewhere else in the file such as an unclosed HTML tag, etc

If you've customized that file try the rollback for previous versions

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-b... 

 

If you have theme backups try those.

 

If you need this debugged and fixed then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Good Luck

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org