Title: Why does dg code give error code unfitSCalert
Last modified: June 21, 2017

---

# Why does dg code give error code unfitSCalert

 *  Resolved [davidmarkkelly](https://wordpress.org/support/users/davidmarkkelly/)
 * (@davidmarkkelly)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/why-does-dg-code-give-error-code-unfitscalert/)
 * I am using document gallery on a multi-site environment.
 * When I attempt to edit an existing document gallery I am presented with an error
   message which I traced back to line 141 of class-admin.php
 * namely:
    ‘unfitSCalert’ => __( ‘This DG shortcode is an advanced one. ‘. ‘Sorry
   there is no way to use standard edit dialog for it. ‘. ‘You should switch to 
   text mode to edit shortcode itself.’, ‘document-gallery’ ),
 * What can I do to resolve this ?

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

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/why-does-dg-code-give-error-code-unfitscalert/#post-9249683)
 * To clarify, you’re wanting to use the visual editor to modify your gallery and
   the error you are getting is that you can’t use the editor for the gallery?
 * There are some settings supported by the `[dg]` shortcode that are not supported
   by the editor. I would assume that if you are getting this error you manually
   entered the shortcode at some point?
 * If you switch to plain text mode and copy/paste the `[dg ...]` shortcode from
   there I’ll have a better idea what exactly is going on, but this is unlikely 
   to be related to being multi-site.
 * -Dan
 *  Thread Starter [davidmarkkelly](https://wordpress.org/support/users/davidmarkkelly/)
 * (@davidmarkkelly)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/why-does-dg-code-give-error-code-unfitscalert/#post-9249906)
 * Hi Dan,
 * Thanks a million for such a fast response – you are 100% correct, it was because
   short code was typed directly rather than being a document gallery created via
   media.
 * Thanks
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/why-does-dg-code-give-error-code-unfitscalert/#post-9253134)
 * My pleasure, David! 🙂
 * -Dan

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

The topic ‘Why does dg code give error code unfitSCalert’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/why-does-dg-code-give-error-code-unfitscalert/#post-9253134)
 * Status: resolved