Support Forum

Unable to type in post/reply field – possible solution

CA carterlite
carterlite
Member

I searched but couldn’t not find anyone else with this problem.

 

It seems, upon our 5.0 upgrade, we are now unable to type in the post or reply field box. The box comes up correctly but you cannot click to make the cursor appear in the box. When writing a new post, you can type in the Topic Name box but still not in the box below it.

 

ADDITION:  Before posting this, I thought I’d try deactivating all my plugins to see if that had any affect- it did. It seems the guilty plugin is the plugin Editor (TinyMCE – Rich Text). If that plugin is enabled, there is no way to click within the post or reply field box. When it is deactivated, everything is okay. Any ideas?

 

Thanks!

11 Answers

New Answer

MP Mr Papa
Mr Papa
Member

I am getting js errors on your site… all from your wp theme quality… in karma.js and the base theme js file…

likely because it is doing bad things and loading its own version of jquery ui from google apis instead of using the version that wp comes with… its a different and older version of jquery ui than what ships with ui, so it is likely conflicting with the version wp ships with…

themes need to use the wp version of jquery and jquery ui (http://codex.wordpress.org/Function_Reference/wp_enqueue_script) to prevent conflicts like this…

quick test would be to temp switch to default wp theme and see if things work better…

CA carterlite
carterlite
Member

Wow, thanks for looking into it, Mr. Papa. To be honest, I don’t know much about js at all. Is this a matter of going into the theme and changing the path for Google js to the path of WordPress’s? Or does it get much deeper and require rewriting js code? Changing a few lines I can do, completely rewriting code throughout several files is out of my league. 

Along which line do you think this might be?

Thank you!

MP Mr Papa
Mr Papa
Member

I dont know for sure its the theme, just experience…  the problem is real, just not 100% on the cause… 

did you do as suggested and temp switch to default wp theme and see if things worked?  would confirm if theme or not…

if the theme, normally in the header.php file of the theme you can look for loading jquery and jquery ui from googleapis instead of wp…

CA carterlite
carterlite
Member

I did as suggested and, with the default theme active and all forum plugins active, the reply box worked as it should. Looks like you were right about the theme being the problem!

I looked into header.php and there are a few .js files being called locally, some of which I don’t even think I need as I’m not using a rotating banner on the site. The only script I saw being called from Google was relating to IE9 and using html5.js.

If you have any specific ideas on what to do next, I would be more than happy to hear them. Or if there is a specific question or action I should ask of the theme author, I could pass that along. Either way, a big thank you, Mr. Papa.

YS Yellow Swordfish
Yellow Swordfish
Member

Check in the theme functions.php file as well. You may well find it there.

CA carterlite
carterlite
Member

In functions.php, I found:

wp_register_script( 'jqueryui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js');

 

Could that be causing the problem? If so, what should I switch that link to so that it uses WP’s js instead of Google’s? I’ve also found that this issue is causing the Font Resizer plugin to not work.

YS Yellow Swordfish
Yellow Swordfish
Member

You should be able to change that to:

wp_enqueue_script('jquery-ui-core');
CA carterlite
carterlite
Member

Yes! That did the trick. The Rich Text editor now works as it should and there’s no issue clicking within the text box when posting/replying. I can tell there are still some issues as the Font Resizer still does not work but the editor was the big one.

Mr. Papa and YS, thank you.

SP SPQC
SPQC
Member

Was reading this topic then at the bottom where the starts are it’s not displayed correctly.  I looked into another thread and it’s fine so I came again read this one and the problem is still there.  You may want to investigate what’s causing this…

 

EDIT: as this post got into page 2, the problem is gone but it is still present in page 1 so take a look!

 

oops-1.png
YS Yellow Swordfish
Yellow Swordfish
Member

curious. couldn’t see any problem with the third from last post but re-saving it did the trick. Some garbage got into the db record when it was written probably.