The function "apachesolr_attachments_apachesolr_process_results()" creates invalid html. There is a DIV in an inline tag which creates an validation error. Replace the

by a and the error is fixed.

line 201: $item['snippet'] .= '' . $file_type .' '. $node_link . '';

CommentFileSizeAuthor
replace_div.patch803 bytesDomoSapiens
Share the Gift of Open Source & Drupal sponsored by Pantheon Pantheon

Comments

jpmckinney’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Active » Reviewed & tested by the community

Indeed, the default search-result.tpl.php prints $snippet inside a p tag, and p tags cannot contain div tags.

Also affects 2.x

jpmckinney’s picture

Status: Reviewed & tested by the community » Fixed

#907504 by DomoSapiens: apachesolr_attachments_apachesolr_process_results creates invalid html.

in both 6.1 and 6.2

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.