Porto Theme - Product Images not loading


Good day. There is an installation Magento 2.2.5. Theme - Porto. On the product page don’t load the image. Error :

Uncaught SyntaxError: Unexpected token , in JSON at position 2043
at JSON.parse ()
at getNodeData (scripts.js:87)
at Array.map ()
at scripts.js:117
at HTMLDocument.apply (main.js:70)
at fire (jquery.js:3232)
at Object.add [as done] (jquery.js:3291)
at jQuery.fn.init.jQuery.fn.ready (jquery.js:3542)
at jQuery.fn.init (jquery.js:2967)
at new jQuery.fn.init (jquery-migrate.js:225).

How to fix it ?



This error message doesn’t really tell us much.

  • Is it only the Product Image that doesn’t display?
  • Is this displayed on the page or in the Inspect Element Console?

Also, check Porto for patches. There was definitely an issue somewhere with 2.2.5 and images. I just can’t remember what it was exactly. But I’m sure there was a patch because I also use Porto.



Thanks. Problem solved - applied the wrong patch.

1 Like