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

xjm’s picture

Theoretically, 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.

jpcwebb’s picture

I 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

elusivemind’s picture

Assigned: Unassigned » elusivemind

Search File Attachments depends on the upload module. Placing that dependency in the info file for future release.

elusivemind’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.