Support Forum

tinymce issue

CM Chris Moody
Chris Moody
Member

Hi,

I could have opened an new topic but well it is about the tinymce.

When we reply or try to add an topic the screen stays empty and no editor is available.

I have disable tinymce 3.3.4 and Syntax Highlighter 2.0.1.0

Tried the solution above and that did not work.

I have put the forum back on bbcode 1.4.0 

Please advise 😉

20 Answers

New Answer

MP Mr Papa
Mr Papa
Member

but its not the same issue – at least not by your description… so I have moved to new topic..

you say the screen stays empty??? so you get a blank screen?  or do you mean the editor is blank?

please check the browser console for any reported errors…  a link to your site (can guests post?) might allow us to see what else might be going on… but likely some sort of js issue… ‘

or a wp theme (or plugin) that is incorrectly adding buttons to the wp tinymce in the admin causing issues for plugins/themes that use tinymce on the front end (fully supported by wp)…  does it work with default wp theme?

no caching plugins on the forum page?

CM Chris Moody
Chris Moody
Member

Hi,

 

Thanks for that opening a new topic.

The forum is in a members area so not really open. Well with blank I mean you are not able to type or add anything when using the tinymce. (blank editor)

It worked nicely and after the update it stopped. I did add some new membership plugins but even when I disable those but no luck.

The site is running on siteground and I did disable the cache.

One thing I did change but can not turn back is the enabling of cloudflare but that can not be the issue right ?

I have tried disabling all plugins now one by one. There has to be something conflicting somewhere can I enable a debug to check ?

 

The wp theme is divi

YS Yellow Swordfish
Yellow Swordfish
Member

I would not discount Cloudflare out of hand. But let’s see:

How to use the web console to find script errors:   https://simple-press.com/documentation/codex/faq/how-to/how-to-use-your-web-browser-console/

CM Chris Moody
Chris Moody
Member

Hi,

This is what I get in the console,

 

1.4.1
index.php?WLMTNMCEPlugin4=1&wp-mce-4403-20160901:11 Uncaught ReferenceError: wlifcon_vars is not defined
at new <anonymous> (index.php?WLMTNMCEPlugin4=1&wp-mce-4403-20160901:11)
at Array.e (tinymce.min.js?ver=4403-20160901:11)
at n (tinymce.min.js?ver=4403-20160901:3)
at B.init (tinymce.min.js?ver=4403-20160901:11)
at n.<anonymous> (tinymce.min.js?ver=4403-20160901:11)
at Array.<anonymous> (tinymce.min.js?ver=4403-20160901:4)
at n (tinymce.min.js?ver=4403-20160901:3)
at p (tinymce.min.js?ver=4403-20160901:4)
at tinymce.min.js?ver=4403-20160901:4
at HTMLScriptElement.i (tinymce.min.js?ver=4403-20160901:4)
tinymce.min.js?ver=4403-20160901:11 Uncaught TypeError: Cannot read property ‘getRng’ of undefined
at B.focus (tinymce.min.js?ver=4403-20160901:11)
at Object.p [as execCommand] (tinymce.min.js?ver=4403-20160901:8)
at B.execCommand (tinymce.min.js?ver=4403-20160901:11)
at Object.execCommand (tinymce.min.js?ver=4403-20160901:12)
at spjEdOpenEditor (eval at <anonymous> (sp-tinymce.js?ver=4.7.1:1), <anonymous>:1:162)
at HTMLDocument.eval (eval at <anonymous> (sp-forum.js?ver=4.7.1:1), <anonymous>:1:2905)
at i (jquery.js?ver=1.11.0:2)
at Object.add [as done] (jquery.js?ver=1.11.0:2)
at a.fn.init.n.fn.ready (jquery.js?ver=1.11.0:2)
at spjOpenEditor (eval at <anonymous> (sp-forum.js?ver=4.7.1:1), <anonymous>:1:2639)

YS Yellow Swordfish
Yellow Swordfish
Member

Let’s start with this – WLMTNMCEPlugin4. Is that WishList Member? And if so – is it an old version? 

WishList member has a plugin that can be activated for TinyMCE. The problem was that it failed to work if TinyMCE was used on the front/public side of the website – even though WordPress makes it possible to do so and encourages this use.

Now I was under the impression that they fixed this up a while back as we told then exactly what they needed to do. Hence my question about whether your WishList is up to date.

IF… that is the problem and I am identifying it correctly. If not then I need to look again at the log above

CM Chris Moody
Chris Moody
Member

Hi @yellow-swordfish 

 

Thanks for you fast reply,

 

Yes it is Wishlist,

The latest version I just migrated from Memberium to them.

Do you know the name of the plugin ?

Best regards,

YS Yellow Swordfish
Yellow Swordfish
Member

I honestly can not remember the name I am afraid. But it was an add-on to wishList that added a button onto the tinyMCE editor – I can not recall what for either! Should be easy to spot though

CM Chris Moody
Chris Moody
Member

Hi,

 

You mean these options ?

 

Best regards,

 options-tinymce.PNG

YS Yellow Swordfish
Yellow Swordfish
Member

I really don’t know. But judging by the text it seems plausible. Turn them all off. Clear your browser cache and then see what happens. 

CM Chris Moody
Chris Moody
Member

Hi,

 

That wasn’t it 😉

And to make it more fun only admins have the issue and not normal users.

Looks like an over permission thing 😉

Best Regards,

YS Yellow Swordfish
Yellow Swordfish
Member

If the problem is only experienced by Admins (and I am assuming here that as well as being a forum Admin you are also a WordPress Administrator) – then that reinforces the probability that this is being caused by another WP plugin.

So – if not WishList (and I have to admit to not being 100% convinced yet) – do you have any other plugins active that add any feature/button whatsoever to the tinyMCE editor? You are going to see this when writing a blogpost or page using tinyMCE.

CM Chris Moody
Chris Moody
Member

Hi,

 

Yes is a list but I have disabled them all and checked it one by one

here is the list

Eventon
Intense
Wishlist and Wishlist infusionsoft
BWS
Divi
Device Mockup
WPForms

These are available extra during writing a blog post.

 

Best regards,

YS Yellow Swordfish
Yellow Swordfish
Member

Do you mean you turned them off one by one and then turned them on again one by one?

If so I am afraid that the only way to test is to turn them ALL off and then test and turn them on again one by one.

A long time ago the WordPress devs made the tinyMCE editor available for plugins to use on the front-end as the forum does. The downside to this was that any plugins that added buttons or features to TinyMCE probably needed a small code change. Even after all this time we still, every now and then, encounter a plugin where that change has not been made. So – as you seem to actually have a surprising number of such plugins we do need to eliminate the possibility that you have more than one that is defective in this regard.

So the way to do it is to turn them all off. CLEAR your browser cache – and I can’t stress the need for that – and then try the forum. IF the forum editor now works for you – then add the plugins back one by one testing between each one until it fails again.

CM Chris Moody
Chris Moody
Member

Ok will let you know how that goes 😉

 

best regards,