Closed (fixed)
Project:
Search API attachments
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2011 at 16:28 UTC
Updated:
8 Aug 2013 at 22:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
ki commentedI have found a fix and share it for others who may have similar situation.
Inserting export command did the trick. According to http://stackoverflow.com/questions/278868/calling-java-from-php-exec, running JVM under MAMP, which I use, fails without the patch. This may not be an issue with hosting; I will see.
Ki
Comment #2
ki commentedI see that class method extract_tika() in callback_attachments_settings.inc already contains code checking for MAMP. So same checking could be implemented in .install since the issue is already known.
Comment #4
BarisW commentedThanks, same here. Might be an idea to change to hook_requirements()?
I changed
exec(variable_get('apachesolr_attachments_java', 'java') . ' -version > ' . $tmp . ' 2>&1');into:
exec('export DYLD_LIBRARY_PATH=""; ' . variable_get('apachesolr_attachments_java', 'java') . ' -version > ' . $tmp . ' 2>&1');And now it works. I'll re-activate this thread as it wasn't solved. The maintainer may decide what to do with it.
Comment #5
tauno commentedPatch to match how java is called in extract_tika()
Comment #6
lotyrin commentedComment #7
izus commentedassigning to me for review & merge
Comment #8
izus commentedHi,
merged in 7.x-1.x
Thank you all !
Comment #9
izus commented