Download & Extend

Fatal error: Call to undefined function apachesolr_index_set_last_updated() in apachesolr_access/apachesolr_access.module

Project:Apache Solr Search Integration
Version:6.x-3.x-dev
Component:Node access
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Came across this error while running a node access rebuild. It appears that this function has been removed and replaced with apachesolr_set_last_index_updated(). So, I've replaced:

apachesolr_index_set_last_updated();

with

apachesolr_set_last_index_updated(apachesolr_default_environment());

This works for me, but I'm not totally sure about the apachesolr_default_environment() part. Do I need to worry about other environments? A patch of this change is attached.

AttachmentSizeStatusTest resultOperations
apachesolr_access_nodeaccess_rebuild.patch635 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 397 pass(es).View details

Comments

#1

Status:active» needs work

Good catch,

I suppose we should somehow find out for what environment someone would want to rebuild the nodeaccess? Is there any info that would allow us to do so?

#2

Status:needs work» needs review

We only index to the default environment right now, so I think this is ok.

#3

Status:needs review» needs work

Ugh, I think that's the totally wrong function to call.

#4

Status:needs work» needs review
AttachmentSizeStatusTest resultOperations
1418136-4.patch1.25 KBIdlePASSED: [[SimpleTest]]: [MySQL] 397 pass(es).View details

#5

plus new test assertions

AttachmentSizeStatusTest resultOperations
1418136-5.patch2.91 KBIdlePASSED: [[SimpleTest]]: [MySQL] 415 pass(es).View details

#6

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

committed to 7.x

#7

Status:patch (to be ported)» fixed

Committed to 6.x-3.x

#8

Status:fixed» closed (fixed)
nobody click here