Categories > OpenTBS with DOCX >

Corrupt document for OPENTBS_DOWNLOAD

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Sarah Kemp
Date: 2013-05-14
Time: 17:52

Corrupt document for OPENTBS_DOWNLOAD

When I use $TBS->Show(OPENTBS_FILE, $filename) I get a good document. If I run the same task but with $TBS->Show(OPENTBS_DOWNLOAD, $filename) I get a corrupt document. Word can repair it without issues, but if I change the .docx (before repairing) extension to .zip I cannot extract the files - it is not a "valid" zip directory. I am using OpenTBS 1.8.0-beta-2013-01-08. I know I successfully used the OPENTBS_DOWNLOAD previously, but have since changed my OpenTBS version, my code, my version of PHP... so I don't know what could be wrong. Any ideas?

Thanks,
Sarah
By: Skrol29
Date: 2013-05-15
Time: 00:34

Re: Corrupt document for OPENTBS_DOWNLOAD

Hi Sarah,

Try this debug help:

The merged document is producing error messages when opened with its application (OpenOffice or Ms Office)
The most likely causes are:
• You've chosen the OPENTBS_DOWNLOAD render option but a php error message or any other unexpected content has been output before by PHP.
Activate the debug mode using the command OPENTBS_DEBUG_XML_SHOW, it helps to check PHP error message and other unexpected content.

http://www.tinybutstrong.com/plugins/opentbs/tbs_plugin_opentbs.html#debug

Another suggestion, use the OpenTBS 1.8.0 instead of OpenTBS 1.8.0-beta.

Regards,