PHP Classes

PHP 8

Recommend this page to a friend!

      PHP Parse DOCX to HTML with Images  >  All threads  >  PHP 8  >  (Un) Subscribe thread alerts  
Subject:PHP 8
Summary:Can this work in php8
Messages:8
Author:Greg
Date:2022-11-30 15:51:16
 

  1. PHP 8   Reply   Report abuse  
Picture of Greg Greg - 2022-11-30 15:51:16
I loved this so much in php7, but had to upgrade to php8 and now it wont work I just get this error?

Fatal error: Uncaught ValueError: XMLReader::XML(): Argument #1 ($source) cannot be empty in /var/www/html/test/wordphp.php:798 Stack trace: #0 /var/www/html/test/wordphp.php(798): XMLReader->XML() #1 /var/www/html/test/wordphp.php(1386): WordPHP->getListFormating() #2 /var/www/html/test/wordphp.php(1909): WordPHP->getParagraph() #3 /var/www/html/test/test.php(10): WordPHP->readDocument() #4 {main} thrown in /var/www/html/test/wordphp.php on line 798

No idea how to fix it? any chance you could help?

Thanks in advance, Greg

  2. Re: PHP 8   Reply   Report abuse  
Picture of Timothy Edwards Timothy Edwards - 2022-12-14 11:06:09 - In reply to message 1 from Greg
Greg,
Sorry about the delay in replying. Glad that you liked my package.

Thanks for your question. When I created this package, I did not have access to a suitable php 8 environment, so was unable to test it. I will now have another look to see if I can create a php 8 environment to test this. Will get back to you.

Regards,
Timothy Edwards

  3. Re: PHP 8   Reply   Report abuse  
Picture of Greg Greg - 2022-12-14 13:32:46 - In reply to message 2 from Timothy Edwards
Hello Timothy,

Amazing to hear from you, that would be amazing if you could take a look, its such a useful package. . massive thanks in advance.

I'm also more than happy to set you up a php8 environment if that would help?

Look forward to hearing from you again soon, Greg :)

  4. Re: PHP 8   Reply   Report abuse  
Picture of Greg Greg - 2022-12-14 13:33:42 - In reply to message 3 from Greg
or a Christmas beer if you prefer hehe, Greg

  5. Re: PHP 8   Reply   Report abuse  
Picture of Timothy Edwards Timothy Edwards - 2022-12-14 22:20:04 - In reply to message 4 from Greg
Greg,
I have managed to set myself up a php 8 environment and have been able to duplicate your error messages. I think that I have found a solution to the problems, and I have got my test Word document displaying correctly as a html document. However I will do more tests tomorrow to confirm this.

Regards,
Timothy

  6. Re: PHP 8   Reply   Report abuse  
Picture of Greg Greg - 2022-12-14 22:44:23 - In reply to message 5 from Timothy Edwards
amazing, thank you so much!

Look forward to hearing from you tomorrow. . :)

  7. Re: PHP 8   Reply   Report abuse  
Picture of Timothy Edwards Timothy Edwards - 2022-12-15 11:08:58 - In reply to message 6 from Greg
Greg,
Now updated the package to run on (at least) php 8.1

Hope that this is now OK for you. Let me know if you have any further problems.

Regards,
Timothy Edwards

  8. Re: PHP 8   Reply   Report abuse  
Picture of Greg Greg - 2022-12-15 13:18:14 - In reply to message 7 from Timothy Edwards
amazing, thank you so much, I will have a play when I get home tonight!

Thank you so so much