Forum


Replies: 6   Views: 10067
Check.php missing in the community version download
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 kshaikh  · 23-07-2013 - 04:43

Hi,



I downloaded the free community version of phpdocx. The tutorial suggests running check.php in the app root of the community version to check whether the phpdocx dependencies are installed on the server or not. However, I found the zip file didn't contain the check.php file. I downloaded it twice just to make sure that the download was OK. It looks like the check.php is missing in the zip itself.



Can someone from phpdocx team please fix this and provide an update so I can download the zip which includes the check.php?



Thanks & Regards,

Kamal


Posted by admin-phpdocx  · 24-07-2013 - 16:14

check. php is only bundled with the PRO versions.


Posted by anprieto  · 11-09-2013 - 10:23

I am trying this product with the community version, before I purchase a PRO license, but I'm not able to make it work.

I think it's because of the PHP modules that should be installed in my hosting.

The point is: why is check.php is not included in the community version, so I can see if it works before I purchase it??.

I don't understand why is it not included. If I'm not able to make this free version to work, how am i ever going to purchase the PRO version?.

Please, let us know what tool can we use to check out if php modules are installed.

thanks
antonio

Posted by jorgelj  · 12-09-2013 - 09:33

Hello,



The current version of PHPDocX community is older than the date we created check.php script. So the next version of PHPDocX community will include it own check.php script.



What error do you get running PHPDocX Community?. Did you read this page?



http://www.phpdocx.com/help/faq#1



Regards.


Posted by anprieto  · 19-09-2013 - 10:13

Thanks for your answer jorgelj -



Yes, I read that, but I couldn't know easily if my hosting had these modules installed, so i wanted to use check.php (that is what is for, right?). In fact, now that it will be in community version, maybe you could give us a link to that single file.



Anyway, I finally discover that my hosting has no Ziparchive module. So, I have tried in a friend's hosting, which has this module.



I still have errors. It seems that phpdocx is trying to write in the hostings tmp folder, which it's strange. I get these errors making a simple operation to create a document.   How can i solve this?  thanks in advance.



Warning: tempnam() [function.tempnam]: SAFE MODE Restriction in effect. The script whose uid is 10010 is not allowed to access /tmp owned by uid 0 in /var/www/vhosts/-----------.com/httpdocs/phpdocx/classes/CreateDocx.inc on line 706



Warning: ZipArchive::open() [ziparchive.open]: Empty string as source in /var/www/vhosts/--------.com/httpdocs/phpdocx/classes/CreateDocx.inc on line 708



Warning: ZipArchive::extractTo() [ziparchive.extractto]: SAFE MODE Restriction in effect. The script whose uid is 10010 is not allowed to access /tmp owned by uid 0 in /var/www/vhosts/----------.com/httpdocs/phpdocx/classes/CreateDocx.inc on line1211



Warning: ZipArchive::extractTo() [ziparchive.extractto]: SAFE MODE Restriction in effect. The script whose uid is 10010 is not allowed to access /tmp owned by uid 0 in /var/www/vhosts/----------.com/httpdocs/phpdocx/classes/CreateDocx.inc on line1211



Fatal error: Uncaught exception 'Exception' with message 'Error while extracting the Base Template: there may be problems writing in the default tmp folder' in /var/www/vhosts/-----------.com/httpdocs/phpdocx/classes/PhpdocxLogger.inc:57 Stack trace: #0 /var/www/vhosts/-----------.com/httpdocs/phpdocx/classes/CreateDocx.inc(1217): PhpdocxLogger::logger('Error while ext...', 'fatal') #1 /var/www/vhosts/-----------.com/httpdocs/phpdocx/generar_word.php(9): CreateDocx->__construct() #2 {main} thrown in/var/www/vhosts/-----------.com/httpdocs/phpdocx/classes/PhpdocxLogger.inc on line 57



 



 



 



 



 


Posted by jorgelj  · 20-09-2013 - 07:39

Hello,



That problem is due to your server config, as you can check on this message:



tempnam() [function.tempnam]: SAFE MODE Restriction in effect. The script whose uid is 10010 is not allowed to access /tmp owned by uid 0



You have three options:



· Disable safe mode. As you can read, http://php.net/manual/en/features.safe-mode.php, it's deprecated and removed on new versions of PHP.



· Use a user to run PHP script that have rw access to your tmp directory server.



· Use a custom tmp changing or extending getTempDir method in CreateDocx class. PRO versions have a config options to set a custom temp directory.



Regards.