search_files_dashboard calls makes a call to search_files_variable_get_directoryrescanage()
this comes from the search_directorys module
however this is not a required module - should it be?

Comments

Shiny’s picture

This also reads count(*) on many tables from search_directories module

notice: Undefined variable: output in /home/brenda/workspace/drupal/drupal-dnc/sites/all/modules/search_files/search_files.module on line 76.
notice: Undefined variable: output in /home/brenda/workspace/drupal/drupal-dnc/sites/all/modules/search_files/search_files.module on line 76.
warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "search_directories" does not exist in /home/brenda/workspace/drupal/drupal-dnc/includes/database.pgsql.inc on line 139.
user warning: query: SELECT count(*) FROM search_directories; in /home/brenda/workspace/drupal/drupal-dnc/sites/all/modules/search_files/search_files.module on line 91.
warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "search_directories_files" does not exist in /home/brenda/workspace/drupal/drupal-dnc/includes/database.pgsql.inc on line 139.
user warning: query: SELECT count(*) FROM search_directories_files; in /home/brenda/workspace/drupal/drupal-dnc/sites/all/modules/search_files/search_files.module on line 96.
warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "search_directories_files" does not exist in /home/brenda/workspace/drupal/drupal-dnc/includes/database.pgsql.inc on line 139.
user warning: query: SELECT count(*) FROM search_directories_files WHERE ( index_attempts = 0 ); in /home/brenda/workspace/drupal/drupal-dnc/sites/all/modules/search_files/search_files.module on line 101.

thl’s picture

Assigned: Unassigned » thl
Status: Active » Fixed

- search_files_variable_get_directoryrescanage()
This functions was first introduced in past 6.x-1.6 (currently only available in CVS, no release) and in 6.x-2.0beta2
According to CVS, neither 6.x-1.6 nor 6.x-2.0beta1 do use or provide that function.
Same is true for search_files-6.x-2.0-beta1.tar.gz
Dup #514324: patch for SQL Fixes for postgres, missing function name, fixed forms and a stray var_dump
It seems you are running some code mixture or -dev snapshot here. Please try a (beta) release.
No issue.

- required module
Both search_attachments.info and search_directories.info list search_files as dependency.
It has been tested in 6.x-beta2 that enabling either search_attachments or search_directories implicitly asks to enable search_files, too.
No issue.

- tables
6.x-beta2 includes major name space cleanups including database table names
Fixed.

- Undefined variable: output
Dup #514324: patch for SQL Fixes for postgres, missing function name, fixed forms and a stray var_dump
fixed in search_files.pgsql__1.patch file search_files.module hunk at line 71
Fixed.

Status: Fixed » Closed (fixed)

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