Title: Javascript Error in Mobile Breaking Dropdown Menu
Last modified: August 21, 2016

---

# Javascript Error in Mobile Breaking Dropdown Menu

 *  Resolved [TxShan](https://wordpress.org/support/users/txshan/)
 * (@txshan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/)
 * 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](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 ](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/www.jumamusic.com ?output_format=md)
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Jeremy Blum](https://wordpress.org/support/users/sciguy/)
 * (@sciguy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983305)
 * This same problem just broke my site as well.
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983454)
 * 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.
 *  Thread Starter [TxShan](https://wordpress.org/support/users/txshan/)
 * (@txshan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983455)
 * 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.
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983456)
 * 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](http://wordpress.org/support/topic/conflict-with-jetpack-5?replies=1)
 *  Thread Starter [TxShan](https://wordpress.org/support/users/txshan/)
 * (@txshan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983458)
 * 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!
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983459)
 * 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!
 *  Thread Starter [TxShan](https://wordpress.org/support/users/txshan/)
 * (@txshan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983460)
 * 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…
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983461)
 * 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.
 *  Thread Starter [TxShan](https://wordpress.org/support/users/txshan/)
 * (@txshan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983462)
 * Ok so I reinstalled Jetpack and that seems to have fixed the menu. So weird. 
   Thank you again.
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983463)
 * Hmm, ok, thanks for letting me know!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Javascript Error in Mobile Breaking Dropdown Menu’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 10 replies
 * 3 participants
 * Last reply from: [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-in-mobile-breaking-dropdown-menu/#post-3983463)
 * Status: resolved