Forum


Replies: 14   Views: 7242
Ziparchive and xslt
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 champton  · 01-06-2011 - 14:50

I seem to get a blank screen when trying to access the examples. I am assuming this is caused by not having ZipArchive and XSLT installed on my server. I do know that I have XSLT installed, but how can I tell if ZipArchive is installed?

My PHP Info page says I have:

XSL enabled
libxslt Version 1.1.22
libxslt compiled against libxml Version 2.7.7
EXSLT enabled
libexslt Version 1.1.22

Zip enabled
Extension Version $Id: php_zip.c 293036 2010-01-03 09:23:27Z sebastian $
Zip version 1.8.11
Libzip version 0.9.0

Posted by mf@netelite.ch  · 11-04-2013 - 12:12

[quote][b]Quote from champton on June 1, 2011, 14:50[/b]
I seem to get a blank screen when trying to access the examples. I am assuming this is caused by not having ZipArchive and XSLT installed on my server. I do know that I have XSLT installed, but how can I tell if ZipArchive is installed?

My PHP Info page says I have:

XSL enabled
libxslt Version 1.1.22
libxslt compiled against libxml Version 2.7.7
EXSLT enabled
libexslt Version 1.1.22

Zip enabled
Extension Version $Id: php_zip.c 293036 2010-01-03 09:23:27Z sebastian $
Zip version 1.8.11
Libzip version 0.9.0 [/quote]


In my case I also get a blank screen, but I found a generated docx in the expamples/easy folder
Some Message would be helpful...

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

I am a bit disappointed by the actual support that comes with this system. From the examples on the blog, this is a get system, but there is no help what so ever. If this were my company, I would want everyone to have a great working PHPDocx.

I keep getting a blank screen in the examples. My server administrator says everything is setup to work properly...Help PHPDocx???

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

After looking at the php code, and wondering why the pages are white when I load them, I noticed there are no closed php tags:

<?php but no ?>

Why is that?

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

I had this issue too and found IIS to be the issue. I was using a Windows and Zend CE configuration. I found the issue to be that the Zend CE install was using IIS. Uninstalling Zend CE and then disabling IIS via the "World Wide Web Publishing Service" in Windows Services, then reinstalling Zend CE but selecting it to install and use Apache 2.x resolved the issue for me. When I ran the page http://localhost/phpdocx/examples/easy/text.php the resulting created doument appeared in the "easy" folder on the web server. It did not appear as a download from the web page if this is what you are expecting!

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

Hello,

Phpdocx use php4log to get info, no screen messages. When you download a file using header function, PHP can't write any message before downloading or you'll get a header error, so DOCX files are created in the specified path and you see a blank screen.
If you need to create and download the DOCX file, please use createDocxAndDownload method.

About '<?php but no ?>', please read the following text:

http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html

Regards.

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

[quote][b]Quote from admin on June 22, 2011, 08:25[/b]
When you download a file using header function, PHP can't write any message before downloading or you'll get a header error,.[/quote]

Actually, thats not true. Simply put the following line at the top of your page that has headers and you can write errors out. I have been doing it for years.

ob_start();

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

I get a blank screen using my code in my live server, though it works fine in my dev environment. When I run the text.php example, I get the following error. There is no file in the easy folder. I'm wondering if folks here got their similar issue resolved but just didn't post a solution. What was the solution? Zip and XSL are installed.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@XXXand inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_fcgid/2.3.5 Phusion_Passenger/2.2.15 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at XXXPort 80



Zip enabled
Extension Version $Id: php_zip.c 305848 2010-11-30 11:04:06Z pajoye $
Zip version 1.8.11
Libzip version 0.9.0

XSL enabled
libxslt Version 1.1.26
libxslt compiled against libxml Version 2.7.8
EXSLT enabled
libexslt Version 1.1.26

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

[quote]
Actually, thats not true. Simply put the following line at the top of your page that has headers and you can write errors out. I have been doing it for years.

ob_start(); [/quote]

Hello,

We try to avoid that function; phpdocx doesn't need to use output buffering to work but creating PDF files.
There's no reason to show an info message on screen; phpdocx is using php4log to get all messages.

Regards.

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

[quote]

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
[/quote]

Hello,

It seems there're a problem about folder permissions. Please check execute and write for scripts and folders.

Regards.

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

[quote][b]Quote from champton on June 1, 2011, 14:50[/b]
I seem to get a blank screen when trying to access the examples. I am assuming this is caused by not having ZipArchive and XSLT installed on my server. I do know that I have XSLT installed, but how can I tell if ZipArchive is installed?

My PHP Info page says I have:

XSL enabled
libxslt Version 1.1.22
libxslt compiled against libxml Version 2.7.7
EXSLT enabled
libexslt Version 1.1.22

Zip enabled
Extension Version $Id: php_zip.c 293036 2010-01-03 09:23:27Z sebastian $
Zip version 1.8.11
Libzip version 0.9.0 [/quote]

change permissions of path.

Posted by Goudron  · 08-07-2013 - 15:06

Hello,



Could anybody please give me check.php file for cheking requirements for PHPDocX?



I can't find this file in the free package.



We thinking about buying PRO version, but we have to check that our virtual hosting meets necessary requirements.



Thank you much!


Posted by Goudron  · 08-07-2013 - 15:14

info.php says that



xsl

XSL     enabled

libxslt Version     1.1.26

libxslt compiled against libxml Version     2.7.6

EXSLT     enabled

libexslt Version     1.1.26



zip

Zip     enabled

Extension Version     $Id: bdd35a2ede0347a3df239de1e7dc5d7e588f00c3 $

Zip version     1.11.0

Libzip version     0.10.1



Is these modules and versions enough for PHPDocX?


Posted by jorgelj  · 09-07-2013 - 08:23

Hello,



If you can run PHPDocX Community version then PRO is compatible (if you'll use plugin conversion you'll need Java too). What version of PHP are you using?.



Regards.