Jquery and tagdiv_theme.min.js errors on mobile view

Posted in: Newspaper
Post count: 2

We’ve been experiencing JS errors that makes the theme unusable on mobile devices – regardless of what plugins (outside of the core tagdiv plugins required) this issue keeps happening which causes images to fail to be displayed, and the hamburger menu to become unresponsive. We’ve tested for the last 24 hours with various fixes, reloading the theme, removing demo / themes, upgrading and patching. Nothing seems to work. Any help would be greatly appreciated.

note: this issue and error only occurs on mobile devices / views.


tagdiv_theme.min.js?ver=8.8.1:175 Uncaught TypeError: Cannot read property 'replace' of undefined
at HTMLImageElement.<anonymous> (tagdiv_theme.min.js?ver=8.8.1:175)
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=8.8.1:175)
at HTMLDocument.<anonymous> (tagdiv_theme.min.js?ver=8.8.1:164)
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)
(anonymous) @ tagdiv_theme.min.js?ver=8.8.1:175
each @ jquery.js?ver=1.12.4:1
each @ jquery.js?ver=1.12.4:1
td_retina @ tagdiv_theme.min.js?ver=8.8.1:175
(anonymous) @ tagdiv_theme.min.js?ver=8.8.1:164
i @ jquery.js?ver=1.12.4:1
fireWith @ jquery.js?ver=1.12.4:1
ready @ jquery.js?ver=1.12.4:1
K @ jquery.js?ver=1.12.4:1
jquery.js?ver=1.12.4:1 Uncaught Error: Syntax error, unrecognized expression: .
at Function.fa.error (jquery.js?ver=1.12.4:1)
at fa.tokenize (jquery.js?ver=1.12.4:1)
at fa.compile (jquery.js?ver=1.12.4:1)
at jquery.js?ver=1.12.4:1
at PSEUDO (jquery.js?ver=1.12.4:1)
at wa (jquery.js?ver=1.12.4:1)
at fa.compile (jquery.js?ver=1.12.4:1)
at fa.select (jquery.js?ver=1.12.4:1)
at fa (jquery.js?ver=1.12.4:1)
at Function.fa.matches (jquery.js?ver=1.12.4:1)

Post count: 20688

Hi,

Could you provide a link to the website so we can take a look?

Do you use the mobile theme plugin? Does the error display at all times if you check in the browser inspector console?

Seems like a conflict with a code entered somewhere in the theme files or theme panel, or loaded by a plugin.

Are you absolutely sure that you deactivated all plugins (except theme plugins), all code added in theme files and in theme panel, deactivated the child theme if used, cleared cache or CDN if used. Remove any theme modifications you might have made.

Post count: 2

Hi Simon –

Yes I’ll send along the link, and yes we’ve tested with plugins disabled.

https://gayety.co/

We did have success with the mobile theme – however client doesn’t like the look and feel of the mobile theme and would rather use the main theme responsively.

The issue only appears when the site is on mobile / testing mobile via chrome. We were able to disable the first issue by turning off Lazy Loading of images (though i think this is just because it removes JS from the images)

Currently on mobile, the hamburger menu doesn’t load.

Post count: 20688

Hi,

I also see there are some errors with a certain kiosked js loader, from what I can find online it is related to ads
https://www.screencast.com/t/08io2t6Z
Try as a test to remove temporarily the ads in the theme panel, see if the issue is solved.
There were a few cases before like this, scripts loaded in the theme ad spots caused issues with the theme.

Post count: 2

Hello,
I am having the same issue in my site https://duunitori.fi/tyoelama/paras-tyopaikkailmoitus/.
It happens also at the parent site https://duunitori.fi/tyoelama.
What should I do to fix this error?
Thanks

Post count: 20688

Hi,


@sparklegemini_0408
Seems the mobile menu is not accessible in both websites, but there are no errors which would indicate a starting point to investigate.

You could begin with the basic suggestions, which usually work. Investigate all your plugins, all and any kind of code added in the theme panel or theme files (test without it), and also child themes.

Thanks

Post count: 2

Hi,
Thanks, I finally fix the error. For some reason, td_retina() function can not find attr ‘src’ of td-retina class objects in mobile mode. I suppose that’s because of lazy load images from some plugins but can’t conclude it since I disabled all other plugins to test already.
My solution is to assign correct ‘src’ that td_retina() is looking for.

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