I'm using the apachesolr_autocomplete module which works great on the main search page. It doesn't work on the search block in the header. Any idea why it is not working?

I'm using Drupal Commons 1.3

Comments

mysty’s picture

Same issue with Drupal Commons 1.7 and the Commons Origins theme, though I did hope some hope for this patch: http://drupal.org/node/1119314#comment-4322486

Unfortunately, the issue remains, and also exists with the Commons Environs and Commons Connect themes.

nico_’s picture

Has this issue ever been solved? I can confirm it for Commons 1.6, and Apache solr autocomplete 6.x-1.2, for the Origins, Environs and Root themes, although on my test system the Connect theme does not seem to have that problem. I also tried http://drupal.org/node/1119314#comment-4322486, which does not solve the problem. I think BarisW also posted that issue here: http://commons.acquia.com/discussion/apachesolr-autocomplete-not-working..., but I dont fully understand what the multisite search (as suggested there) has to do with our issue.

nico_’s picture

This is NO solution, but something I just saw: Commons Connect implements the theme_search_theme_form() (which from what I know should not be happening anyways, better search-theme-form.tpl.php), thus overriding some of the changes made by the base theme of Commons, Fusion Core. It is real stupid to directly hack into the Commons themes of course, but if there is no other solution, you can consider doing the same, e.g. using the hook above:

function commons_origins_search_theme_form($form) {
	return drupal_render($form);
}

Again, this is NO solution, just a work-around for the desperate ones. From my point of view, this is a Fusion Core theme issue, and they should see if there is a way to make this work.

japerry’s picture

Version: » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (won't fix)

Marking as won't fixed as this is no longer relevant for newest versions of commons, and versions below 7.x-3.x only receive security fixes. You can also visit #2142923: Upgrading From Drupal 1.5 to 2.x or 3.x for the update status of legacy commons installs and more information on upgrading to the latest version of Commons.