Each dictionary in the list "icons" should contain a non-empty UTF8 string field "type"

Viewed 5160

While analyzing the html of the product on my website for errors, I found this peculiar error repeated 6 times: "Each dictionary in the list "icons" should contain a non-empty UTF8 string field "type"."

Link of the page: https://www.fermento24.com/collections/vini-in-offerta-questo-mese/products/terra-di-lavoro-igp-2017-galard?variant=32793469780039

I tried to figure out where this problem comes from, but Google isn't really clean in addressing where this is coming from, as it brings me to the first string of the site "<!doctype html>"

Anyone can help me figure out this problem?

Edit: screenshot here: i.imgur.com/y2gjnIr.png

to see the error, as stated by JosefZ: go to the site, Right click => Inspect (or Ctrl+Shift+I).

1 Answers

Seems like you need to pass an additional key in your i18n object, i tracked down the issue to this function (i have no access to the source code so here is the formatted source file in your site)

enter image description here

And your dictionary object looks like this:

enter image description here

So you need to add a key to the objects inside actions called "type" of the type "string"

icons: {
  submenu: "ui-icon-caret-1-e",
  type: "icon"
}

Related