-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Develop branch template not saving? #238
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
Comments
I know everyone is busy but is there any progress on this issue? I need to use new version as soon as possible. |
Sorry. I missed this one. I'll try to reproduce the error today. |
I can't reproduce the error. I can run both |
I have tried them in two different computer one desktop and one laptop with windows 8.1 update 1 x64 but not working both samples and my own template files. there is no specific code just load template, set value and save final result in Word2007 format |
Hi @ozilion. We need more information to try to solve your issue.
|
Currently we still using old 0.6.2_beta version working great without checkbox feature. |
Thanks for the info. So it's confirmed that all samples are working except the two samples that are related to template and there's no error messages for that. The problem is I still can't reproduce the bug that you're facing in my machine. If I can do that, it will be easier for me to help to solve the issue. I'll try to use a VM. |
Hi @ivanlanin I tried template samples with new version on Ubuntu 64bit using a VM and working as expected. Under windows there is a problem and I think it is because of my PHP configuration. When I put some echos for debuging to catch the line where the code cut of to run and on my side any "throw new Exception(..." lines doesn't working, and I tried examples on this link http://www.php.net/manual/en/language.exceptions.php on a new file it's working. |
I changed my PHP version to latest and here are what i found on php_errors.log file |
Ok. I'll investigate this on Windows 8.1 x64 VM tonight or tomorrow. Thanks again for the report. |
this is the last update for error log |
Hm, that means PHPWord can't read from the |
Hi again, I think I solved it. after I upgraded to PHP 5.5.13 phpMyAdmin started to give invalid token error and solved it by giving read/write permission to c:/windows/temp folder for local windows user. This permission changes also solved template problem. In pclzip.lib.php file i tried to define( 'PCLZIP_TEMPORARY_DIR', 'C:/temp/' ); line but not worked, may be that was the wrong place to define custom temporary folder path. |
It may be this one. PclZip, in its documentation, says :
Source : http://www.phpconcept.net/pclzip/user-guide/23#parameter_PCLZIP_TEMPORARY_DIR |
Ok. We can close this issue but if not exists there should be a line in documentation or readme files a for windows users to give apropriate read/write permissions for temp folder where defined in php.ini file, because as I see PHPWord uses get_sys_temp_dir() function to get path and as default it is c:/windows/temp on windows. Now I am happy that I can upgrade our projet to latest version of PHPWord 👍 :) |
Yay. I'm really glad we found the solution. I agree with you. We should put this in the docs. Thanks and enjoy your new PHPWord 😄 |
@todo : Close when an information has been added to docs :) |
Information added: e3dd449 |
An idea for correcting this issue : add an exception if the sys_get_temp_dir is not writable / readable ( http://www.php.net/manual/fr/function.is-writeable.php - http://www.php.net/manual/fr/function.is-readable.php ) |
Or, there's a setting that allows user to change the temporary folder. I've put |
@ivanlanin Yes, you're right. I close it. Good job. |
Using template cant save it and it stop at line that it should throw an excepted but there is no any thrown exception
The text was updated successfully, but these errors were encountered: