Closed (duplicate)
Project:
Apache Solr AJAX
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
11 Dec 2009 at 18:59 UTC
Updated:
3 Sep 2019 at 10:52 UTC
Jump to comment: Most recent
Comments
Comment #1
jpmckinney commentedI made a mistake in the documentation. Try the following in your template.php:
The first and last hooks (whose function names start with mymodule) should be defined in a custom module. See the first two parts of the module developer's guide: http://drupal.org/node/206753 Remember to substitute your custom module's name for "mymodule".
Comment #2
jpmckinney commentedTwo weeks without reply. I assume it's fixed.
Comment #3
Anonymous (not verified) commentedSorry I've been busy with other stuff. Will try again later in the week.
Comment #4
Anonymous (not verified) commentedThat did fix it thanks. Because our results page has some other js stuff going on, there seems to be a conflict happening. Haven't got time to investigate so am putting this on the backburner for now.
thanks
Martin
Comment #5
jason ruyle commentedI'm actually getting this error as well, it happens when I got to my search page:
http://www.mydomainname.com/search
or
http://www.mydomainname.com/search/apachesolr_search
And I do not have a search term or keyword. Once I do an actual search, the error is gone.
Comment #6
jpmckinney commentedCould you post the contents of the apachesolr_ajax hooks you've implemented?
Comment #7
jason ruyle commentedBelow is the code. We get these errors for both anonymous and logged in users. I saw this because we do use YUI library and their panes layout, but this is only used for authenticated users, so isn't so relevant.
searchajax.module
preprocess.inc (template.php)
page-search.tpl.php
between head tags
I should note that not all the regions are on the page-search for anonymous users. But don't know if that's related.
Also I should say that not every page does:
print $apachesolr_ajax;But we get the errors on all pages. Even if we redirect users to the search page from another search box.
Comment #8
homoludens commentedmine solution maybe is not the best, but this thing is working:
i changed function theme_apachesolr_ajax_yui
to look like this:
and added following css file apachesolr_ajax.css:
.
i, also, had problem with getting preprocess functions to add js files, so i created:
in apachesolr_ajax.module
it is working in firefox, didn't test other browsers.
Comment #9
jpmckinney commentedSorry for the late reply. Please download apachesolr_ajax 1.4 and read the updates to the documentation. If the new code doesn't work, let me know in this thread.
@homoludens:
I fixed the bug in
theme_apachesolr_ajax_yui. If no argument is supplied, it defaults$srcto "robots.txt".I forgot to mention the CSS rule. I've added it to the documentation at http://drupal.org/project/apachesolr_ajax
I've added a troubleshooting section describing a solution to the problem of the preprocess functions not adding the JS files. Here it is again:
Comment #10
jpmckinney commentedAs these bugs were mostly due to poor documentation, I'm merging with #704582: Enhance Module Documentation.