JS issue: "Uncaught TypeError: Cannot read property 'replace'" only on mobile

Posted in: Newspaper
Post count: 1

site: https://www.worten.es/blog – on desktop it works just fine. But if I change the viewport to an iPhone using the browser’s inspector, I get this JS error in the console. Lazy loading of images stop working, and images are not shown at all, in any page. On desktop, it works perfectly fine, so I’m quite puzzled.

Uncaught TypeError: Cannot read property ‘replace’ of undefined
at HTMLImageElement.<anonymous> (tagdiv_theme.min.js?ver=9.2.2:182)
at Function.each (jquery.js?ver=1.12.4:1)
at a.fn.init.each (jquery.js?ver=1.12.4:1)
at td_retina (tagdiv_theme.min.js?ver=9.2.2:182)
at HTMLDocument.<anonymous> (tagdiv_theme.min.js?ver=9.2.2:171)
at i (jquery.js?ver=1.12.4:1)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:1)
at Function.ready (jquery.js?ver=1.12.4:1)
at HTMLDocument.K (jquery.js?ver=1.12.4:1)

For the time being, I have de-activated lazy loading and modified inicial opacity of images setting it to 1 so they show up without the fade animation it’s supposed to have if that JS worked fine.

How can I fix this JS error? – checked the DOM and the object/property it’s looking for, is available so I don’t really know what else to do.

Post count: 35449

Hi,

Please make sure that this is not a plugin conflict, you can test this by deactivating all plugins, clear all cache and check if this problem is still there.

If there is still a problem, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.