Installed apachesolr as per instructions. Running Drupal 6.12 on centos os with PHP 5.1.6. OG installed so enabled Apachesolr OG integration.
Enabled a bunch of filters. Go to "Search index" in apachesolr settings. I see:
The search index is generated by running cron. 26% of the site content has been sent to the server. There are 284 items left to send.
The server has a 4 min delay before updates are processed.
Number of documents in index: 66 (50 sent but not yet processed)
Numer of pending deletions: 1
When I click on "running cron" link:
admin/reports/status/run-cron?destination=admin/settings/apachesolr/index
I get a bunch of these errors:
warning: htmlspecialchars() expects at most 3 parameters, 4 given in apachesolr.index.inc on line 38.
I searched this issue queue for htmlspecialchars but only found this http://drupal.org/node/420290 which doesn't seem related.
Is there anything else I need to do, or is this a bug? Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | simple-htmlspecialchars-464758-2.patch | 866 bytes | pwolanin |
| #2 | complex-htmlspecialchars-464758-2.patch | 1.22 KB | pwolanin |
| #2 | suppress-htmlspecialchars-464758-2.patch | 874 bytes | pwolanin |
Comments
Comment #1
somebodysysop commentedI initially thought this might be related.
I should mention that I have taxonomy_access and og_subgroups modules installed as well.
I did a search for "test". Got the default Drupal search results screen. Then, I clicked on the "Search" tab. Got the white screen of death. The httpd server reports these errors:
So, I unchecked the following filters:
Apache Solr OG: Filter by Organic Group
Apache Solr Search: Filter by taxonomy ...
Re-indexed site. Re-ran cron. Still get this error after running cron:
Executed normal search. Clicked on "Search" tab. No longer getting errors there.
So, I guess this is another problem with OG and taxonomy filters. Any suggestions for these? I find no reference to "taxonomy_access", "taxonomy_admin_term_edit" or "og_subgroups" when seaching apachesolr issues.
Comment #2
pwolanin commentedAh, you must be using PHP < 5.2.3:
http://www.php.net/manual/en/function.htmlspecialchars.php
Sorry about that - the intent is to be usable on PHP >= 5.1.4.
Attached are 3 possible patches - 2x simple ones and the more complicated. I think any one should alleviate the warning you are seeing with regard to this function.
The other errors are more mysterious.
Comment #3
somebodysysop commentedI used the simple patch. Ran index and cron. Error appears to have disappeared.
Thanks!
Got some other issues, but will post them separately. Thanks for the fast post.
Comment #4
somebodysysop commentedComment #5
pwolanin commentedThis is not fixed unless the code is committed to CVS. Probably the simple one is good enough, though we should re-confirm, since it may double-encode & chars.
Comment #6
somebodysysop commentedOops, sorry. It appears to be working. Anything in particular I should look for?
Comment #7
pwolanin commentedIt should be working - main issue is if you see any double-encoding of &
Comment #8
pwolanin commentedcommitting "simple" patch to 6.x