Forum


Replies: 3   Views: 21567
Getting "warning: rename(./test.html,test.html)" error docx to html conversion
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by borlemanski44  · 26-09-2016 - 01:56

The docx to html transformation is no longer working and I'm getting the following error. 

Warning: rename(./test.html,test.html): The system cannot find the file specified. (code: 2) in C:\wamp\www\phpdocx\classes\TransformDocAdvLibreOffice.inc on line 131

What does this error mean? I've seen answers that the permissions of a temp folder could be the cause. Where is the temp folder located?

Posted by admin  · 26-09-2016 - 06:29

Hello,

That error shows when the conversion plugin can't generate the file.

Please follow the instructions available on:

http://www.phpdocx.com/documentation/conversion-plugin/debugging-libreoffice

to debug it.

Also please check that LibreOffice is not running 'in normal mode' (this is LibreOffice opened in the desktop) when doing the transformations.

Regards.

Posted by borlemanski44  · 27-09-2016 - 14:08

I've seen those debugging solutions, but they only pertain to a Linux based system. I'm runnning WAMP on a windows based system. Is there an alternative solution for that type of stack?

Posted by admin  · 28-09-2016 - 06:43

Hello,

The steps are the same, but instead of using the Linux terminal you need to use the Windows terminal.

For example, to run the example using PHP CLI mode:

C:\> C:\wamp\php\php.exe sample_1.php

You just need to change the paths to the correct ones of your server.

For further support, please contact the dev team on

http://www.phpdocx.com/contact

Regards.