Hi,
nope, jQuery is loaded twice, and additionally there are a few JavaScript files missing on the page.
Also, you seem to have deactivated DataTables for this table? (But that might be after this post…)
Regards,
Tobias
Thank you for taking the time to reply!
Really? Oh man i feel dumb. But the truth is that i tried to make sure not to load jquery twice, and i cant seem to find why that is happening or any other errors like missing files (except some .gifs).
Could please be more specific regarding the missing files? And, is there any tool you could recommend to track down the errors? I’m inspecting with firebug but it is not showing any of these errors.
Thank you so much, again.
Oh i forgot to mention that datatables have been enabled the whole time, but not loading for some reason. So i hardcoded the call into the theme’s footer.php (<script src="<?php bloginfo('url'); ?>/wp-content/plugins/wp-table-reloaded/js/jquery.datatables.min.js"></script>) but it’s still not working. CSS however was loaging just fine.
Hi,
most of the missing files seem to be HTML5 related. I use the Web Developer Tools of Google Chrome or Firebug for Firefox to find issues like this. They will show you a list of missing files on the “Console” tab.
About DataTables being activated but not loading: This then means that your theme does not include a call to wp_footer(); in its “footer.php”, right before the closing </body> HTML tag. Can you check that?
Hardcoding that DataTables file is not enough, as the actual call to invoke the library is then still missing.
Regards,
Tobias
Hi Tobias, i made a little progress today. I found out that even if i did have the <?php wp_head(); ?> in place, the call to the footer <?php get_footer()?> was too far up the index.php file and that made a huge difference. Now i see that tabletools is loading fine except i’m getting this error: Warning: TableTools requires DataTables 1.5 or greater – http://www.datatables.net/download. Any ideas?
Hmmm…i spoke too soon, that datatables error is showing only when i test the site in my WAMP server. However, when i upload the theme and run it live i get: $("#wp-table-reloaded-id-1-no-1").dataTable is not a function http://carneslavelenita.com/blog/?page_id=15 Line 391 in firebug. and i thought i was coming closer to a solution lol.
Well, it’s working! Thank you Tobias, great plugin, great support!
The problem was some code in functions.php which was supposed to ensure that jquery wouldn’t load more than once. I guess somehow it was messing the DOM or something. The theme was actually loading jquery once, but i guess it was gone by the time the plugin needed it…is that possible?
anyway….the code is:
function modify_jquery() {
if (!is_admin()) {
wp_deregister_script('jquery');
}
}
add_action('init', 'modify_jquery');
so, STAY AWAY!
Hi,
yes, that code would deregister jQuery again, and then it would likely be missing on the page.
Great that you were able to fix it 🙂
Best wishes,
Tobias