Title: Mobile Accordion Error
Last modified: February 24, 2022

---

# Mobile Accordion Error

 *  Resolved [simplemachines](https://wordpress.org/support/users/simplemachines/)
 * (@simplemachines)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/mobile-accordion-error/)
 * Hi there,
 * When selecting Tabs Mode on Small Screen > Accordion, we receive this error and
   the tabs do no switch:
 * collapse.min.js?ver=2.1.5:6
 *     ```
       Uncaught TypeError: Cannot read properties of null (reading 'querySelectorAll')
           at SP_Collapse_Pro._getParent (collapse.min.js?ver=2.1.5:6:9901)
           at new SP_Collapse_Pro (collapse.min.js?ver=2.1.5:6:5814)
           at HTMLDivElement.<anonymous> (collapse.min.js?ver=2.1.5:6:10817)
           at Function.each (jquery.min.js?ver=3.6.0:2:3003)
           at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
           at s.fn.init._jQueryInterface [as collapse] (collapse.min.js?ver=2.1.5:6:10583)
           at HTMLDivElement.<anonymous> (collapse.min.js?ver=2.1.5:6:11564)
           at Function.each (jquery.min.js?ver=3.6.0:2:3003)
           at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
           at HTMLLabelElement.<anonymous> (collapse.min.js?ver=2.1.5:6:11434)
       _getParent @ collapse.min.js?ver=2.1.5:6
       SP_Collapse_Pro @ collapse.min.js?ver=2.1.5:6
       (anonymous) @ collapse.min.js?ver=2.1.5:6
       each @ jquery.min.js?ver=3.6.0:2
       each @ jquery.min.js?ver=3.6.0:2
       _jQueryInterface @ collapse.min.js?ver=2.1.5:6
       (anonymous) @ collapse.min.js?ver=2.1.5:6
       each @ jquery.min.js?ver=3.6.0:2
       each @ jquery.min.js?ver=3.6.0:2
       (anonymous) @ collapse.min.js?ver=2.1.5:6
       dispatch @ jquery.min.js?ver=3.6.0:2
       v.handle @ jquery.min.js?ver=3.6.0:2
       ```
   
 * Can you help fix this?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmobile-accordion-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * (@bayejid00)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/mobile-accordion-error/#post-15403657)
 * Hi [@simplemachines](https://wordpress.org/support/users/simplemachines/),
 * Thanks for reaching us. Sorry to hear that you’re facing such an issue.
 * It seems that this issue is occurring due to deferring the two JS (jquery.min.
   js and jquery.migrate.min.js) files with the WP Rocket plugin or another plugin.
   To solve this issue, [exclude the files](https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js)
   from Load JavaScript Deferred. Please take a look at [the screenshot](https://ibb.co/KKL8KkF).
   ​
 * Hope it may help. Please let us know if it works or not.
 *  Thread Starter [simplemachines](https://wordpress.org/support/users/simplemachines/)
 * (@simplemachines)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/mobile-accordion-error/#post-15403897)
 * Excluded those file from being deferred but we’re still experiencing the issue.
   We also tried turning off the defering javascript and delaying javascript.
 *  Plugin Support [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * (@bayejid00)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/mobile-accordion-error/#post-15403961)
 * Hi [@simplemachines](https://wordpress.org/support/users/simplemachines/),
 * Sorry to hear that the issue still exists. [Please create a support ticket here](https://shapedplugin.com/create-support-ticket/)
   with the necessary information so that our support member can review it deeply
   to figure out the issue.
 * Thank you
 *  Thread Starter [simplemachines](https://wordpress.org/support/users/simplemachines/)
 * (@simplemachines)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/mobile-accordion-error/#post-15403968)
 * Will do. Thank you!
 *  Plugin Support [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * (@bayejid00)
 * [4 years ago](https://wordpress.org/support/topic/mobile-accordion-error/#post-15566563)
 * Hi [@simplemachines](https://wordpress.org/support/users/simplemachines/),
 * This thread has been inactive for a bit, so I’m going to mark it as `Resolved`
   now. Please feel free to open a new one if you have any further questions.
 * Cheers!

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

The topic ‘Mobile Accordion Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-expand-tabs-free/assets/icon-256x256.gif?rev=3502431)
 * [Custom Product Tabs for WooCommerce & WordPress Tabs Builder – Smart Tabs](https://wordpress.org/plugins/wp-expand-tabs-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-expand-tabs-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-expand-tabs-free/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-expand-tabs-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-expand-tabs-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-expand-tabs-free/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/mobile-accordion-error/#post-15566563)
 * Status: resolved