Forum


Replies: 7   Views: 3332
Embedexternalhtml.php doesnt work
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 Graff  · 08-08-2012 - 19:33

Just ran embedExternalHTML.php example without editing and got a lot of errors:
Warning: explode() expects parameter 2 to be string, array given in .\pdf\include\style.cls.php on line 964
Warning: explode() expects parameter 2 to be string, array given in .\pdf\include\style.cls.php on line 964
Strict standards: Only variables should be passed by reference in .\classes\HTML2WordML.inc on line 615
Strict standards: Only variables should be passed by reference in .\classes\HTML2WordML.inc on line 620

and a lot of other.

Am I doing something wrong?
How can I fix this errors?

Thanks.

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

Hello,

Do you get any docx?.

Regards.

Posted by Graff  · 11-04-2013 - 12:13

No, docx folder is empty.

Here is a crashlog http://www.multiupload.nl/YHA03NZOGV

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

Hello,

Please paste your log here:

http://pastebin.com/

Regards.

Posted by Graff  · 11-04-2013 - 12:13

Its 14 megabyte html, compressed to 85kb rar file. Pastebin says its too large and I cannt upload rar to pastebin.


Its base64 encoded rar archive, so you need to download base64 text, decode it and you will get a rar archive, uncompress rar archive and you will get an 14 megabyte html file with crashlog.

http://pastebin.com/jjw3Jca1

Thanks.

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

Hello,

Checking your log, we see this error (warnings are not errors, just warnings, of course it shouldn't be there but they don't do fail a php script):

[b]Fatal error: Maximum execution time of 30 seconds exceeded in classesHTML2WordML.inc on line 617[/b]

EmbedExternalHTML example downloads a whole page and transforms it to DOCX. So as it takes more than 30 seconds, you should increase your time limits in your php config.

Regards.

Posted by Graff  · 11-04-2013 - 12:13

So why you didnt put [quote]set_time_limit(999999999999999999999999);[/quote] into this script?