Hi Jerry,
Started to figure out the temp file part.
.part extensie is added by Firefox, in case of: a partly download or the right sources are not installed on the computer or a virus or the file is damaged. In this case the right app is on my computer: firefox. So naming and add the .part extensie (gaSCA65C.odt.part) does Firefox.
Cleared the local temp folder. The issue still exist after clearing temp folder.
Yes but FF/browser should not be changing temp file name! Those are set in the header for the download.
Also remember that you need to create an empty file in the log directory for the php error file name you setup. Apache won’t create for you and will appear as if php logs aren’t turned on(I believe)…
Bring up your browser console then download template and checkout the request url header to see exactly what is being sent to browser. See screenshot below.
Question regarding … You could try hard coding a known good path for temp files in source file interface/patient_file/download_template.php $fname = tempnam($someknownpath, ‘OED’);
You mean to change ($GLOBALS[‘temporary_files_dir’] into a path to the local temp folder on my computer? Absolute path?
No that file path is temp directory on server. Forget the browser because looks like the download header is setup for chunk file transfer thus because we get an alert in the middle of the transfer that stops download then i’d expect to see a .part.
It may be that the servers temp directory is invalid or lacking permission for write. If you can replace files on your server i’ll send you a patched script to see what’s up.
The php error file you create is just an empty file so server doesn’t have to create it(don’t think it will anyway).
@rickzimm
If you feel comfortable editing files add this line to interface/patient_file/download_template.php L-366
die("*Temp file and path: " . $fname . " *Template path: " . $templatepath);
Here is patched file if you just want to replace existing: download_template.php (14.0 KB)
The patch file is in place with the following result:
*Temp file and path: /tmp/OEDPAhgte *Template path: /www/htdocs/mannenkliniekde/openemr/sites/default/documents/doctemplates/Aanvraagformulier MRI onderzoek.odt
hmm, is there indeed a directory off root named tmp? Also i’d expect an extension. Check FTP.
Does this file name have underscores when uploaded? Linux is very strict with naming conventions ie spaces in a filename/directory is windows convention! not sure linux handles well.
Any rate we’re getting close.
Just to be sure you are looking on the server and there is not a directory /tmp ? How about /var/tmp?
/tmp is fairly standard and this surprises me.
Maybe create one with 777 permissions
I’m looking via FTP on the server where also the openemr directory is in the list.
i have created a (empty) temp directory in the root with permission 777.
Does the temp directory be placed in the openemr folder or just in the root?
See below after letting the Chrome browser tab sit “for a long time (10 min or so)” while using other tabs, even other OpenEMR sessions and then returning and trying to type something in the search field for this tab and … got Site ID is missing. I suspect that “something” timed out … but not to the point that I was logged out of that session … because I was able to go to the flow board and get a screen full of data as expected.
Did you log into another openemr session or open another patient via open in new window in patient finder?
Brady just did a fix for login session problem a couple days ago. Very broke on FF but not as obvious on Chrome.