Support Forum

After update cannot reply to posts anymore

SH Shama
Shama
Member

I just upgraded to WP 3.9 and the latest SP version including all plugins. However now I cannot reply to posts anymore. If I deactivate Tiny MCE, I can reply, although all the functionality is missing now.

I am not using Wishlist, and I did not add any other plugins or changed anything on my site. Everything is as it was before when everything was working fine. It stopped working as soon as I upgraded.

Here is my forum: http://thaihealingmassage.com/forum

60 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

We have, I believe, 2 active threads on this issue so the answer may e in one of those.

To date we know that:

  • if you use the Simple:Press Mentions plugin then make sure you upgraded the version that was released last night.
  • Goes without saying but you MUST have WordPress 3.9 as well as Simple:Press 5.4.2
  • Clear out your browser cache just in case it is hanging on to old scripts. WP 3.9 changes a lot of them.
  • The WordPress plugin WP-Polls seems to not have been updated so will cause this problem
  • Another user reports that cFormsII also can cause this problem.
  • ANY WordPress plugin that has not been updated to use WP3.9 script changes may also be responsible.
  • If none of the above then it would useful to deactivate WordPress plugins one at a tome to see if the problem gets corrected which would then locate the culprit.

That’s the state of play so far I believe. It is hard to give hard stats but so far the downloads etc., seem to suggest that less than 1% of users have this problem.

SH Shama
Shama
Member

I did deactivate all plugins one by one. After deactivating the Easy Video Suite plugin, not only did the Tiny MCE plugin and the reply function work again, but now I get 5 lines of icons showing up instead of the 2 lines before the update.

It seems that SP is reading the Tiny MCE editor from the wordpress plugin and not the one from the SP installation. I found this out by deactivating the new menu function in my wordpress Tiny MCE plugin, and then the menu function disappeared in the SP Tiny MCE reply area as well.

In addition now my JS shortcode plugin icons appear in the SP reply area below the Tiny MCE icons. So again it seems that suddenly two of my wordpress plugins have infiltrated the SP Post Reply area. 

Before the update I had only the SP Tiny MCE function icons on two rows, like in your forum here, showing up.

How can I keep my WP plugins out of the SP installation?

YS Yellow Swordfish
Yellow Swordfish
Member

I really do not understand the question. I think!

We have wrapped the WordPress tinyMCe code ever since they made it available to do so which was a long time ago. So that is not new.

Are you saying that you have a third party plugin that adds features to the editor and that these are being exposed in the forum? if so then you really need to discuss this with the authors of that plugin as it means they are assuming that TinyMCE can only be used within the WP Admin which is not the case. They may be using the ‘init’ hook when they should be using the ‘admin_init’ hook.

If this is not what you mean can you give me some more details?

SH Shama
Shama
Member

Before I updated WP and SP, I had two rows of icons show up in my SP Tiny MCE editor. That’s what I am seeing in your forum here as well.

But now after the update, I have 4 rows of icons showing up in my SP post reply area. And they are the ones which show up in my WP posts as well.

In addition there is a third party plugin which I have used for years in my WP posts which now suddenly shows up below the Tiny MCE icons in my SP post reply area. So yes, you understood correctly. However this was not the case before the upgrade. The third party plugin only showed up in my WP posts and pages, but now it suddenly shows up in my SP forum posts.

And on top of all that, my Easy Video Suite plugin which I have used for a long time, now suddenly disables the SP Tiny MCE and the editing function of my forum posts.

YS Yellow Swordfish
Yellow Swordfish
Member

Then that could be something changed in the WordPress wrapper around TinyMCE or in TinyMCE itself.

But my statement stands. It means the authors have assumed that this can only be seen on the admin side of things which is incorrect.

SH Shama
Shama
Member

So do I have any options now? Or is it up to the plugin developers to change their coding?

However even if the third party plugin now bleeds over into SP, the same thing is happening with the WP Tiny MCE which until now has kept to the admin side of things, but now it is invading my SP forum. Does this mean that the WP Tiny MCE is also using the wrong hook?

YS Yellow Swordfish
Yellow Swordfish
Member

I am sorry but I am really not following what you mean. What do you mean by ‘bleeds’ and ‘invading’? I thought you were referring to a third party plugin that was supposed to add buttons to the editor toolbar so what did you mean please?

As to the first question then yes…. if a plugin needs an update you are dependent upon the plugin authors to deliver one. I would be contacting them to discern their plans.

MP Mr Papa
Mr Papa
Member

EVERY wp plugin that had a tinymce plugin (most probably do because hard to do anything without it) MUST be rewritten (well nearly 100%)…  moving from tinymce 3.x to 4.x completely changed the plugin interface as well as api…

so if those plugins did not have an explicit update for 3.9, they probably will soon…

As Andy mentioned, the wp editor has been able to be used on wp site front end site for some time now…  we have been doing so for quite a while…   our sp tinymce plugin just adds a plugin for adding features to it (syntax highlighting, spoilers, etc)…

if a wp plugin only wants its stuff shown in the wp admin for a post edit, they should be using the wp editor api to limit this since it fully supports that…  we changed nothing fundamental about how we use the wp editor or how it gets on front end…

not sure what you think from the wp post editor is bleeding into our post editor… can you explain?  and is it really core wp editor or added by plugin?

if you need to stop the plugins from showing up on front end, you can use the wp editor api and hook into the available tinymce plugins loading and remove the ones you dont want..  you will of course, want to test if in admin or front end to see when to remove… I can dig up that api hook for you if interested…

SH Shama
Shama
Member

Here is a screenshot to clarify what I mean:

http://screencast.com/t/CsBx6u8E

When I change the WP Tiny MCE interface functions, then this change will be reflected both in my WP posts AND in my SP forum posts.

Previously the Tiny MCE interface in my WP posts ONLY showed up in WP posts. The SP Tiny MCE interface was a separate interface which only showed up in SP posts.

However now I cannot have separate settings for the WP Tiny MCE and the SP Tiny MCE interface anymore. Or in other words, they are not two plugins anymore. I cannot have 4 rows of Tiny MCE function icons in my WP posts, but only 2 rows of Tiny MCE function icons in my SP forum posts.

So it appears that the Tiny MCE plugin for SP pulls in or activates the Tiny MCE plugin settings from the admin side of my wordpress site. 

Previously I had only two rows of function icons in my Tiny MCE editor in my forum posts, but now I have this whole mess of function icons showing up. They are useful for my WP posts, but they are way overkill for my forum posts. 

So my question is: How can I go back to controlling the SP Tiny MCE functionality separately from my WP Tiny MCE functionality just like it was before.

MP Mr Papa
Mr Papa
Member

Sharma, I fully understood what you are saying…  but I guess we are not being clear…  we use the wp editor… if another plugin globally adds its plugins for every instance of the wp editor, what are we supposed to do???  not knowing the plugins that may be added, we cannot remove them…  it is the job of the plugin to ensure that they are only added when needed…  you dont see our simple press stuff in the wp add post panel do you?

Its been quite along time since we have just used the wp editor rather than including our own tinymce files…  did  you upgrade from a very old version?

If you want to have your own version of a tinymce plugin that loads its own copy of tinymce, you would have to create it…  maintaining our own copy of tinymce was a royal nightmare and way too much work for no benefit…  and like we said, we ditched it a long time ago…  we have just simply used the wp editor (thats why wp has an entire api for it) since then…

so how to get around?  as mentioned, I can give you a hook filter where you can remove the plugins (since you seem to indicate the plugin authors dont care)…  to do this, you would have to know the plugins name but this can be gotten from the page source…  I have some other ideas too, but not sure how your other plugins are adding their tinymce plugins – its possible if they are outdated, they are doing it wrong for 4.x – just dont know…

also, you can probably hide those rows with css…

or since they are in rows 3 or 4, we can possibly direct tinymce to just discared them on forum pages…  maybe try something like this in your spFunctions.php template file of your sp theme to overcame the other plugin deficiencies:

add_filter('mce_buttons_3', 'my_remove_buttons', 2, 999999);
add_filter('mce_buttons_4', 'my_remove_buttons', 2, 999999);
function my_remove_buttons($buttons, $id) {
    sp_forum_api_support();
    if (sp_is_forumpage()) $buttons = '';
    return $buttons;
}

obviously I cannot test it out… but give it a shot…

SH Shama
Shama
Member

Thanks Mr Papa. I understand now that you are using the WP Tiny MCE editor. I actually did not upgrade from an older SP version, but from the latest one. However I looked into this a bit more and I found out what the problem really is. In the WP editor, the Tiny MCE icons show up correctly, as in this screen shot:

http://screencast.com/t/AyYzoiylM8

But, in the SP forum, all those Tiny MCE icons show up twice – they are duplicated. That’s what had me flustered. I was first wondering where all those icons were coming from until I realized they are the same icons as in the WP admin side, just in duplicate, as in the screenshot below.

http://screencast.com/t/Kkc5h4B7o7qv

So now the question is – how do I remove the duplicate icons in the SP forum post window?

(And I also understand that you are not responsible for the other plugin showing up in the forum.) 

YS Yellow Swordfish
Yellow Swordfish
Member

Can you go to forum admin > components > Editor and send me a screenshot of the panel? We may as well check that is good.

YS Yellow Swordfish
Yellow Swordfish
Member

Oh well. It was worth a look bit seems fine.

So – I have been a little confused in this thread. Do you or do you not have any WordPress plugins that add buttons or make changes to the tinyMCE editor as used for blog posts? And if so when you deactivate it does all then work properly in the forum editor?