Jump to:
| Project: | Search attachments |
| Version: | 5.x-3.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Jaapx |
| Status: | active |
Issue Summary
(This report is maybe duplicate. I have sent is 8 hours ago but couldn't find it back on the Drupal site. )
Thank you for this very interesting module.
I encountered a few problems while installing, using and deinstalling the module, see the following report.
In case of questions, I happily will give additional information.
The following abbreviations are used
qqq_ : is the table prefix
yyyy: my inlog code, my provider also uses this as a part of the directory path.
/.../ : shorthand for a part of the directory path.
Problemreport.
Situation: I installed search_attachments and deinstalled it because of problems.
After that I did the following with the given messages as a result.
A. Installing produces three entries in the logtable in the following sequence:
1. Duplicate entry 'search_attachments_helpers_id' for key 1 query: INSERT INTO qqq_sequences VALUES("search_attachments_helpers_id", 2) in /usr/ ... /yyyy/htdocs/includes/database.mysql.inc on line 172.
2. Cannot modify header information - headers already sent by (output started at /usr/ ... /htdocs/modules/search_attachments/search_attachments.module:1) in /usr/ ... /yyyy/htdocs/includes/common.inc on line 314.
3. Cannot modify header information - headers already sent by (output started at /usr/ ... /htdocs/modules/search_attachments/search_attachments.module:1) in /usr/ ... /yyyy/htdocs/includes/common.inc on line 141.
B. Deinstalling:
First step, one entry in the logtable:
1. Cannot modify header information - headers already sent by (output started at /usr/ ... yyyy/htdocs/modules/search_attachments/search_attachments.module:1) in /usr/ ... /yyyy/htdocs/includes/common.inc on line 314.
C. Second step (definitive uninstall)
Warning on the uninstall screen:
• user warning: Table 'yyyy_qqq.search_dataset' doesn't exist query: DELETE FROM search_dataset WHERE type = "file" in /usr/ ... /yyyy/htdocs/includes/database.mysql.inc on line 172.
• user warning: Table 'yyyy_qqq.search_index' doesn't exist query: DELETE FROM search_index WHERE type = "file" in /usr/ ... /yyyy/htdocs/includes/database.mysql.inc on line 172.
• user warning: Table 'yyyy_qqq.sequences' doesn't exist query: DELETE FROM sequences WHERE name ="search_attachments_helpers_id" in /usr/ ... /yyyy/htdocs/includes/database.mysql.inc on line 172.
Message on the uninstall screen:
The selected modules have been uninstalled.
1. Table 'yyyy_qqq.search_dataset' doesn't exist query: DELETE FROM search_dataset WHERE type = "file" in /usr/ ... /yyyy /htdocs/includes/database.mysql.inc on line 172.
2. Table 'yyyy_qqq.search_index' doesn't exist query: DELETE FROM search_index WHERE type = "file" in /usr/ ... /yyyy/htdocs/includes/database.mysql.inc on line 172.
3. Table 'yyyy_qqq.sequences' doesn't exist query: DELETE FROM sequences WHERE name ="search_attachments_helpers_id" in /usr/.../yyyy/htdocs/includes/database.mysql.inc on line 172.
Further information.
After installing 2 tables are added in the database:
qqq_search_attachements_files
qqq_search_attachements_helpers
After deintalling the qqq_sequences table still contains the following entries:
qqq_search_attachments_helpers_id (with value = 1)
search_attachments_helpers_id (with value = 2)
After deleting these entries by hand, I installed the module again.
This produced the message that the module was succesfully installed. However the log table contained the following message:
Cannot modify header information - headers already sent by (output started at /usr/.../yyyy/htdocs/modules/search_attachments/search_attachments.module:1) in /usr/.../yyyy/htdocs/includes/common.inc on line 314.
In the database were the two tabels added as mentioned above.
Comments
#1
#2
I am not sure what caused this series of install and uninstall errors -- during development I do repeated installs and uninstalls on a test instance of Drupal. However, I have never done any testing using database table prefixes, so I will look into that. If your Drupal instance is "clean" at this point, I'd like you to try to install the latest version of the module, which I hope to make available this weekend, to see if these errors persist.
#3
OK, I will try the new version and report my findings. By using the provision for table prefixes in settings.php I separate the tables of my two sites that are based on one set of modules. The separation with prefixes is necessary because my provider only allows one database.
#4
I thought it was just me! I have been trying for hours to get search_attachments working on my Drupal 5.7 installation. I get a lot of the same sort of errors as those reported above, and have had to completely remove the module or else the website search won't work at all.
I have tried erasing any evidence of search_attachements in the database, then reinstalling the search_attachments_5_x_3.tar.gz release but Drupal won't pick it up as a module at all. It doesn;t matter whether I put it in the /modules folder or the /sites/all/modules folder, Drupal ignores it. When I drop in search_attachments_5_x_4-dev-2008-03-05.gz Drupal picks it up as a module, I enable it, then I get a blank screen! Doing pretty much anything else on the site continues to give a blank screen. When I go 'Back' in the browser, that's when I get *some* screens to work, but then I get the 'headers already sent' errors. So I've removed it all again.
Any help at all on how to get search_attachments working would be very much appreciated! Is there a more recent version of the code I can try maybe?