Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Unable to type in post/reply field - possible solution
Avatar
carterlite
York, PA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 10, 2012 - 7:14 am

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!

Avatar
carterlite
York, PA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 10, 2012 - 7:19 am

If it helps to investigate, the site is http://uscobm.com/forum/.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 10, 2012 - 9:09 am

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/Fun.....eue_script) to prevent conflicts like this...

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

Avatar
carterlite
York, PA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 10, 2012 - 4:15 pm

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!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 10, 2012 - 5:12 pm

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

Avatar
carterlite
York, PA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 7:37 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:50 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
carterlite
York, PA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2012 - 11:09 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 14, 2012 - 11:39 am

You should be able to change that to:

wp_enqueue_script('jquery-ui-core');
andy-signature.png
YELLOW
SWORDFISH
Avatar
carterlite
York, PA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2012 - 12:42 pm

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.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620