I think that in function _apachesolr_index_process_entity_get_document (modul apachesolr) has to be:

- if (function_exists('drupal_get_path_alias')) {
+ if (!empty($path) && function_exists('drupal_get_path_alias')) {

because file entity haven't (in my instalation only?) 'uri callback'.

Issue is described in drupal.org/node/1605162#comment-6059946

Comments

pwolanin’s picture

Version: 7.x-1.0-rc4 » 7.x-1.x-dev
Priority: Normal » Minor
pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB

We can just move that code up inside the existing if block that checks $path

pwolanin’s picture

Status: Needs review » Needs work

language won't be populated

pwolanin’s picture

Status: Needs work » Needs review
StatusFileSize
new2.11 KB
nick_vh’s picture

StatusFileSize
new2.66 KB

Had to re-roll and make sure the fix for $document->site was incorporated in this patch

nick_vh’s picture

StatusFileSize
new2.64 KB

I hate the fact that netbeans does not allow me to set the whitespace truncating settings per project :)

Adding another patch without the whitespace fail

nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed to 7.x-1.x

nick_vh’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new2.56 KB
nick_vh’s picture

Status: Needs review » Fixed

Fixed

nick_vh’s picture

Status: Fixed » Closed (fixed)

closing to clear out the issue queue a bit