Forum


Replies: 8   Views: 7282
Even "hello world" doesn't 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 Lodemai  · 25-03-2013 - 10:43

Hello,

I downloaded the package, unzip it and tried to run it. Every time I got this Message:

[code]Warning: ZipArchive::open() [ziparchive.open]: Empty string as source in D:\xampplite\htdocs\mpanalyse2\dosp\phpdocx_free\classes\CreateDocx.inc on line 375

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1093

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1097

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1101

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1107

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1113

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object inpath\classes\CreateDocx.inc on line 1119

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1135

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object inpath\classes\CreateDocx.inc on line 1167

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object inpath\classes\CreateDocx.inc on line 1172

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object inpath\classes\CreateDocx.inc on line 1180

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1195

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1202

Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1207

Warning: ZipArchive::close() [ziparchive.close]: Invalid or unitialized Zip object in path\classes\CreateDocx.inc on line 1209

Warning: copy() [function.copy]: Filename cannot be empty in path\classes\CreateDocx.inc on line 1215[/code]

i thought ist maybe is that the zipArchiver is'nt installed, but it is,...
can you help me solve this problem?

Regards,
Mai

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

Hello,

What version of PHPDocX are you using?.

Regards.

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

Hi,

at the moment i'm using the free version, downloaded friday, if that matters...

Regards,
Mai

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

Hello,

You need to install this modules of PHP: ZipArchive, XSLT and Tidy and grant write access to your save folder. And I don't know why but

-------------------------------------------------
D:xampplitehtdocsmpanalyse2dospphpdocx_freeclassesCreateDocx.inc
-------------------------------------------------

seems your server is removing '/' of the path. I recommend you to test included examples in PHP CLI mode.

Regards.

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

Hi,

ok, I will try if the modules are the problem. =o)

The server doesn't remove the ' / ' this happened after copy&paste the warnings.

Regards,

Mai

Edit: So, XSLT is enabled, Ziparchive works, I've write permissions and Tidy is configured, but there's no change of the warnings...
Do you have any Idea what i can do?

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

Hello,

Did you run an example using PHP in CLI mode?

Regards.

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

at the moment, i have no idea what the CLI mode is, but i will learn it, and try =o)
after this, I will write again =o)

Edit:

[quote]Warning: require_once(./phpdocx_free/classes/CreateDocx.inc): failed to open stream: No such file or directory in pathindex.php on line 5

Fatal error: require_once(): Failed opening required './phpdocx_free/classes/CreateDocx.inc' (include_path=' .;C:/xampp/php/PEAR') in pathindex.php on line 5
[/quote]

Do you know what this means?

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

Hello,

That message means that you're script doesn't find the main class of PHPDocX. You need to check your files.
About CLI mode this page has a lot of information:

http://php.net/manual/en/features.commandline.php

Regards.