Title: [Plugin: Ultimate TinyMCE] Shortcodes button
Last modified: August 20, 2016

---

# [Plugin: Ultimate TinyMCE] Shortcodes button

 *  Resolved [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/)
 * Hi,
 * I’ve been having an issue to get the shortcodes dropdown button to display in
   my editor.
 * Problem persists even though I have done following:
 * 1) Tried in Firefox
    2) Tried in Chrome 3) Cleared browser cache 4) Disabled 
   all plugins except for Ultimate TinyMCE 5) Resetting plugin
 * Also, if I enable Firebug on editor page – interestingly I get the following 
   error:
 * “invalid regular expression flag h
    [http://www.mydomain.com/wp-content/plugins/ultimate-tinymce/shortcodes-editor-selector/editor_plugin.js.php?ver=349-20805](http://www.mydomain.com/wp-content/plugins/ultimate-tinymce/shortcodes-editor-selector/editor_plugin.js.php?ver=349-20805)
   Line 2″
 * Any ideas anyone?
 * Cheers,
 * [http://wordpress.org/extend/plugins/ultimate-tinymce/](http://wordpress.org/extend/plugins/ultimate-tinymce/)

Viewing 15 replies - 1 through 15 (of 61 total)

1 [2](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/5/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/2/?output_format=md)

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891881)
 * Hello Robert,
 * I have received a few messages reporting the same issue. I believe WP has changed
   something regarding shortcodes in the new version.
 * What’s funny.. is it works fine on all my test installs.
 * I’m not sure if it’s theme related, plugin related, or WP related.
 * I’ll have to do some testing to dig deeper.
 * What theme are you using out of curiosity?
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891884)
 * Hi Josh,
 * Thanks for responding.
 * I just checked a couple of my sites and on one shortcode button shows OK and 
   on the other it does not. Both installs are at latest WP 3.4.1 and both use different
   themes but from same framework/author (xScape framework). I’m happy to do further
   testing for you if needed – just let me know what to do.
 * Cheers,
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891885)
 * Hi,
 * Interestingly, on the site where it does not show – if I revert this site’s theme
   back to default 2011 – then shortcode button still does not show in editor. Bizarre!
 * Further to that – if I disable all plugins – except for yours – reset your plugin
   back to defaults – the shortcode button still does not work. Amazing!
 * Going to be a hard one to crack.
 * Regards,
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891907)
 * Hmmmm….. regarding the two sites:
 * 1. Are they hosted at the same location?
    2. Are they both single-site installations?
   3. Are they both in root directories? (as opposed to one being in a subdirectory?)
 * Thanks for helping!!
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891909)
 * Hi Josh,
 * 1. Sites are both hosted at same location and both have same IP address.
    2. 
   Yep… both are single site installs. 3. Yep… both sites installed in the root 
   of pubic_html directory
 * Does not really help does it. My guess is you are looking for a difference between
   a site that works and one that doesn’t.
 * Keep the suggestions coming.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891915)
 * Are they using the same theme?
 * Try this (if you dare) 😉
 * 1. Open the `ultimate-tinymce/shortcodes-editor-select/editor_plugin.js.php` 
   file.
 * 2. On lines 2 and 3, find the code:
 *     ```
       require_once('../../../../wp-admin/admin.php');
       require_once('../../../../wp-admin/includes/admin.php');
       ```
   
 * and replace with this:
 *     ```
       require_once (ABSPATH . '/wp-admin/admin.php');
       require_once (ABSPATH . '/wp-admin/includes/admin.php');
       ```
   
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891916)
 * Wait.. that won’t work…
 * Gimme a minute…
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891918)
 * You are right… it didn’t – with the code change – no bar displayed at all.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891921)
 * Man.. I have to run out for a little bit. I’ve been putting off giving my buddy
   a ride.
 * I’m gonna have to leave shortly.
 * But, I’m excited because of your first message. You identified where the incorrect
   code _might_ be coming from… and I’ve had about 20 emails from people asking 
   about this.
 * So, I’ll be eager to get back on it when I return home.
 * Thanks again, and I’ll post something new for you to try when I’m ready.
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891922)
 * No worries Josh. I know what it’s like to have to drag my self away from work.
   So far you have been most helpful and no probs to continue assisting / testing.
 * Cheers,
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891963)
 * Okay, I’m back on this now. I’ll be back soon to give you a new code to try. 
   Thanks for sticking with this!
 * EDIT: What are the shortcodes you see in the installation where it’s NOT working
   properly?
 * Do you see any error message on or around the tinymce editor window when you 
   are on the create/edit post/page screen?
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891965)
 * No worries Josh. In your on time.
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891970)
 * Okay, let’s try replacing this:
 *     ```
       require_once('../../../../wp-admin/admin.php');
       require_once('../../../../wp-admin/includes/admin.php');
       ```
   
 * With this:
 *     ```
       if ( defined('ABSPATH') ) {
            require_once(ABSPATH . '/wp-admin/admin.php');
            require_once(ABSPATH . '/wp-admin/includes/admin.php');
       } else {
            require_once('../../../../wp-admin/admin.php');
            require_once('../../../../wp-admin/includes/admin.php');
       }
       ```
   
 *  Thread Starter [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891972)
 * Hi Josh,
 * No luck mate.
 * 1) Replaced the code.
    2) Cleared browser cache. 3) Re-saved plugin options (“
   Shortcodes” enabled). 4) Plugin rows showing OK in editor but no Shortcode button
   unfortunately. Interesting that the Styles button does display. 5) Same error
   in Firebug:
 * > “invalid regular expression flag h
   >  [http://www.kuakawa.biz/wp-content/plugins/ultimate-tinymce/shortcodes-editor-selector/editor_plugin.js.php?ver=349-20805](http://www.kuakawa.biz/wp-content/plugins/ultimate-tinymce/shortcodes-editor-selector/editor_plugin.js.php?ver=349-20805)
   > Line 2″
 * I remain on standby for further testing.
 * Cheers,
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/#post-2891974)
 * It still shows the error in line 2? I figured if any error, it would have jumped
   to line 6 or 7.
 * I think the button should have at least shown up also…
 * Hmmm… do you have any cache plugin on your wordpress? Did you try hitting ctrl
   +f5 to refresh the page?
 * EDIT:
 * Do you know how to edit your wp-config file? If you do, on the site where the
   button is not working, add this to the wp-config.php file:
 *     ```
       define('WP_DEBUG', true);
       ```
   
 * Or, if it’s already in there, just change `false` to `true`.
 * Now, go back to the editor and see if any warnings appear.

Viewing 15 replies - 1 through 15 (of 61 total)

1 [2](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/5/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/2/?output_format=md)

The topic ‘[Plugin: Ultimate TinyMCE] Shortcodes button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-tinymce.svg)
 * [Ultimate TinyMCE](https://wordpress.org/plugins/ultimate-tinymce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-tinymce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-tinymce/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-tinymce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-tinymce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-tinymce/reviews/)

## Tags

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

 * 61 replies
 * 5 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-ultimate-tinymce-shortcodes-button/page/5/#post-2892117)
 * Status: resolved