Situation
When clicking on the name of a document, I get a blank screen and a 500 request.
/controller.php?document&view&patient_id=55382&doc_id=412183&
When double-clicking on the picture icon, the document comes up in a modal OK.
/controller.php?document&retrieve&patient_id=55382&doc_id=412183&as_file=false
OpenEMR Version
6.0 with patch 1
Browser:
Latest version of chrome
Client OS
macOS 10.15.7 (Catalina)
Server Operating System
CentOS 7
Logs
[02-Jun-2021 08:55:29 America/Denver] PHP Fatal error: Uncaught Error: Call to undefined method Document::get_url_web() in /home/xxxxxx/public_html/emr/sites/default/documents/smarty/main/%%03^03C^03C69C53%%general_view.html.php:180
Stack trace: #0 /home/xxxxxx/public_html/emr/vendor/smarty/smarty/libs/Smarty.class.php(1270): include() #1 /home/xxxxxx/public_html/emr/controllers/C_Document.class.php(546): Smarty->fetch(â/home/xxxxxxâŚâ) #2 /home/xxxxxx/public_html/emr/library/classes/Controller.class.php(137): C_Document->view_action(â55382â, â412183â) #3 /home/xxxxxx/public_html/emr/controller.php(6): Controller->act(Array) #4 {main}
thrown in /home/xxxxxxx/public_html/emr/sites/default/documents/smarty/main/%%03^03C^03C69C53%%general_view.html.php on line 180
On v6.0.0 (2) - Ubuntu 18.04
Weâre getting weirdness with Patient / Documents not displaying inside OEMR on 3 different computers. Instead of opening in the Document Viewer they download when name is clicked.
Double clicking the fileâs icon opens a blank window.
Nothing in the Apache error log related to this.
In the office on the local network; 1 laptop and 1 desktop (Ubuntu 20.04) only Intel processors
manifest this problem, All other AMD laptops and workstations also running FF v92 are fine.
However, my Win10 workstation at home (AMD processor) will also not display Patient Documents inside OEMR and itâs also on FF v92.
Been all over the forums, but no joy with clearing smarty and browser caches. Got any clues on this?
Be willing to bet theyâre PDF documents. If openemr canât open a document in right panel viewer then it will try to download.
I think there may be an issue with newer PDFs or possibly our PDF generations if theyâre our generated PDFs.
Yes, youâd have won that bet. They are in PDF format.
Once downloaded using FireFox v92, they open fine on Win10 with both Libre Office and Adobe Reader as well as with Libre Office and the Document Viewer in Ubuntu. These documents are scanned to PDF using one of three Epson MFDs we have in the office or at home. My Win10 machine at home uses the Epson Scanner Driver that came with the ET-4760, but they are using VueScan (From Hamrick Software) with the ET-5500 and EpsonScan2 with the WF-4720.
OK, this is will restore the ability to open patient documents inside OpenEMR when using FireFox.
Open Settings in the Menu (Three horizontal bars in upper right corner, below the âClose - Xâ)
Type âPDFâ into the âFind in Settingsâ window
In the âApplicationsâ section, type âPDFâ into the âSearch file types or applicationsâ window.
Select the "Portable Document Format (PDF) Line.
Under âActionâ, Click the down arrow and select âOpen in Firefoxâ from the menu.