Hi,
This sounds like a Javascript conflict issue. If you disable all other plugins and switch to the default theme does the problem go away?
yes it does.
so how can i fix this javascript problem?
i searched through other forums and looks like it could be wordpress 3.6 that is causing issues. are there any solutions here?
Can you replicate the problem using the default Twenty Thirteen theme with all other plugins deactivated?
no actually. not sure what to do here.
@esmi, I guess you’re on post-3.6 patrol 😉
Am pretty sure I know this one and It’s not a 3.6 problem.
Maybe this can help other plugins/themes doing the same. Another plugin or your theme using outdated jQuery autocomplete code.
It’s also not necessarily ‘bad’ code because it’s exactly what used to be on the jQuery UI docs site, they changed it at some point.
Whatever generates this line:
}).data( "autocomplete" )._renderItem = function( ul, item ) {
all you need to do is change that to:
}).data( "ui-autocomplete" )._renderItem = function( ul, item ) {
EM actually had that problem too, but luckily we were playing with 3.6 long before it came out 😉
I guess you’re on post-3.6 patrol 😉
Yep – and I half-guessed that this might be another plugin or theme that had jQuery problems. 🙂
thanks for the hard work!
jQuery nono’s on WP could have its own book 🙂 there’s so many of these!
i followed your instructions and now my site is all messed up.
i found that code in numerous files, so i changed it to
}).data( “ui-autocomplete” )._renderItem = function( ul, item ) {
what is wrong? i reverted my pages back and it’s still messed up!!!
http://www.godurhamregion.com
you must have changed something else there. a JS change wouldn’t screw up your site that way.
i changed:
}).data( “autocomplete” )._renderItem = function( ul, item ) {
to this:
}).data( “ui-autocomplete” )._renderItem = function( ul, item ) {
in the following files:
header.php
events-manager-source.js
events-manager.js
i deleted and reinstalled my theme. now everything works.
Where would the }).data( “autocomplete” )._renderItem = function( ul, item ) { line be found?
i spoke too soon. the reinstall fixed my site on mozilla but not in chrome.
using google chorme dev tools, i can see this error:
‘Warning: you have included the Google Maps API multiple times on this page. This may cause unexpected errors.’
for you dagreatdennis, i just did a search folder and replace… that code can be found in numerous files. but be careful. it messed up my site.
Thanks for the heads up. I guess I’ll just keep watching to see if there is a resolution soon.