JS Error in console


#1

Hi, we’re seeing a JS error which may prevent tooltips from working on our site.
In
https://tools.lexemo.com/wp-content/themes/sydney-pro-ii/js/main.min.js?ver=20180213
the following error occurs:
Uncaught TypeError: Cannot read property ‘top’ of undefined
at HTMLDocument. (main.min.js?ver=20180213:1)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at Function.holdReady (jquery.js?ver=1.12.4:2)
at Object. (scripts.js?ver=4.9.6:69)
at Object. (jquery.js?ver=1.12.4:2)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Object.e.(/de/legal/teil-1/titel-i/artikel-1/anonymous function) [as resolve] (https://tools.lexemo.com/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:29192)

Any ideas how this can be fixed?

Thanks


#2

Hello there,

What browser are you using? Is it the latest version?

In console tool of my Chrome (latest version) isn’t displaying that error. It’s showing something different.

Regards,
Kharis


#3

Hi Kharis,

thanks for your quick reply - I was away over the weekend, so I didn’t see this sooner.
Yes, I’m using the latest release of Chrome too here. This doesn’t happen on the front page, sorry, I should have checked… If you look here instead:
https://tools.lexemo.com/de/legal/teil-1/titel-i/artikel-1/
You should see that error.

Kind regards,
Olaf


#4

Hello Olaf,

It looks like there’s script conflict with certain plugin. What plugin do you use to create tabbed content in that page? Is there any public link to download it?

Regards,
Kharis


#5

Hi Kharis,

we’re using WonderPlugin Tabs for the tab groups:
https://www.wonderplugin.com/wordpress-tabs/
For the One Page App navigation we use a custom plugin which is utilising the WordPress web api to retrieve the content.

Thanks,
Olaf


#6

Hello Olaf,

I just did quick setup with default settings and found no JS error. It looks like your tab content made with some special configuration that is not easy to reproduce. For efficiency reason, would you mind allowing me to access your site admin area? Share the working login credentials privately to my email at kharisblank@gmail.com. Mention the link to this topic to signal it’s a followup from this conversation.

Regards,
Kharis