WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Javascript Error in Mobile Breaking Dropdown Menu (11 posts)

  1. TxShan
    Member
    Posted 11 months ago #

    I can't access the menu on my mobile site on Android or iPhone because there's a Javascript error since the most recent update.

    Uncaught TypeError: Cannot read property 'style' of null @
    http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201331

    This is the broken bit on line 7:
    else if(typeof document.body.style.webkitMarquee==='string'){func=webkit;}

    Please advise.

    http://www.jumamusic.com

    http://wordpress.org/plugins/jetpack/

  2. Jeremy Blum
    Member
    Posted 11 months ago #

    This same problem just broke my site as well.

  3. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Hello,

    I see the error on your site, but I don't have this error on my own site. Can you try turning off all of your plugins temporarily to see if this error might be caused by a plugin conflict? Let me know once you've done so and I ll have a look.

  4. TxShan
    Member
    Posted 11 months ago #

    Ok so it looks like the NextGen Gallery is now conflicting. It wasn't before the update. However, it is deactivated, and the dropdown menu still is not functioning in mobile. As you can imagine, I'm hoping to get this resolved ASAP as the site is virtually unusable in mobile.

  5. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Hi TxShan,

    I looked at your site again, and I don't see the javascript error anymore. I also looked on my iPhone, and your site looks fine, but the menu doesn't work. Can you try with the default TwentyEleven theme to see if the menu works with it?

    Also, I activated NextGen on my test site, and I was able to reproduce the error. I have contacted them here to inform them, we'll see what they say about it:

    http://wordpress.org/support/topic/conflict-with-jetpack-5?replies=1

  6. TxShan
    Member
    Posted 11 months ago #

    I switched to the TwentyEleven theme, and the menu is still broken. Let me know once you test so that I can switch back :)

    Thank you for looking into this, I appreciate your time!

  7. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Ok, I've had a look!

    Can you describe to me how your menu is set? Is it in the Appearance -> Menus page, or is it done elsewhere? If it is in the Appearance - Menus page, it should work fine in the Jetpack mobile theme. Let me know!

  8. TxShan
    Member
    Posted 11 months ago #

    The menu is set in Appearance -> Menus. It is the only menu and is also set as the primary.

    I'm not sure what else to do? The menu is not recognizing clicks at all. I used console.log to log the clicks in the small-menu.js file, and it doesn't recognize the clicks. I have also tried adjusting the z-index, as another user in the forum had, but that didn't work either.

    I would revert to the previous version of Jetpack, except that the Twitter widget stopped updating...

  9. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    I'm stymied by this myself, because I see no reason why it wouldn't work.

    So, let's get back to basics, then. Turn off all plugins except for Jetpack, stay on a default theme, and make sure everything (Jetpack and WordPress) is up to date. You may want to even reinstall Jetpack, just in case there was file corruption or something. Then, check if the menu works once you've done all that, and let me know.

  10. TxShan
    Member
    Posted 11 months ago #

    Ok so I reinstalled Jetpack and that seems to have fixed the menu. So weird. Thank you again.

  11. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Hmm, ok, thanks for letting me know!

Reply

You must log in to post.

About this Plugin

About this Topic