Invalid currency code
-
I’m getting a “Invalid ISO 4217 currency code” error from Google Search console. It doesn’t seem to like £ symbols.
There is some general weirdness going on though. This is showing £ on the page but doesn’t have a currency set in the block.
https://thegothcalendar.co.uk/event/resurrection-scarborough-live-the-danse-society-the-glass-house-museum-westenra/but in the metadata:
“offers”:{“@type”:”Offer”,”price”:”10″,”priceCurrency”:”USD”.
presumably it defaulted to $ even though it doesn’t show.This one generates the error in Google:
https://thegothcalendar.co.uk/event/anti-fest-a-protest-gig-13x-holy-braille-syd-31-arch-femmesis-chaos-lol-kult-303/Shows as £ on the page and is set as much in the block. In the metadata:
{“@type”:”Offer”,”price”:”2″,”priceCurrency”:”\u00a3″Looks like the encoding from the block for the meta data is wrong?
-
I am getting the same error in google search console, but for “priceCurrency”:”$” in one of our The Events Calendar events.
I am also getting this error on all my WordPress pages using the Events Calendar Pro widget. I don’t even think we use pricing.
-
This reply was modified 4 years, 3 months ago by
ponderconsulting.
Same here with The Events Calendar.
Same for me, showing up with multiple client sites; both TEC and Pro versions.
I submitted a support ticket so hopefully we hear something soon. It is just a warning, but I like to mitigate these and stay on top of them.
I too got this error for my site with The Events Calendar.
Will follow here what happens.
Thank you, @ponderconsulting. Please let us know if you get a response 🙂-
This reply was modified 4 years, 3 months ago by
nielsty.
I definitely will.
Hi there @delanthear,
Thanks for reaching out and bringing this to our notice.
We’re investigating the issue to see what’s causing this warning but our initial findings point to recent changes to how Google Search Console identifies structured data for events. Specifically, our plugins use currency symbols ($ and £) instead of the 3-letter ISO 4217 currency code (USD and GBP) which is the reason for the warning.
Our development team is already aware of the issue and looking at what needs to be done to resolve things.
Let me know if you have any other questions about this.
Best regards,
Marho
I found the solution by testing the snippets:
https://search.google.com/test/rich-results/result/r%2Fevents?id=oZBpjDl0X4HgEjCBYFOgkQ
It’s in the Offers >> priceCurrency is listed as $ when “Price currency always has to be specified in the in 3-letter ISO 4217 format (e.g. ‘USD’, ‘GBP’, ‘EUR’), and the currency should meet the language and currency requirements for your target country.”
I too am seeing this error in Google Search Console. Most of our events are free. I see where I can change the default currency symbol, but no place to enter an ISO 4217 format.
In addition to this, I’m also seeing the following errors:
Missing field “eventStatus” (optional)
Missing field “performer” (optional)Nothing appears broken on our website, but I don’t like to see warnings from Google.
@smithcreate Those are optional warnings so you don’t need to worry about them at all. Obviously would good for them to be populated if The Events Calendar has the data.
I’ve spotted another issue with location. I’ve an online only event, but I don’t seem to be able to set the Location so it doesn’t error. Looking at the docs, you can set something to be virtual: https://developers.google.com/search/docs/advanced/structured-data/event
Can we get this added into the plugin so we don’t end up breaking stuff in Google?
@delanthear There is a premium add-on for Virtual Events:
https://theeventscalendar.com/products/wordpress-virtual-events/
@ponderconsulting yeah, I know that, but I’d hope the free version would work without creating Google Search errors. It just needs a toggle for Virtual and it just sets the location appropriately. Then it will index properly.
I’m also getting this error, but only for a page where I have the widget being used, not the calendar or event listing pages.
As a follow up and clarification, for me this error is caused in the JSON output of the Event List block.
-
This reply was modified 4 years, 3 months ago by
The topic ‘Invalid currency code’ is closed to new replies.