Forum


Replies: 5   Views: 6404
Brand new pro installation not working
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 Necuima  · 02-03-2014 - 07:36

Hi, I have just purchased the PRO version and installed it.  check.php indicates that everything is OK - see below.



On the very first tutorial I get a huge lot of errors:



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateText.inc' on line 427: Undefined variable: textsArray ( [args] => Array ( [0] => Hello world! [1] => Array ( [rawWordML] => ) ) )


#0 my_error_handler(8, Undefined variable: texts, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateText.inc, 427, Array ([args] => Array ([0] => Hello world!,[1] => Array ([rawWordML] => )))) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateText.inc:427] #1 CreateText->createText(Hello world!, Array ([rawWordML] => )) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5072] #2 CreateDocx->addText(Hello world!) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:113] #3 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc' on line 5343: copy(../word_documents/hello_world.docx): failed to open stream: No such file or directoryArray ( [args] => Array ( [0] => ../word_documents/hello_world ) [fileName] => ../word_documents/hello_world [relsHandler] => Resource id #85 [contentTypesHandler] => Resource id #86 [arrArgsPage] => Array ( ) [documentHandler] => Resource id #89 [contentDocumentXML] => Hello world! [repair] => Repair Object ( [_xml:Repair:private] => Hello world! ) [numberingHandler] => Resource id #90 [arrpathFile] => Array ( [dirname] => ../word_documents [basename] => hello_world [filename] => hello_world ) )


#0 my_error_handler(2, copy(../word_documents/hello_world.docx): failed to open stream: No such file or directory, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc, 5343, Array ([args] => Array ([0] => ../word_documents/hello_world),[fileName] => ../word_documents/hello_world,[relsHandler] => Resource id #85,[contentTypesHandler] => Resource id #86,[arrArgsPage] => Array (),[documentHandler] => Resource id #89,[contentDocumentXML] => Hello world! ,[repair] => Repair Object ([] => Hello world! ),[numberingHandler] => Resource id #90,[arrpathFile] => Array ([dirname] => ../word_documents,[basename] => hello_world,[filename] => hello_world))) #1 copy(C:\Windows\Temp\doc3833.tmp, ../word_documents/hello_world.docx) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5343] #2 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #3 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 46: opendir(C:\Windows\Temp\doc3833.tmp,C:\Windows\Temp\doc3833.tmp): The system cannot find the file specified. (code: 2)Array ( [path] => C:\Windows\Temp\doc3833.tmp )


#0 my_error_handler(2, opendir(C:\Windows\Temp\doc3833.tmp,C:\Windows\Temp\doc3833.tmp): The system cannot find the file specified. (code: 2), C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 46, Array ([path] => C:\Windows\Temp\doc3833.tmp)) #1 opendir(C:\Windows\Temp\doc3833.tmp) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:46] #2 CleanTemp::clean(C:\Windows\Temp\doc3833.tmp) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5543] #3 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #4 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 46: opendir(C:\Windows\Temp\doc3833.tmp): failed to open dir: No such file or directoryArray ( [path] => C:\Windows\Temp\doc3833.tmp )


#0 my_error_handler(2, opendir(C:\Windows\Temp\doc3833.tmp): failed to open dir: No such file or directory, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 46, Array ([path] => C:\Windows\Temp\doc3833.tmp)) #1 opendir(C:\Windows\Temp\doc3833.tmp) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:46] #2 CleanTemp::clean(C:\Windows\Temp\doc3833.tmp) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5543] #3 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #4 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/customXml): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618 [dh] => Resource id #101 [obj] => customXml )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/customXml): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618,[dh] => Resource id #101,[obj] => customXml)) #1 unlink(C:\Windows\TEMP/15312cd0900618/customXml) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #3 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #4 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/customXml/_rels): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618/customXml [dh] => Resource id #102 [obj] => _rels )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/customXml/_rels): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618/customXml,[dh] => Resource id #102,[obj] => _rels)) #1 unlink(C:\Windows\TEMP/15312cd0900618/customXml/_rels) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618/customXml) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:54] #3 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #4 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #5 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/docProps): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618 [dh] => Resource id #101 [obj] => docProps )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/docProps): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618,[dh] => Resource id #101,[obj] => docProps)) #1 unlink(C:\Windows\TEMP/15312cd0900618/docProps) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #3 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #4 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/word): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618 [dh] => Resource id #101 [obj] => word )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/word): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618,[dh] => Resource id #101,[obj] => word)) #1 unlink(C:\Windows\TEMP/15312cd0900618/word) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #3 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #4 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/word/theme): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618/word [dh] => Resource id #105 [obj] => theme )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/word/theme): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618/word,[dh] => Resource id #105,[obj] => theme)) #1 unlink(C:\Windows\TEMP/15312cd0900618/word/theme) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618/word) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:54] #3 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #4 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #5 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/word/_rels): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618/word [dh] => Resource id #105 [obj] => _rels )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/word/_rels): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618/word,[dh] => Resource id #105,[obj] => _rels)) #1 unlink(C:\Windows\TEMP/15312cd0900618/word/_rels) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618/word) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:54] #3 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #4 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #5 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]



An error occurred in script 'C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc' on line 53: unlink(C:\Windows\TEMP/15312cd0900618/_rels): Permission deniedArray ( [path] => C:\Windows\TEMP/15312cd0900618 [dh] => Resource id #101 [obj] => _rels )


#0 my_error_handler(2, unlink(C:\Windows\TEMP/15312cd0900618/_rels): Permission denied, C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc, 53, Array ([path] => C:\Windows\TEMP/15312cd0900618,[dh] => Resource id #101,[obj] => _rels)) #1 unlink(C:\Windows\TEMP/15312cd0900618/_rels) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CleanTemp.inc:53] #2 CleanTemp::clean(C:\Windows\TEMP/15312cd0900618) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\phpdocx_pro\classes\CreateDocx.inc:5544] #3 CreateDocx->createDocx(../word_documents/hello_world) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php:115] #4 include(C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\modules\works_of_art_word.php) called at [C:\xampp\htdocs\Jane_Welsh_Art_New\aa_lakjems\index.php:173]   



Here's my code:



require_once './phpdocx_pro/classes/CreateDocx.inc';



$docx = new CreateDocx();



$docx->addText('Hello world!');



$docx->createDocx('../word_documents/hello_world');



Note: this code ran fine in the community version.



Here's the info from the check.php run:



PHP_VERSION: 5.5.3

PHP_OS: WINNT

PHP_UNAME: Windows NT ERIC-PC 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586

CODE:

SERVER_NAME: localhost

SERVER_SOFTWARE: Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.3

SERVER_ADDR: 127.0.0.1

SERVER_PROTOCOL: HTTP/1.1

HTTP_HOST: localhost

HTTP_X_FORWARDED_FOR:

PHP_SELF: /Jane_Welsh_Art_New/aa_lakjems/phpdocx_pro/check.php

XSLTProcessor: 1

ZipArchive: 1

DomDocument: 1

SimpleXMLElement: 1

Tidy:

IS_WRITABLE DEFAULT TEMP: 1

 



Any assistance will be most appreciated.



 



 


Posted by Necuima  · 02-03-2014 - 08:40

Don't worry about this - it is something to do with my directory structure as I can get a couple of the examples to work!


Posted by Necuima  · 02-03-2014 - 23:06

It seems that your scripts have to be placed within the phpdocx directory otherwise they won't work.  Can anyone confirm this?



Thanks.


Posted by jorgelj  · 03-03-2014 - 09:21

Hello,



PHPDocX can be installed on any directory, but the internal folders structure must be kept.



Regards.


Posted by Necuima  · 04-03-2014 - 00:36

OK, I think I found what my problem was - in my inititaion routines I had redefined the error handling routine and that seems to have caused the problem that I initially experienced.  When I removed that, the test worked OK.



Thanks for the advice.



Best regards.