-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XAMPP with PHP 5.3.1 #236
Comments
Can you give us the error messages? I assume you're using Linux? |
I use a Mac 10.9.2 and by the creation of the file there is no error message. The file can be stored without any error. But if i try to open the file with Mac Pages or Open Office it can't open the file because the file is damaged, so the message from Open Office or Pages ! |
Ok. So the file was created, but you got an error message of corrupt document when opening the file with Open Office or Pages. Can you try with other sample, e.g. I think the bug is caused by a malformed format of the resulting document. MS Word can handle the error internally, but Open Office and Pages cannot because they use more strict standard. We have to find out what went wrong in the format. I'm using MS Word on Windows, so I don't have the same problem. But my Open Office is indeed crash when I try to open |
Thanks
|
Hi, is there a solution or a workaround possible ? |
Hi @samlinux. Sorry I still can't give you any solution for now. As I've told you, I suspect that the problem was caused by the way the word processing application (Pages and OO) reads the DOCX. But I've been able to open a file produced by PHPWord from a Mac using Pages 5.x. What version of Pages and OO are you using? |
Hi @ivanlanin, I use Pages 5.2 and ok I can see the document like you, but in the meantime I have setup a windows 7 environment so I can test the docs also on windows under Office 2010, as a small workaround for me. |
Great. Thanks for trying to do some more tests. I'll find time to setup the same environment like you have. |
…agraph style refactoring
Hi @samlinux. I think I found (and fixed) the bug that caused OpenOffice to crash when opening DOCX documents produced by PHPWord. Can you please get the latest version from the |
@samlinux Any news? Can we close this issue? Thanks. |
@ivanlanin hi, sorry for the late response, I was very busy, because of this I can't check it, I will check it this weekend :) |
No problem :) Thanks. |
Hi @ivanlanin I have tested the developer-branch, downloaded the ZIP from https://github.com/PHPOffice/PHPWord/tree/develop but it doesn't work neither the pages nor the open-office version. The error is always the same, like described above. This is my environment:
I tried two of the samples:
|
Thanks for taking time to test it, @samlinux. Sorry I still couldn't help to solve the issue. We'll leave this open then. |
Out of curiosity, I tried running PHPWord Sample_01_SimpleText.php under XAMPP 1.7.3 (PHP 5.3...). So in 2019, PHPWord doesn't even start under PHP 5.3, due to some dependencies using the short array syntax (which appeared in PHP 5.4). The first one to trigger a syntax error was guzzlehttp/promise. So it appears that the modern PHPWord only supports PHP 5.4+ anyway. I tried with PHP 5.4, everything worked fine and the resulting file displayed OK in Word. This issue can be closed IMHO. |
HI is there a reason why the Sample_01_SimpleText.php example not work with the following configuration:
But the all requirements seems to work:
Requirements
PHP 5.3.0 ... passed
PHP extension ZipArchive ... passed
PHP extension XML ... passed
PHP extension GD (optional) ... passed
Thanks for any help
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: