Wednesday, October 20, 2010

Adjusti-Search Issues

12:30-ish p.m. Adjusti-Search module starts calling up a random page when a search is executed. The result is an error page. This happens intermittently and I have not been able to isolate the cause yet.

Steps taken and outcome:
1. Run cron - no change
2. Empty cache - page called changes but is still incorrect
3. Disable Adjusti-Search module - no change?
4. Empty cache and/or run cron - website stops calling style sheet
5. Renable Adjusti-Search module and run cron - no change
6. Empty cache - style sheet works but Adjusti-Search still malfunctions.

The chump is stumped.

1:30 p.m. - It's working again. I think it just randomly grabbed the correct URL from the table. It think the Adjusti-Search table may have some corrupt records in it.

Plan: Backup the database and run Update.php when Sharon comes back. Also check the table for corrupt records when Sharon comes back. May consider uninstalling and reinstalling module.

10-20-2010 3:30 p.m.: Ran Update.php, no change.

10-28-2010 1:40 p.m.: Disabled block until yesterday. Still experiencing the same problem.

11/1/2010 3 p.m.: Disabled CSS and Javascript optimizing in "Performance". Adjusti-Search would call temporary css and js files, so I disabled the optimization feature to see if it helps. So far Adjusti-Search is working again. Fingers are crossed.

11/2/2010: It's malfunctioning again.

11/3/2010 10 a.m.: Uninstalled and Reinstalled module on a test server and it worked for awhile. However, around 1 p.m. it started malfunctioning again. Contacted Connor.

11/3/2010 2:30 p.m.: Enabled PPLD Search module (Adjusti-Search prototype) and got the same error. Enabled default Drupal search and it works fine.

11/3/2010 3:30 p.m.: Connor replied with the following suggestion:
  1. Open the adjustisearch.module file for editing wherever you have it installed on the server.


  2. In the code, find the line that says "function
    adjustisearch_block_form($form_state) {" (this line should be around line 137 or so).


  3. Add the following line of code right after the line "$form = array();":
    $form['#action'] = url('');


  4. Save the file. Clear your Drupal cache. Then try Adjusti-Search again.



11/10/2010 2 p.m.: Adjusti-Search has been working for the past week. Yay Connor!!

Wednesday, October 13, 2010

Aftermath

Putting out lots of little and not so little fires. The big one right now is the AdjustiSearch module doesn't always work. Sometimes I get "Accessed Denied" and sometimes I get the "Whoops" page and most of the time it works fine. I'm trying to isolate the problem(s) but no real luck yet.

Here's what I have so far:
-The "Whoops" page happens for anonymous users only, across all browsers.
-No cause has been found yet.
-The default search form works fine.
-Emptying cache does not help.
-Disabling and re-enabling the module does not help.
-It happens intermittently and will start working again without rhyme or reason.
-The search returns the following urls, all of which are "Whoops" pages, when it is malfunctioning:
--http://ppld.org/ieupdate.js?adjs_type=1
--http://ppld.org/sites/default/files/css/css_2206d48491af4b609c7ee4d274aece51.css
--http://ppld.org/aboutyourlibrary/services/ElPomar/default.asp

10/14/10 11 a.m.: After much dinking around, including adding code for the ieupdate.js highlighted here: http://www.amarasoftware.com/flash-problem.htm, removing the code when it caused other problems, and emptying cache multiple times it started working again.

10/14/10 1 p.m.: It's down again. And returning misc URLs. Connor thinks it's somehow pulling the URLs from the database.

10/15/2010 3:35 p.m.: Does running cron fix it?