[RESOLVED] Blank page when using Oogie (upload_ppt.php)
Hello,
I have a blank page when i try to upload a powerpoint file (upload_ppt.php) using Oogie converter.
I ran the command soffice -headless blablabla -accept="blabla;host=myaddress;port=8100" and all that. This works fine as i can see the results of the soffice listening with the netstat command on my localhost address.
On the Oogie extension page, localhost and port 8100 are set, everything else is left blank.
Save the settings.
But, when going on a course, trying to convert a powerpoint is giving me a blank page (address given by firefox is "http://myserverblalablaa/main/upload/upload_ppt.php")
Nothing else is happening even after a long period of time.
I checked all the params for chamilo to run properly, especially the php.ini but size limit are 30Mb for files, upload is readable / writable / executable, so i don't understand what the problem is.
Can you enlight me please ?
Thanks



Comments
<(*_*)>
I would be very thankful if you continue with quality what you are serving right now with your blog...I really enjoyed it...and i really appreciate to you for this....its always pleasure to read so....Thanks for sharing!!! a+ certification practice test | act exam | 642-832 | 650-369 | 70-443 | 70-640 | MB2-866 | MB6-206 |
[RESOLVED]
Me again. I finally made it working. Here are my steps :
1) Modify the various class of some .php files to match PHP5 declaration. See posts http://www.chamilo.org/en/node/730 for more info.
I found it by viewing the logs of my apache server, having fatal errors 28 in it.
2) Then got "Could not connect to server". My OpenOffice server was running fine, could see it with netstat command. However, the network IP it was listening too wasn't working. And the localhost listening either.
The main difference is that when specifying an IP address on your soffice command line, you could see a line in netstat with "LISTENING". If you give "localhost" as the IP address, you see soffice running but it's not written "LISTENING". I changed the "localhost" value for 127.0.0.1 on the soffice command line and it works. Strange but... try that if it don't works for you.
3) Then got an error like this with Oogie "File too complex. Could not convert this file". Having manual conversions with jodconverter on my shell gave me lots of java error.
Solution : searching on google made me thought some OfficePackage were missing. If you run your own Linux server, and only the headless OOo, please install openoffice.org and openoffice.org-java-common to made it working (openoffice.org-headless alone doesn't work).
Thanks anyway, the conversion is working fine now and it's really powerfull. This LMS tools is just crazy, hope my company will allow it, then i wish i will give you some credits because i'm working for an international well known company, hope it could boost this association.
Made some more investigations
Made some more investigations today.
- First, i checked the upload_ppt.php for commented lines of code or errors in it, even if i doubt you would have left some. I didn't find anything wrong
- Secundo, i checked for the HTML code of the page with the input file button. The <FORM> is well declared, and all vars are also OK. It seems that when submitting the form, a progress bar should be displayed but i don't see anything, even not the static gif like a read somewhere in the help section.
- Tercio, i ran EtheREAL to capture and analyze packet traffic. I checked if the POST method was working. What i found is this :
- POST over myserver/main/upload/upload_ppt.php
- content-type : multipart / Form-data boudary=--------------(numbers & letters here)
- host = myserver
- content-length=8855329 (so only 8Mb, i'm with a 30Mb max file size config)
Then i got 10 000 packets with HTTP continuation or non-http traffic
- The problem occurs in both Firefox and IE, and the security or cookies / javascript are set correctly to permit everything. I can see the progress bar in the status bar doing quickly things with IE, but at last, i get a blank page with both browser, ending on "/main/upload_ppt.php"
I don't know what much i can do.
Soffice is running in headless on the same server, listening over the ip address (not localhost) and port 8100 and it's well configure in the Oogie section of the Chamilo administration page.
Any ideas ? (i'm working for a big company but no one here has heard of chamilo nor have Linux skills)
Hi Stepin, I just finished a
Hi Stepin,
I just finished a new installation of Chamilo/OOgie on an Ubuntu 10.04 LTS server edition. Here is what I did to get it up and running:
Concerning Chamilo, install it normally on a web server (Apache, Nginx or else) and enable/activate OOgie by the administration panel.
Concerning the server, this is the content of my /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
If you modified yours,
sudo aptitude update
sudo aptitude safe-upgrade
Now you have to install Java first.
aptitude install openjdk-6-jre openjdk-6-jdk openjdk-6-jre-headless
You can check the java version by:
sudo java -version
If you have more than one version installed, you can choose version 6 by:
sudo update-alternatives --config java
Edit your /etc/profile file by:
sudo nano /etc/profile (and add these 2 lines at the top of the file)
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
export PATH=${JAVA_HOME}/bin:${PATH}
Edit your /etc/bash.bashrc file by:
sudo nano /etc/bash.bashrc (and add these 4 lines at the top).
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
reboot
echo $JAVA_HOME (to see if $JAVA_HOME is set -> should )
Now install Openoffice
sudo aptitude install openoffice.org
Add the next line in /etc/rc.local by
sudo nano /etc/rc.local
and paste this line in it just before -> exit 0
soffice -headless -nologo -norestore -accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
reboot or launch /etc/rc.local process and it should be working.
It should work on a single machine setup. I mean if the Chamilo's files are not directly on the web server, on a separate NFS for example, it will not work.
I hope this will help you.
Michel
++++++++++++++++++++++++++++++++++++++++++=