PDF showing garbled (possibly source)

jexmex wrote on Monday, July 25, 2016:

After moving an existing install to a new host, the PDF files are not rendering.

jexmex wrote on Monday, July 25, 2016:

I just checked and it seems as the response headers are text/html instead of application/pdf, not sure what would cause that. Is it possible I am missing something on apache or php or some other system library that needs to be installed?

visolveemr wrote on Tuesday, July 26, 2016:

Hi Craig,
Give us more details on the error you get on the screen or the sample results your seeing (screenshot) & error logs. We would try to assit you on this.

Thanks,
ViSolve OpenEMR Support Team
ViSolve

jexmex wrote on Tuesday, July 26, 2016:

I have not found any errors in logs. The following attachment shows what a PDF looks like when we try to view it in OpenEMR.

Thanks

mdsupport wrote on Tuesday, July 26, 2016:

Since your browser is trying to show pdf file as text, it could be browser setting.

If the file is coming from documents, other possibility is the mime field is set as text. In that case server will send the file content as text.

jexmex wrote on Tuesday, July 26, 2016:

This is happening for multiple people and just for the new host, the old host had no issues rendering these in browser. When I moved the install over I just copied the install directory and the database, it appears all proper php settings and modules are installed as well as apache modules. Could something else be missing? The new host is pretty locked down HIPPA hosting, so no root access, which makes diagnosing this much harder.

jexmex wrote on Thursday, July 28, 2016:

Just to update this so if anybody else has this issue. The config file had a extra line after the php closing tag, so it was causing the headers to not be sent properly. I removed the closing tag and extra space and that fixed it.

tmccormi wrote on Friday, July 29, 2016:

Cool, which config file are you referring to?