I have downloaded 6.x-1.5, tar-ed, installed in Modules interface and I now have Search File config interface.
This interface does not store any changes I make to it.
I have tried to enter "test" in Setting (admin/settings/search_files) in stead of "Server Files". After pressing "Save configuration" button, "Search Files" reappears in the text box but the interface says "The configuration options have been saved.". If I go to Search screen (search/seach_files), I do not see that the tab name has changed and it remains to show "Search Files".
The same behaviour goes with Directories tab (admin/settings/search_files/directories) and Helpers tab (admin/settings/search_files/helpers).
Anyway to debug this? I use the following environment:
PHP: 5.2.0-8+etch10
Postgres: PostgreSQL 8.1.11
Web server: Apache2
OS: Debian 4.0
Browser: Firefox 2.0.0.14 (both LINUX &WIN), IE7
Tables:
I can see following tables (& sequences) which starts with "search_files".
search_files_directories | table
search_files_directories_id_seq | sequence
search_files_files | table
search_files_files_id_seq | sequence
search_files_helpers | table
search_files_helpers_id_seq | sequence
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | search_files-6.1.6.patch | 937 bytes | mradcliffe |
| #6 | search_files-6.2.patch | 2.34 KB | mradcliffe |
| #1 | Search_Files_1212499942170.png | 10.35 KB | kotoponus |
| #1 | Search_Files_1212499979122.png | 9.95 KB | kotoponus |
| #1 | Search_Files_1212500001247.png | 8.43 KB | kotoponus |
Comments
Comment #1
kotoponus commentedNot very helpful, but I though I would give you comprementary screenshots.
Comment #2
kotoponus commentedI have removed the module completely and reinstalled it. The saving problem still persists. I would be grateful someone can tell me if I am being stupid and missed anything or if there is any faults in this.
Comment #3
mradcliffeThere is a bug in hook_settings in this module.
I tested the following change and it saves on a production site for me.
Comment #4
bander2 commentedmradcliffe, works for me with 5.x too.
Thanks,
Brendan
Comment #5
matt bJust ran into this bug on 6.x-1.6
Applied the patch and it fixing the problem.
Comment #6
mradcliffeWith the discussion on the front page between search_attachments and search_files this bug is no longer in the search_files.
I have created a simple patch for existing 6.x-1.6 users, however since the Drupal 6.x-1 branch has been deleted (?) it probably will never show up officially (? again). I don't think there will be anymore versions of search_files coming out to correct this bug. The bug seems to be fixed in the Drupal 5 branch of this module (dev version).
Additionally, the same bug crops up in both search_attachments and search_directories within the modules/ directory of the 6.x-2 branch. I have supplied a patch for these as well. If you use the #value attribute for forms you will not provide a way to actually save values from user input. It's a rather useless form.
Comment #7
thl commentedSee http://www.lotterer.net/blog/en/165-drupal-search_filesmodule-118thl1
This bugfix exactly handles the problem described in this thread.
bugfix
configuration of “Search Label” must use #default_value not #value
Comment #8
thl commentedComment #9
thl commented