Search box/sorting options not working
-
Hi,
The search box and sorting options are not showing on our data table at http://www.geographyolympiad.com/results/2014-2015-elementary-middle-school-results/middle-school-results/ even though those options were checked off in the data tables features area.
Other people who have had the same issue posted on these forums have either had cells that took up multiple column widths or had a javascript error on their page, and I don’t think either of those applies here. I checked the console log on Firebug and see no errors, and none of our cells take up more than one column.
Any ideas?
-
Hi,
thanks for your post, and sorry for the trouble.
From what I can see, this is related to a script error in your theme (I found that in the Google Chrome Developer Tools’ error log console).
In the file /wp-content/themes/geochallenge/js/effects.js, the lineCufon.replace('.blogname h1,.title h2,.title h1,h3.sidetitl,h3.bothead,h3#comments', { fontFamily: 'Myriad Pro',hover:true });raises an error, as there is no
Cufonfunction loaded. I therefore suggest to simply remove that line.Regards,
TobiasHi
I have the same problem – no table functions work despite being enabled. Had a look at the Developer Log but can’t interpret. Any ideas?
Hi,
indeed, there seem to be JS script error on your page as well. At least one of them is coming from the Cookie Control plugin, where the text
<p>Some cookies on this site are essential, and the site will not work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links. We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you're not happy with this, we won't set these cookies but some nice features of the site may be unavailable.</p><p>Read more about our <a href="" title="Read our privacy policy">privacy policy.</a></p>is causing problems because it contains single quotes
'. Those must be escaped in the text, i.e. written as\'(this happens twice, in the wordsyou'reandwon't).I suggest that you fix that first.
Regards,
TobiasHi Tobias
Same issue for me sadly
http://bisfhouse.com/register-of-all-bisf-house-locations-uk/although I have limited knowledge regards js and using debuggers one chrome extension states
Uncaught TypeError: Cannot read property ‘msie’ of undefined bunyard-theme.js:142
Any ideas?
regards
Hi,
in your cause, the problem is likely caused by something on your site (a plugin or the theme) loading an old version of the jQuery library from the Google CDN, instead of using the up-to-date version that ships with WordPress.
This could give you some pointers on how to find that cause: http://tablepress.org/faq/js-functions-not-working/
Regards,
TobiasThanks for the quick reply as always Tobias
I updated the question above but add the line here in case you missed it
Uncaught TypeError: Cannot read property ‘msie’ of undefined
bunyard-theme.js:142this was using the javascript console extension in chrome
Would this suggest that that one of the 3 bunyard plugins that comes with my theme is to blame?
I just followed your link and also got the extra info
http://bisfhouse.com/wp-content/themes/smart-mag/js/bunyad-theme.js?ver=2.4.1
Hi Tobias
Deactivating the Cookie Control plugin did not help.
The only error the developer console reports now is in your plugin.
$(‘#tablepress-1’).dataTable({“order”:[],”orderClasses”:false,”stripeClasses”:[‘even’,’odd’],”pagingType”:”simple”});
Many thanks.
Hi,
@studio500:
I noticed that error, and it’s caused by the usage of the wrong JS library. The script that you mention is trying to access the$.browser.msievariable. This however has been removed in jQuery 1.9.0 and is only available via the jQuery Migrate script. WordPress does load that by default, but as something on your site is overriding the loading of the jQuery JS library, it’s not loaded in your case.
You will have to find what’s loading jQuery from the Google CDN. My guess is the theme, so that you should find something in the theme’s “functions.php”.@mathewmackenzie:
Yes, that error remains, but I can’t see what’s causing it…
Can you please try deactivating other plugins as well, one by one? Also, please switch to a WordPress default theme like TwentyFifteen. Maybe we can isolate the issue that way.Regards,
TobiasHi
It’s not another plugin – tried disabling them all.
I’m not able to take this site offline, which I would have to if I changed the theme, as too much of the content is theme-specific.
Given that I’m only thinking of using your plugin and wanted to demo it – I might have to give it a miss.
Thanks anyway, and if you have any other ideas, do let me know.
The base theme is http://themeforest.net/item/jupiter-multipurpose-responsive-theme/5177775 in case you want to investigate the incompatibility.
Hi,
unfortunately, the theme is my only guess, then. 🙁 It’s making quite heavy use of JS and it’s loading some external libraries, that’s why I assume that something is interfering with the jQuery library there.
Note that you should still fix that error with the
'in your text about the cookies! That message will not display otherwise.Regards,
TobiasHi Tobias
Thank you for your reply.I have now installed the jQuery Updater plugin and all seems to be working.
I have my search box and functions back. I’m not sure if I have done the right thing but until I can get a response from my themes author, I guess this should work.
I no longer have the error code showing when the JQuery plugin is active.
Apologies for hijacking the thread btw.Hi,
yes, using the jQuery Updater plugin is also fine here. It’s not ideal (as it still uses a different jQuery version than what WordPress ships with), but at least it’s a current version and the jQuery Migrate plugin is included.
Good to hear that this fixed it!Best wishes,
TobiasThanks for your help with my issue — it is now resolved.
I’m wondering why the Firebug error console didn’t pick it up though, it usually does for stuff like this.
Thanks again!
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
I’m not really sure why Firebug did not show this. Maybe the error is raised before it’s completely initialized, as it’s a Firefox Extension, from what I know?
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
The topic ‘Search box/sorting options not working’ is closed to new replies.