Forum


Replies: 5   Views: 3345
Addhtml deprecation error
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 seanw  · 30-11-2010 - 21:11

The addHTML example does not work, it returns the following error:

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\docgen\phpdocx2\classes\HTML2DOCX.inc on line 226
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\docgen\phpdocx2\classes\HTML2DOCX.inc on line 1967


Also, when this is fixed, should it be possible to use this in a file along with other functions? In v1.7, this would corrupt the file and not allow it to open properly if used in conjunction with other functions like addText.

Posted by admin  · 11-04-2013 - 12:12

Hello,

Deprecated methods aren't errors. These are methoods in the future won't be used.
We have tested the example and is working fine.

Posted by mporter42  · 11-04-2013 - 12:12

Does that mean you are removing the HTML to Docx support altogether? We just bought the pro for this function.

Posted by admin  · 11-04-2013 - 12:12

Hi,

Methods won't be removed. In the future they will be rewritten but using the same name and with more features.

Regards.

Posted by Cmaas  · 11-04-2013 - 12:12


When I try the $docx->addHTML($html); i have this message in log file bot no file generated ?

02/28/11 13:55:34,950 [2304] INFO phpdocx_error - Create a temp file to use as initial ZIP file. DOCX is a ZIP file.