cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] No document preview working

noven
Champ in-the-making
Champ in-the-making
I am running Labs 3.1 stable on ubuntu 8.04. After searching these forums for possible solutions to my problem I have installed openoffice.org-headless-3 and swftools-0.9.0.
Openoffice is starting and listening on port 8100
When i upload .odt or .doc files they are being indexed correctly - searching brings up documents with the searched word located within.
When I go into the details of any document, the preview does not work.
When bringing up a .doc or .odt, I get the error 'The preview could not be loaded form server'
When I bring up a pdf file, the little circle just keeps spinning its wheels for ages (I left it while I went to get lunch, when I came back 30m later, it was still spinning)
I cannot find any errors in my log - I am looking in alfresco.log, is there another log I should be looking at?
Any pointers on what to investigate next?

EDIT

Okay, not sure if this is relevant or not, but I just rebooted and I noticed via repeated netstats that port 8080 starts listening almost a minute before openoffice on port 8100. I got the following warning in alfresco.log:
17:14:48,098 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
But by the time its up an I log in OO is listening. Could this be a problem?
1 REPLY 1

noven
Champ in-the-making
Champ in-the-making
Okay, I just got it working by following the solution here: http://ihatecubicle.blogspot.com/2009/01/alfresco-share-flash-preview.html

Basically edit webapps/alfresco/WEB-INF/classes/alfresco/thumbnail-service-context.xml to change

<bean class="org.alfresco.repo.content.transform.swf.SWFTransformationOptions">
<property name="flashVersion" value="10"/>
</bean>

Note the 10. It is a 9 by default. I presume this just broke it for anyone still using flash 9 but…

Also I may have fixed it after installing the updated swftools but didn't clear my browser cache until after the above fix. So, after applying any supposed fixes, clear your browser cache or you'll keep getting the dodgy cached attempts to generate previews!