cancel
Showing results for 
Search instead for 
Did you mean: 

The preview could not be loaded from the server

naspar
Champ in-the-making
Champ in-the-making
Hi Guys, hope someone could help me.

I got the following error when i try to get a preview or online document editing :

"the preview could not be loaded from the server"

Any ideas in how to solve it ?

Stack :
OS Smiley Very Happyebian Lenny 5.02
Alfresco : 3.4a
Db : MySql

Thanks in advance
5 REPLIES 5

naspar
Champ in-the-making
Champ in-the-making
Does anybody know how to change the log level to debug ?

i am trying to figure out the problem related to the "render" of document ("The preview could not be loaded from the server").

I am sorry for my "easy" question but alfresco is a huge world to learn ..

thanks

type
Champ in-the-making
Champ in-the-making
I had the same problem on OpenSuse 11.3 64 Bit.

The solution was to install some missing 64Bit C++ library. You can check the path of pdf2swf in alfresco-global.properties. Then execute this command in a shell and see if it works fine. I my case, it printed out the name of the missing library.

Hope this helps.

error
Champ in-the-making
Champ in-the-making
It's so simple,

1. Install swftools (in ubuntu: sudo apt-get install swftools)
2. locate pdf2swf (usually in /usr/sbin/pdf2swf)
3. open your /opt/alfresco-x.x.x/tomcat/shared/classes/alfresco-global.properties

edit your default setting to something like this:

ooo.enabled=true
swf.exe=/usr/sbin/pdf2swf

save and then restart the alfresco : alfresco.sh restart

It works for me

-karfi

onlyodin
Champ in-the-making
Champ in-the-making
I discovered this also with a fresh install of alfresco-3.4.d.

My resolution was slightly different; following the above instructions I located the path to pdf2swf, and upon attempting to execute it was presented with the following error:
/opt/alfresco-3.4.d/common/bin/.pdf2swf.bin: error while loading shared libraries: /opt/alfresco-3.4.d/common/lib/libstdc++.so.5: file too short

libstdc++.so.5 files:
-rw-r–r– 1 root root      23 Nov 29 23:42 libstdc++.so.5
-rw-r–r– 1 root root  710608 Nov 29 23:42 libstdc++.so.5.0.3

investigation found the libstdc++.so.5 file contained the following:
# cat libstdc++.so.5
link libstdc++.so.5.0.3

So by removing the dud 'link', and creating a proper one:
rm -f libstdc++.so.5
ln -s libstdc++.so.5.0.3 libstdc++.so.5

Now running pdf2swf from the cli now gives me a list of parameters + options, and the flash preview works perfectly.

Hope this helps others.

thoralt
Champ in-the-making
Champ in-the-making
Hi,

rm -f libstdc++.so.5
ln -s libstdc++.so.5.0.3 libstdc++.so.5
this was very helpful, thanks a lot!

Thoralt