Error: "expected Array to be a Hash: properties"

Topic summary

Error appears when adding a product to cart in a Shopify theme after minor graphic code changes. The author has run a diff script and can provide a text file showing differences from the latest theme version.

Key term context: “Array” (an ordered list) vs “Hash” (a key–value map/object). The error suggests the code expects a Hash for “properties” but is receiving an Array.

Requested information: A helper asked for the store URL and the diff text file to review and diagnose the issue.

Status: Unresolved. Next step is for the author to share the store URL and the differences file. Attachments (the diff file) are central to progressing the investigation.

Summarized with AI on December 13. AI used: gpt-5.

Hello to everyone… i’m facing this issue when i try to add a product on cart. I made some little graphic code changes but i don’t think that it is the problem. I also did a diff script and i have the differences between my actual code and the latest updated theme im using.

Anyone can help?
If needed i will send the txt file with the differences

Hi @pontevecchio

Please add your store’s url and also share the txt file with the differences so I can take a look.

here you can find the file because it does not allow me to paste it here (there are in this code also some differences due to the updates): GitHub - OlsiXhindoli/differences-theme

Share a preview password?

here it is: Ponte-Vecchio2000!

“Special instructions” block settings “Property name” must not be empty.
This one:

thank you very much! now it is working

1 Like