Support » Plugin: Ultimate TinyMCE » [Plugin: Ultimate TinyMCE] Shortcodes button

Viewing 15 replies - 1 through 15 (of 61 total)
  • Plugin Author Josh

    (@josh401)

    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?

    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,

    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

    (@josh401)

    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!!

    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

    (@josh401)

    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

    (@josh401)

    Wait.. that won’t work…

    Gimme a minute…

    You are right… it didn’t – with the code change – no bar displayed at all.

    Plugin Author Josh

    (@josh401)

    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.

    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

    (@josh401)

    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?

    No worries Josh. In your on time.

    Plugin Author Josh

    (@josh401)

    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');
    }

    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
    Line 2″

    I remain on standby for further testing.

    Cheers,

    Plugin Author Josh

    (@josh401)

    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)
  • The topic ‘[Plugin: Ultimate TinyMCE] Shortcodes button’ is closed to new replies.