Forum


Replies: 1   Views: 1870
The file is corrupt and cannot be opened
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 davelavinsky  · 20-02-2020 - 01:45

I'm using hpdocx-corporate-5.5

Now Im getting some errors like this :

[19-Feb-2020 14:19:58 America/New_York] PHP Deprecated:  Function create_function() is deprecated in /home/user/lib/3rdParty/phpdocx-corporate-5.5/lib/dompdfParser/include/parserhtml.cls.php on line 445
[19-Feb-2020 18:58:43 America/New_York] PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/user/lib/3rdParty/phpdocx-corporate-5.5/classes/HTML2WordML.inc on line 974

 

Posted by admin  · 20-02-2020 - 07:19

Hello,

That deprecated messages appear when using an old version of phpdocx and a new PHP version. For example, PHP 7.3 is supported since the release of phpdocx 8.5 (https://www.phpdocx.com/news/post/phpdocx-v8-5-release-notes/217).

We recommend you to upgrade to the latest release of phpdocx. Otherwise, you'd need to hide notices and deprecated messages with PHP.

Regards.