OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Word Document uploads

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Word Document uploads

Postby Dallas » Fri Jan 07, 2005 11:15 am

We're having a tough situation with uploads of word documents. For some reason I can not get wvWare to successfully convert docs to HTML on the Solaris 9 machines we are planning on using. So, as a workaround, I have a perl glue script that will run wvHtml on a different machine via ssh. This works fine from the command line and should work fine executed via php.

But, I'm encountering an odd behavior. When sumbitting the upload, no matter whan I put in as the wordview program (even invalid or non-existing files), I see the following errors:

Warning: file(/tmp/linux10g2.dochtml): failed to open stream: No such file or directory in /usr/local/apache2/htdocs/ocs/include/submitupload.inc.php on line 72

Warning: join(): Bad arguments. in /usr/local/apache2/htdocs/ocs/include/submitupload.inc.php on line 72

Warning: unlink(/tmp/linux10g2.dochtml): No such file or directory in /usr/local/apache2/htdocs/ocs/include/submitupload.inc.php on line 74


If I remove the 2 unlink commands that would remove the old and new file, I would expect to see the original file in /var/tmp. However, it doesn't look like the temp documents are being created. Permissions on /var/tmp are correct and other processes can use it for tmp file creation.

This is only happening with word files. PDF, HTML, and text uploads all work properly. Any suggestions on where to start digging?
Dallas
 

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests