Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is the error message I got when enabling the module.
"The DataTables plugin is missing. Download and extract it to your datatables module directory. See README.txt for more info. (Currently using DataTables Not found)"
This is what I did:
1.Download 6.x-1.0
2.unzip and upload the folder to sites/all/modules/datatables
3.Download plugins 1.5.0-beta
4.Extract the archive and move the "media" folder to sites/all/modules/datatables/dataTables/media
Then I got the error message when enabling this module. Any suggestions?
Are there any step-by-step tutorial of this module for newbies?
Thanks.
Comments
Comment #1
beadedfeather CreditAttribution: beadedfeather commentedI am having the same problem. Ihave done everything it told me to do and more and still no go. :(
Comment #2
duellj CreditAttribution: duellj commentedWhat's the full path to your jquery.dataTables.js file? It should be something like:
module_path/dataTables/media/js/jquery.dataTables.js
Comment #3
anniedrupal CreditAttribution: anniedrupal commentedJust checked the path, it's
sites\all\modules\datatables-6.x-1.0\dataTables\media\js\jquery.dataTables.js
Comment #4
duellj CreditAttribution: duellj commentedSorry for the delay in getting back to you. Are you still experiencing this problem? If you use the 6.x-1.x-dev release?
Comment #5
Satori42 CreditAttribution: Satori42 commentedSame problem in Drupal 7 with the dev release.
modules/datatables/media/js/jquery.dataTables.js
Comment #6
bvrcraju CreditAttribution: bvrcraju commentedComment #7
schnibitz CreditAttribution: schnibitz commentedI'm having problems with this as well. There is no:
sites/all/modules/datatables/dataTables/
Folder after the module is installed. BUT if I copy over the zipped js plugin, and unzip I get a:
sites/all/modules/datatables/DataTables-1.8.2/
Any ideas?
Comment #8
zirvap CreditAttribution: zirvap commentedWhat I did was:
Works fine for me. (I'm using 6.x, but I assume it's the same procedure for 7.x.)
Comment #9
duellj CreditAttribution: duellj commentedUpdate the README in #699538: Add Libraries API support (f.k.a. jQuery datatables subfolder path), should solve installation issues.
Comment #10
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedRan into the same error message today as in the original Issue Summary (= "The DataTables plugin is missing. Download and extract it to your datatables module directory. See README.txt for more info. (Currently using DataTables Not found)"). I was trying to enable the 6.x-1.1 version of this module in a Drupal 6 environment.
I doubled checked the instructions in the readme.txt file, but couldn't find anything that was wrong. So then I looked into datatables.install, and noticed that the file_exists check refers to '/dataTables/media/js/jquery.dataTables.js'. It took me a while before I realized it, but I had created a dirname of '/DataTables/media/js/' (note: uppercase 'D'), while the file_exists check refers to '/dataTables/media/js/' (note: lowercase 'd'). After renaming the dirname to '/dataTables/media/js/' my issue was resolved, and the module was enabled.
Comment #11
Sigvard CreditAttribution: Sigvard commentedI had the same problem and Pierre Vriens comment (#10) saved my day. Really a silly issue and huge thanks to Pierre.
Comment #12
hassebasse CreditAttribution: hassebasse commentedThanks you very much Pierre ! I run into this issue and I spent 2 hours for a stupid spelling issue. So #10 gave the answer! I work with 7.
Comment #13
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedThank you for the kudos in the previous 2 comments. Actually I had forgotten a bit about the datatables module though I use it quite a lot in various sites. Anybody interested in some links to online samples using this module?
Writing my comment in my #10 about a year ago is when I only just really got started in contributing stuff to Drupal. In the meantime I got involved in "charting" stuff in Drupal: first I started a Comparison of Charting modules, which evolved into #2368793: Chart 2.0 a bit later on. And that resulted in #2377647: Offering to maintain Charts afterwards.
Given the current "status" of the dataTables module (Seeking co-maintainers), and its open issues, I wonder if I should consider filing an issue to also become a co-maintainer of the dataTables modules. E.g. to add some enhancements to avoid frustrations and/or wasting time for issues like this one (like using the hook_requirements to produce some status message if the dataTables folder cannot be found) ...