Title: Gallery button fails
Last modified: August 25, 2020

---

# Gallery button fails

 *  Resolved [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/gallery-button-fails/)
 * Website: [https://skistyle.uk/](https://skistyle.uk/)
    WP 5.5 running Twentytwenty
   Basic options panel: [https://snipboard.io/4TDuaQ.jpg](https://snipboard.io/4TDuaQ.jpg)
   The page content: [https://snipboard.io/5sh1QZ.jpg](https://snipboard.io/5sh1QZ.jpg)
 * Plugin is authorised with Google and the app can navigate the drive contents.
 * Using Classic Editor I click on the Google Drive gallery button and nothing happens.
   If I change the root gallery to a folder that has sub folders I can see those
   folders but when I select a folder and then click the button, again, nothing 
   happens.
 * However, if I deactivate the Classic editor I can insert the gallery block and
   I can see the images on Google drive. In short, the plugin does not work on classic
   editor as per the plugin documentation.
 * Your help is appreciated.
    -  This topic was modified 5 years, 11 months ago by [sarumbear](https://wordpress.org/support/users/sarumbear/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-button-fails%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13311287)
 * Hi,
    thanks for the report, will take a look.
 * Anyway, as a general recommendation, do switch to Gutenberg/block editor. We 
   will remove support for the classic editor eventually and I suppose many plugins/
   themes will or already have dropped it.
 * Marek
 *  Thread Starter [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13311424)
 * I normally use the Divi theme from Elegant for all my websites. It’s the most
   used commercial WP theme with a Million installations.
 * Divi has its own block editing system. I switched to Twentytwenty to help diagnosing
   the issue.
 * Isn’t there a shortcode that I can insert on the page instead of using the button?
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13311492)
 * Yes, there is 🙂
 * `[sgdg path="relative/to/root"]`
 * Marek
 *  Thread Starter [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13311567)
 * The shortcode works perfectly even with the Divi theme. There must be some JS
   conflict that is causing the button to fail.
 * I urge you to add the shortcode information to the documentation. Solely relying
   on JS dependant button on WP is not a good idea in my humble opinion.
 * Thank you for the support.
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13489322)
 * Hi,
    I finally got to investigating this… However, it works fine for me.
 * I’m using the “Classic Editor” plugin… Can you verify you’re using the same, 
   you have latest WP and the latest plugin and the issue is still present please?
 * Thanks,
    Marek
 *  Thread Starter [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13489769)
 * I’m not using the Classic Editor. I’m using the “use classic editor” option of
   the Divi theme. The button opens a dialog box and allows me to browse through
   the disk, however does not insert the short code to the page. Here is the error
   from the Chrome inspector.
 * 5tinymce.min.js:1 Uncaught TypeError: Cannot read property ‘insertContent’ of
   null
    at HTMLAnchorElement.<anonymous> (tinymce.min.js:1) at HTMLAnchorElement.
   dispatch (jquery.js:3) at HTMLAnchorElement.r.handle (jquery.js:3)
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13492071)
 * Hi,
    I’d take that up with the developers of Divi – we support the classic editor
   as provided by the core WordPress team. If they are messing with it and breaking
   other plugins, that’s a problem caused by them and thus should be solved by them.
 * However, I still recommend using the block editor as the best option – any other
   way of using this plugin is basically on “life support” and I suspect that would
   be the case for most plugins nowadays.
 * Thanks,
    Marek

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

The topic ‘Gallery button fails’ is closed to new replies.

 * ![](https://ps.w.org/skaut-google-drive-gallery/assets/icon.svg?rev=3264618)
 * [Image and video gallery from Google Drive](https://wordpress.org/plugins/skaut-google-drive-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/skaut-google-drive-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/skaut-google-drive-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/skaut-google-drive-gallery/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/gallery-button-fails/#post-13492071)
 * Status: resolved