POP UP - TypeError: Cannot read property 'top' of undefined

Hi

I have Chrome 50.0.2661.94 m and when I use POP UP plugin, the console show me an error message if I scrolling on the page.
public.min.js:4 Uncaught TypeError: Cannot read property 'top' of undefined

However I use this lightweight and nice smooth scroll plugin:
https://wordpress.org/plugins/smooth-scroll/

Can you solve this?

http://footballheroes.corewebstudio.net/ - live preview

Best regards
Peter

  • Rupok
    • Support Ninja

    Hi Peter

    Hope you had a wonderful day.

    I went to http://footballheroes.corewebstudio.net/ but it's showing me this:

    The site you were looking for, http://footballheroes.corewebstudio.net/, does not exist

    Please check the attached screenshot for reference.

    You said you use Smooth Scroll and PopUp plugin. Do you think it's a conflict between these two plugins? Can you confirm the issue shows everytime you enable our Popup plugin and goes away when you disable PopUp Pro?

    I use sometimes TOP: -40px on the page

    Can you provide details about where you use Top: -40px? In your CSS? JS? On this plugin configuration?

    I'm looking forward to hear from you and resolve this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Rupok
    • Support Ninja

    Hi Peter

    Hope you had a wonderful day.

    Thanks for sharing the URL. I went to your site, but I found neither any Popup appearing nor any error on console. I assume, you have disabled PopUp plugin on your site but I need to see the issue live on your site to test the issue further. I didn't even find "public.min.js" file in your source code.

    However, this has nothing to do with your CSS Top property, rather in "public.min.js" file, there is a top property defined for any selector which is not available on your page. Can you check this StackOverflow answer here? http://stackoverflow.com/a/29534924 I think it will help.

    Did you try disabling Smooth Scroll plugin and see if PopUp Pro is still giving that error or not? Can you please ask Smooth Scroll plugin developer regarding this? Because in a fresh WordPress installation, I didn't face any error like this. So chances are high, there is something on that plugin which is causing this.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.