Closed (fixed)
Project:
Search Files
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Sep 2009 at 14:42 UTC
Updated:
6 Jun 2012 at 16:01 UTC
Currently the Search Files module only has a dependency of Search to install. i found out by searching on my site that it also depends on the Upload module to be enabled.
Can you please add this into the .info
Thanks!
Comments
Comment #1
xjmTheoretically, you do not need to have Upload enabled to use the functionality (see http://drupal.org/node/409516). However, clicking on the "Attachments" tab gives the following warnings when upload is is not installed:
user warning: Table 'drupal6.upload' doesn't exist query: SELECT SUM(i.score * t.count) AS score FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JOIN files AS f ON f.fid = i.sid LEFT JOIN upload u USING (fid) LEFT JOIN node n USING (nid) WHERE f.status = 1 AND (i.word = 'test') AND i.type = 'file' GROUP BY i.type, i.sid HAVING COUNT(*) >= 1 ORDER BY score DESC LIMIT 0, 1 in /var/www/drupal6/drupal-6.14/modules/search/search.module on line 946.If the module is expanded to support any file attachments, not just those from upload, then it would make sense to simply skip these queries if upload is not detected.
Comment #2
jpcwebb commentedI get this error even though Upload is installed and enabled - so I'm not sure that it is related... In fact, have you tried the dev version - I think the above is more to do with the following: http://drupal.org/node/573432
Comment #3
elusivemind commentedSearch File Attachments depends on the upload module. Placing that dependency in the info file for future release.
Comment #4
elusivemind commented